From 44c0460883efc42ba9d90371cf67891cc49c6777 Mon Sep 17 00:00:00 2001
From: YuShifan <894402575bt@gmail.com>
Date: Mon, 8 Apr 2024 15:40:30 +0800
Subject: [PATCH] fix(mqtt): update dispatch strategy descriptions for shared
subscriptions
---
src/schemaText/schema-text-en.json | 4 ++--
src/schemaText/schema-text-zh.json | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/schemaText/schema-text-en.json b/src/schemaText/schema-text-en.json
index 93e651b52..0725a8444 100644
--- a/src/schemaText/schema-text-en.json
+++ b/src/schemaText/schema-text-en.json
@@ -1055,7 +1055,7 @@
"label": "Supported subprotocols"
},
"broker_shared_subscription_strategy": {
- "desc": "Dispatch strategy for shared subscription.\n - `random`: dispatch the message to a random selected subscriber\n - `round_robin`: select the subscribers in a round-robin manner\n - `round_robin_per_group`: select the subscribers in round-robin fashion within each shared subscriber group\n - `local`: select random local subscriber otherwise select random cluster-wide\n - `sticky`: always use the last selected subscriber to dispatch, until the subscriber disconnects.\n - `hash_clientid`: select the subscribers by hashing the `clientIds`\n - `hash_topic`: select the subscribers by hashing the source topic"
+ "desc": "Dispatch strategy for shared subscription.\n - `random`: dispatch the message to a random selected subscriber\n - `round_robin`: select the subscribers in a round-robin manner\n - `round_robin_per_group`: select the subscribers in round-robin fashion within each shared subscriber group\n - `local`: select random local subscriber otherwise select random cluster-wide\n - `sticky`: always use the last selected subscriber to dispatch, until the subscriber disconnects.\n - `hash_clientid`: select the subscribers by hashing the `clientIds` of senders.\n - `hash_topic`: select the subscribers by hashing the source topic"
},
"fields_deflate_opts_mem_level": {
"desc": "Specifies the size of the compression state.
\nLower values decrease memory usage per connection.",
@@ -1349,7 +1349,7 @@
},
"mqtt_shared_subscription_strategy": {
"label": "Shared Subscription Strategy",
- "desc": "Dispatch strategy for shared subscription.
- `random`: dispatch the message to a random selected subscriber
- `round_robin`: select the subscribers in a round-robin manner
- `round_robin_per_group`: select the subscribers in round-robin fashion within each shared subscriber group
- `sticky`: always use the last selected subscriber to dispatch, until the subscriber disconnects.
- `local`: select random local subscriber otherwise select random cluster-wide
- `hash_topic`: select the subscribers by hashing the source topic
- `hash_clientid`: select the subscribers by hashing the clientIds"
+ "desc": "Dispatch strategy for shared subscription.
- `random`: dispatch the message to a random selected subscriber
- `round_robin`: select the subscribers in a round-robin manner
- `round_robin_per_group`: select the subscribers in round-robin fashion within each shared subscriber group
- `sticky`: always use the last selected subscriber to dispatch, until the subscriber disconnects.
- `local`: select random local subscriber otherwise select random cluster-wide
- `hash_topic`: select the subscribers by hashing the source topic
- `hash_clientid`: select the subscribers by hashing the `clientIds` of senders"
}
}
}
diff --git a/src/schemaText/schema-text-zh.json b/src/schemaText/schema-text-zh.json
index 732d8d7b2..75b81b08e 100644
--- a/src/schemaText/schema-text-zh.json
+++ b/src/schemaText/schema-text-zh.json
@@ -1345,7 +1345,7 @@
},
"mqtt_shared_subscription_strategy": {
"label": "共享订阅策略",
- "desc": "共享订阅的调度策略。
- `random`:将消息分配给随机选择的订阅者。
- `round_robin`:以循环方式选择订阅者。
- `round_robin_per_group`:在每个共享订阅组内以循环方式选择订阅者。
- `sticky`:始终使用最后选择的订阅者进行调度,直到订阅者断开连接。
- `local`:如果本地订阅者不存在,则选择随机本地订阅者,否则选择随机集群广域订阅者。
- `hash_topic`:通过主题源的哈希值选择订阅者。
- `hash_clientid`:通过客户端 ID 的哈希值选择订阅者。"
+ "desc": "共享订阅的调度策略。
- `random`:将消息分配给随机选择的订阅者。
- `round_robin`:以循环方式选择订阅者。
- `round_robin_per_group`:在每个共享订阅组内以循环方式选择订阅者。
- `sticky`:始终使用最后选择的订阅者进行调度,直到订阅者断开连接。
- `local`:如果本地订阅者不存在,则选择随机本地订阅者,否则选择随机集群广域订阅者。
- `hash_topic`:通过主题源的哈希值选择订阅者。
- `hash_clientid`:通过对发送者的客户端 ID 进行 Hash 处理来选择订阅者。"
}
}
}