From fabcff4c9ab595c5dfc504413bc17d8b9b1e7aad Mon Sep 17 00:00:00 2001 From: tjuzyp Date: Thu, 9 Jan 2025 10:56:30 +0800 Subject: [PATCH] docs(agent): add client port range configuration options --- docs/zh/14-reference/01-components/05-taosx-agent.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/zh/14-reference/01-components/05-taosx-agent.md b/docs/zh/14-reference/01-components/05-taosx-agent.md index 1f1276e834..16ce3ae61c 100644 --- a/docs/zh/14-reference/01-components/05-taosx-agent.md +++ b/docs/zh/14-reference/01-components/05-taosx-agent.md @@ -14,6 +14,8 @@ sidebar_label: taosX-Agent - `instanceId`:当前 taosx-agent 服务的实例 ID,如果同一台机器上启动了多个 taosx-agent 实例,必须保证各个实例的实例 ID 互不相同。 - `compression`: 非必填,可配置为 `true` 或 `false`, 默认为 `false`。配置为`true`, 则开启 `Agent` 和 `taosX` 通信数据压缩。 - `in_memory_cache_capacity`: 非必填,表示可在内存中缓存的最大消息批次数,可配置为大于 0 的整数。默认为 `64`。 +- `client_port_range.min`:非必填,取值范围 `[49152-65535]`,默认为 `49152`, 当 agent 向 taosx 创建 socket 连接时,socket 客户端会随机监听一个端口,此配置限制了端口范围的最小值。 +- `client_port_range.max`:非必填,取值范围 `[49152-65535]`,默认为 `65535`,同 `client_port_range.max` 一样,比配置为最大值。 - `log_level`: 非必填,日志级别,默认为 `info`, 同 `taosX` 一样,支持 `error`,`warn`,`info`,`debug`,`trace` 五级。已弃用,请使用 `log.level` 代替。 - `log_keep_days`:非必填,日志保存天数,默认为 `30` 天。已弃用,请使用 `log.keepDays` 代替。 - `log.path`:日志文件存放的目录。 @@ -49,6 +51,15 @@ sidebar_label: taosX-Agent # #in_memory_cache_capacity = 64 +[client_port_range] +# Minimum boundary of listening port of agent, can not less than 49152 +# +# min = 49152 + +# Maximum boundary of listening port of agent, can not greater than 65535 +# +# max = 65535 + # log configuration [log] # All log files are stored in this directory