From 30e5c31e3ac9f92c38bd1422df3ec8dce995c483 Mon Sep 17 00:00:00 2001
From: yuanchao <yuanchao@yunshan.net>
Date: Mon, 16 Dec 2024 16:19:28 +0800
Subject: [PATCH] fix: Add a description of the configuration

---
 server/agent_config/README-CH.md  | 3 ++-
 server/agent_config/README.md     | 3 ++-
 server/agent_config/template.yaml | 6 ++++--
 3 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/server/agent_config/README-CH.md b/server/agent_config/README-CH.md
index f5369636183..f6fbf7be5a0 100644
--- a/server/agent_config/README-CH.md
+++ b/server/agent_config/README-CH.md
@@ -7194,7 +7194,8 @@ processors:
 
 FlowMap 中存储的最大并发 Flow 数量。该配置同时影响 RRT 缓存容量。
 例如:`rrt-cache-capacity` = `flow-count-limit`。当 `rrt-cache-capacity` 不足时,
-将无法计算 L7 的 RRT。
+将无法计算 L7 的 RRT。当 capture_mode 为 2 并且 concurrent_flow_limit 小于等于 65535 时,
+将会被强制设置为 u32::MAX。
 
 #### 内存池大小 {#processors.flow_log.tunning.memory_pool_size}
 
diff --git a/server/agent_config/README.md b/server/agent_config/README.md
index 77da5555484..f12e2cc9076 100644
--- a/server/agent_config/README.md
+++ b/server/agent_config/README.md
@@ -7402,7 +7402,8 @@ processors:
 
 Maximum number of flows that can be stored in FlowMap, It will also affect the capacity of
 the RRT cache, Example: `rrt-cache-capacity` = `flow-count-limit`. When `rrt-cache-capacity`
-is not enough, it will be unable to calculate the rrt of l7.
+is not enough, it will be unable to calculate the rrt of l7. When capture_mode is 2 and
+concurrent_flow_limit is less than or equal to 65535, it will be forced to u32::MAX.
 
 #### Memory Pool Size {#processors.flow_log.tunning.memory_pool_size}
 
diff --git a/server/agent_config/template.yaml b/server/agent_config/template.yaml
index 10f6704180b..426512ba680 100644
--- a/server/agent_config/template.yaml
+++ b/server/agent_config/template.yaml
@@ -4929,11 +4929,13 @@ processors:
       #   en: |-
       #     Maximum number of flows that can be stored in FlowMap, It will also affect the capacity of
       #     the RRT cache, Example: `rrt-cache-capacity` = `flow-count-limit`. When `rrt-cache-capacity`
-      #     is not enough, it will be unable to calculate the rrt of l7.
+      #     is not enough, it will be unable to calculate the rrt of l7. When capture_mode is 2 and
+      #     concurrent_flow_limit is less than or equal to 65535, it will be forced to u32::MAX.
       #   ch: |-
       #     FlowMap 中存储的最大并发 Flow 数量。该配置同时影响 RRT 缓存容量。
       #     例如:`rrt-cache-capacity` = `flow-count-limit`。当 `rrt-cache-capacity` 不足时,
-      #     将无法计算 L7 的 RRT。
+      #     将无法计算 L7 的 RRT。当 capture_mode 为 2 并且 concurrent_flow_limit 小于等于 65535 时,
+      #     将会被强制设置为 u32::MAX。
       # upgrade_from: static_config.flow.flow-count-limit
       concurrent_flow_limit: 65535
       # type: int