Skip to content

Commit ce85cf9

Browse files
committed
Update zh translation
1 parent bf3f2c5 commit ce85cf9

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

en_US/message-queue/message-queue-task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,6 @@ Message Queues in EMQX now support multiple types of capacity limits. If any of
300300

301301
These limits are soft and applied during GC, not in real time. Queues may temporarily exceed the configured thresholds between GC cycles.
302302

303-
Note that these limits apply per shard. For information on how to configure the number of shards, see [Number of Shards](../durability/managing-replication.md#number-of-shards). In addition, size limits do not account for the [replication factor](../durability/managing-replication.md#replication-factor); the actual physical storage used by a queue will be multiplied by the replication factor.
303+
Note that these limits apply per shard in durable storage. For information on how to configure the number of shards, see [Number of Shards](../durability/managing-replication.md#number-of-shards). In addition, size limits do not account for the [replication factor](../durability/managing-replication.md#replication-factor); the actual physical storage used by a queue will be multiplied by the replication factor.
304304

305305

zh_CN/message-queue/message-queue-task.md

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,15 @@
3131
- **[队列键表达式](#队列键表达式)**:启用“最后值语义”后,该字段用于定义如何从每条消息中提取队列键,默认值为 `message.from`,即为消息发布者的客户端 ID。该字段支持使用 [Variform 表达式](../configuration/configuration.md#variform-表达式)设置。
3232

3333
- **最大分片消息数量**:(可选)设置每个队列分片中允许的最大消息数量。您可以开启该选项并输入自定义数值,或保持关闭状态以表示不限制(`infinity`)。该配置将被持久化到存储中。
34+
3435
- **最大分片消息字节数**:(可选)设置每个队列分片中消息允许占用的最大总字节数。您可以开启该选项并输入数值(例如 `200MB`),或保持关闭状态以表示不限制(`infinity`)。该配置将被持久化到存储中。
3536

37+
::: tip 性能提示
38+
39+
启用队列大小限制可能会在高吞吐场景下导致写入性能下降。
40+
41+
:::
42+
3643
4. 点击**创建**保存队列。
3744

3845
新队列将出现在消息队列列表中,并显示其主题过滤器、分发策略、是否启用了最新值语义以及数据保留时间。你可以通过**操作**栏中的按钮编辑队列设置或删除队列。
@@ -210,10 +217,7 @@ mq {
210217
gc_interval = 1h
211218
regular_queue_retention_period = 1d
212219
find_queue_retry_interval = 10s
213-
214-
limits {
215-
max_shard_message_count = 10000
216-
max_shard_message_bytes = 200MB
220+
max_queue_count = 100
217221
}
218222
}
219223
```
@@ -223,18 +227,7 @@ mq {
223227
- **`gc_interval`**:定义 EMQX 扫描消息队列并清理过期消息的时间间隔。
224228
- **`regular_queue_retention_period`**:设置队列中消息的最长保留时间。超时的消息将被自动清除。
225229
- **`find_queue_retry_interval`**:当订阅者订阅 `$q/` 主题时未找到队列,订阅者重新尝试查找队列的周期。
226-
- **`limits.max_shard_message_count`**:(可选)设置每个队列分片中允许的最大消息数量。默认值为 `infinity`(无限制)。
227-
228-
> 此限制为软性限制,仅在垃圾回收(GC)过程中生效,而非实时强制执行。GC 运行之前,队列可能会暂时超过所配置的限制。
229-
- **`limits.max_shard_message_bytes`**:(可选)设置每个分片中允许的最大消息总大小(以字节为单位)。默认值为 `infinity`(无限制)。支持的单位包括 `KB``MB``GB` 等。
230-
231-
> `max_shard_message_count` 类似,此限制也是在 GC 时应用,队列在 GC 之间可能会暂时超出该阈值。
232-
233-
::: tip 性能提示
234-
235-
启用队列大小限制可能会在高吞吐场景下导致写入性能下降。
236-
237-
:::
230+
- **`max_queue_count`**:设置系统允许创建的最大队列数量。
238231

239232
## 通过 REST API 管理消息队列
240233

@@ -303,4 +296,8 @@ EMQX 中的消息队列现在支持多种容量限制。当队列达到任一限
303296
- **最大消息总大小(字节)**`max_shard_message_bytes`
304297

305298
这些限制为软性限制,仅在 GC 期间生效,而非实时强制执行。在两次 GC 之间,队列可能会暂时超过配置的阈值。
299+
300+
请注意,这些限制是按持久存储的分片(shard)应用的。有关如何配置分片数量的信息,请参见:[分片数量](../durability/managing-replication.md#分片-shard-数量)
301+
302+
此外,大小限制不包含[副本因子(replication factor)](../durability/managing-replication.md#复制因子-replication-factor)的影响;队列实际占用的物理存储空间将乘以副本因子。
306303

0 commit comments

Comments
 (0)