From 6fd30a7e81a87359e3223bfd2bd4e43841727987 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Tue, 31 Jan 2023 12:35:20 +0100 Subject: [PATCH] docs: improve docs for system monitoring config --- apps/emqx/i18n/emqx_schema_i18n.conf | 42 +++++++++++++++++++++------- 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/apps/emqx/i18n/emqx_schema_i18n.conf b/apps/emqx/i18n/emqx_schema_i18n.conf index 0ab781280..67a6bf4c7 100644 --- a/apps/emqx/i18n/emqx_schema_i18n.conf +++ b/apps/emqx/i18n/emqx_schema_i18n.conf @@ -188,8 +188,12 @@ emqx_schema { sysmon_vm_long_gc { desc { - en: "Enable Long GC monitoring." - zh: "启用长垃圾回收监控。" + en: """When an Erlang process spends long time to perform garbage collection, a warning level long_gc log is emitted, +and an MQTT message is published to the system topic $SYS/sysmon/long_gc. +""" + zh: """当系统检测到某个 Erlang 进程垃圾回收占用过长时间,会触发一条带有 long_gc 关键字的日志。 +同时还会发布一条主题为 $SYS/sysmon/long_gc 的 MQTT 系统消息。 +""" } label { en: "Enable Long GC monitoring." @@ -199,8 +203,12 @@ emqx_schema { sysmon_vm_long_schedule { desc { - en: "Enable Long Schedule monitoring." - zh: "启用长调度监控。" + en: """When the Erlang VM detect a task scheduled for too long, a warning level 'long_schedule' log is emitted, +and an MQTT message is published to the system topic $SYS/sysmon/long_schedule. +""" + zh: """启用后,如果 Erlang VM 调度器出现某个任务占用时间过长时,会触发一条带有 'long_schedule' 关键字的日志。 +同时还会发布一条主题为 $SYS/sysmon/long_schedule 的 MQTT 系统消息。 +""" } label { en: "Enable Long Schedule monitoring." @@ -210,8 +218,13 @@ emqx_schema { sysmon_vm_large_heap { desc { - en: "Enable Large Heap monitoring." - zh: "启用大 heap 监控。" + en: """When an Erlang process consumed a large amount of memory for its heap space, +the system will write a warning level large_heap log, and an MQTT message is published to +the system topic $SYS/sysmon/large_heap. +""" + zh: """启用后,当一个 Erlang 进程申请了大量内存,系统会触发一条带有 large_heap 关键字的 +warning 级别日志。同时还会发布一条主题为 $SYS/sysmon/busy_dist_port 的 MQTT 系统消息。 +""" } label { en: "Enable Large Heap monitoring." @@ -221,8 +234,13 @@ emqx_schema { sysmon_vm_busy_dist_port { desc { - en: "Enable Busy Distribution Port monitoring." - zh: "启用分布式端口过忙监控。" + en: """When the RPC connection used to communicate with other nodes in the cluster is overloaded, +there will be a busy_dist_port warning log, +and an MQTT message is published to system topic $SYS/sysmon/busy_dist_port. +""" + zh: """启用后,当用于集群接点之间 RPC 的连接过忙时,会触发一条带有 busy_dist_port 关键字的 warning 级别日志。 +同时还会发布一条主题为 $SYS/sysmon/busy_dist_port 的 MQTT 系统消息。 +""" } label { en: "Enable Busy Distribution Port monitoring." @@ -232,8 +250,12 @@ emqx_schema { sysmon_vm_busy_port { desc { - en: "Enable Busy Port monitoring." - zh: "启用端口过忙监控。" + en: """When a port (e.g. TCP socket) is overloaded, there will be a busy_port warning log, +and an MQTT message is published to the system topic $SYS/sysmon/busy_port. +""" + zh: """当一个系统接口(例如 TCP socket)过忙,会触发一条带有 busy_port 关键字的 warning 级别的日志。 +同时还会发布一条主题为 $SYS/sysmon/busy_port 的 MQTT 系统消息。 +""" } label { en: "Enable Busy Port monitoring."