From 03843c6071adfa6cc6af52d7cc8aef9c556658dc Mon Sep 17 00:00:00 2001 From: Andrew Mayorov Date: Mon, 13 Nov 2023 17:17:01 +0700 Subject: [PATCH] feat(router): switch to v2 routing store by default --- apps/emqx/src/emqx_schema.erl | 2 +- rel/i18n/emqx_schema.hocon | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/emqx/src/emqx_schema.erl b/apps/emqx/src/emqx_schema.erl index 3848e77b4..1eadd8c61 100644 --- a/apps/emqx/src/emqx_schema.erl +++ b/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) } diff --git a/rel/i18n/emqx_schema.hocon b/rel/i18n/emqx_schema.hocon index e1d086197..3959c8474 100644 --- a/rel/i18n/emqx_schema.hocon +++ b/rel/i18n/emqx_schema.hocon @@ -1530,7 +1530,7 @@ sys_event_messages.desc: broker_routing_storage_schema.desc: """Routing storage schema. -Set v1 to leave the default. +Set v1 to use the former schema. v2 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 v2 is still experimental. NOTE: Full non-rolling cluster restart is needed after altering this option for it to take any effect."""