我不知道这是否是正确的张贴地点。 如果不是,请告诉我。
基本上,正是问题的标题。 我有一个haproxy配置文件,我试图将超时设置为3600s。 但是,似乎在随机的情况下,文件会恢复到之前的迭代,超时值要短得多。
我设置的内容如下。
defaults
log global
mode http
retries 3
timeout client 3600s
timeout connect 3600s
timeout server 3600s
option tcplog
balance roundrobin
listen admin
bind 127.0.0.1:22002
mode http
stats enable
stats show-node
stats uri /admin
listen stats :1936
mode http
log global
maxconn 10
timeout client 3600s
timeout connect 3600s
timeout server 3600s
timeout queue 3600s
stats enable
stats hide-version
stats show-node
stats uri /haproxy?stats
然而,它却莫名其妙地变成了下面的样子。
defaults
log global
mode http
retries 3
timeout client 50s
timeout connect 5s
timeout server 50s
option tcplog
balance roundrobin
listen admin
bind 127.0.0.1:22002
mode http
stats enable
stats show-node
stats uri /admin
listen stats :1936
mode http
log global
maxconn 10
clitimeout 100s
srvtimeout 100s
contimeout 100s
timeout queue 100s
stats enable
stats hide-version
stats show-node
stats uri /haproxy?stats
我没有发现任何迹象表明haproxy1.5会缓存配置文件 但我需要调查所有的可能性。 简单地说:haproxy中是否有什么东西会导致这种情况?
AFAIK, HAProxy并没有实现任何可以解释这种行为的东西。
如何安装HAProxy?你的操作系统是什么?
如果你的服务器上有auditd, 你可以添加一个规则来观察哪个进程正在修改配置文件:
auditctl -w /etc/haproxy/haproxy.conf -p wa
然后观察是否有任何活动在 /var/log/audit/audit.log
.
要删除审计 :
auditctl -W /etc/haproxy/haproxy.conf