Просмотр исходного кода

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

Andrew Mayorov 2 лет назад
Родитель
Сommit
03843c6071
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      apps/emqx/src/emqx_schema.erl
  2. 1 1
      rel/i18n/emqx_schema.hocon

+ 1 - 1
apps/emqx/src/emqx_schema.erl

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

+ 1 - 1
rel/i18n/emqx_schema.hocon

@@ -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."""