Skip to content

Commit 3d1d2fc

Browse files
author
yubo
committed
fix: Synchronous configuration for dpvs/fullnat
1 parent daac361 commit 3d1d2fc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ modprobe ip_vs_ca
5757

5858
可以通过修改以下文件来设置连接超时回收的时间
5959

60-
- /proc/sys/net/ca/tcp_timeout (defualt 90s)
61-
- /proc/sys/net/ca/udp_timeout (defualt 180s)
60+
- /proc/sys/net/ca/tcp_timeout (defualt 100s)
61+
- /proc/sys/net/ca/udp_timeout (defualt 310s)
6262
- /proc/sys/net/ca/tcpopt_addr (defualt 200)
6363

6464
查看计数器和版本信息

src/ca_proto.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ enum {
2323
};
2424

2525
int sysctl_ip_vs_ca_timeouts[IP_VS_CA_S_LAST + 1] = {
26-
[IP_VS_CA_S_TCP] = 90 * HZ,
27-
[IP_VS_CA_S_UDP] = 3 * 60 * HZ,
28-
[IP_VS_CA_S_LAST] = 2 * HZ,
26+
[IP_VS_CA_S_TCP] = 100 * HZ,
27+
[IP_VS_CA_S_UDP] = 310 * HZ,
28+
[IP_VS_CA_S_LAST] = 2 * HZ,
2929
};
3030

3131
static struct ip_vs_ca_protocol *ip_vs_ca_proto_table[IP_VS_CA_PROTO_TAB_SIZE];

0 commit comments

Comments
 (0)