feat(router): switch to v2 routing store by default

This commit is contained in:
Andrew Mayorov 2023-11-13 17:17:01 +07:00
parent 8e409fa898
commit 03843c6071
No known key found for this signature in database
GPG Key ID: 2837C62ACFBFED5D
2 changed files with 2 additions and 2 deletions

View File

@ -1388,7 +1388,7 @@ fields("broker_routing") ->
sc(
hoconsc:enum([v1, v2]),
#{
default => v1,
default => v2,
'readOnly' => true,
desc => ?DESC(broker_routing_storage_schema)
}

View File

@ -1530,7 +1530,7 @@ sys_event_messages.desc:
broker_routing_storage_schema.desc:
"""Routing storage schema.
Set <code>v1</code> to leave the default.
Set <code>v1</code> to use the former schema.
<code>v2</code> is introduced in 5.2. It enables routing through 2 separate tables, one for topic filter and one for regular topic subscriptions. This schema should increase both subscription and routing performance at the cost of slight increase in memory consumption per subscription.
NOTE: Schema <code>v2</code> is still experimental.
NOTE: Full non-rolling cluster restart is needed after altering this option for it to take any effect."""