From 73562b3ebc2fa71de6570be795251682a5636b77 Mon Sep 17 00:00:00 2001 From: shichun-0415 <89768198+shichun-0415@users.noreply.github.com> Date: Tue, 16 Aug 2022 17:58:51 +0800 Subject: [PATCH] best practice: add link to tidb config `networks` (#10932) --- best-practices/haproxy-best-practices.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/best-practices/haproxy-best-practices.md b/best-practices/haproxy-best-practices.md index d4035b790722..d0f84d2fa715 100644 --- a/best-practices/haproxy-best-practices.md +++ b/best-practices/haproxy-best-practices.md @@ -207,14 +207,14 @@ listen tidb-cluster # 配置 database 负载均衡。 如要通过 `SHOW PROCESSLIST` 查看连接来源 IP,需要配置使用 [PROXY 协议](https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt)连接 TiDB。 ```yaml - server tidb-1 10.9.18.229:4000 send-proxy check inter 2000 rise 2 fall 3 + server tidb-1 10.9.18.229:4000 send-proxy check inter 2000 rise 2 fall 3 server tidb-2 10.9.39.208:4000 send-proxy check inter 2000 rise 2 fall 3 server tidb-3 10.9.64.166:4000 send-proxy check inter 2000 rise 2 fall 3 ``` > **注意:** > -> 使用 PROXY 协议时,你需要在 tidb-server 的 `proxy-protocol.networks` 配置文件中添加对应的参数。 +> 使用 PROXY 协议时,你需要在 tidb-server 的配置文件中设置 [`proxy-protocol.networks`](/tidb-configuration-file.md#networks)。 ### 启动 HAProxy