feat(router): add unified routing table config option

This commit is contained in:
Andrew Mayorov 2023-08-25 14:49:50 +04:00
parent 33e5e1ba57
commit 5d51687dbf
No known key found for this signature in database
GPG Key ID: 2837C62ACFBFED5D
2 changed files with 15 additions and 0 deletions

View File

@ -1358,6 +1358,15 @@ fields("broker") ->
ref("broker_perf"),
#{importance => ?IMPORTANCE_HIDDEN}
)},
{"unified_routing_table",
sc(
boolean(),
#{
default => false,
importance => ?IMPORTANCE_HIDDEN,
desc => ?DESC(broker_unified_routing_table)
}
)},
%% FIXME: Need new design for shared subscription group
{"shared_subscription_group",
sc(

View File

@ -1549,6 +1549,12 @@ fields_ws_opts_max_frame_size.label:
sys_event_messages.desc:
"""Client events messages."""
broker_unified_routing_table.desc:
"""Enable unified routing table.
Unified routing table should increase both subscription and routing performance at the cost of slight increase in memory consumption per subscription.
NOTE: This is an experimental feature.
NOTE: Full non-rolling cluster restart is needed after enabling or disabling this option for it to take any effect."""
broker_perf_trie_compaction.desc:
"""Enable trie path compaction.
Enabling it significantly improves wildcard topic subscribe rate, if wildcard topics have unique prefixes like: 'sensor/{{id}}/+/', where ID is unique per subscriber.