Configuration HAProxy-是否缓存配置文件
我不确定这是否是发布此消息的正确位置。如果不是,请告诉我 基本上,问题的标题是什么。我有一个haproxy配置文件,试图将超时设置为3600秒。但是,文件似乎会随机恢复到上一次迭代,超时值要短得多 我的设置如下:Configuration HAProxy-是否缓存配置文件,configuration,edit,haproxy,Configuration,Edit,Haproxy,我不确定这是否是发布此消息的正确位置。如果不是,请告诉我 基本上,问题的标题是什么。我有一个haproxy配置文件,试图将超时设置为3600秒。但是,文件似乎会随机恢复到上一次迭代,超时值要短得多 我的设置如下: defaults log global mode http retries 3 timeout client 3600s timeout connect 3600s timeout server 3600s option tcplog ba
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
我没有发现任何迹象表明haproxy 1.5缓存了配置文件,但我需要调查所有可能性。简单地说:haproxy中有什么东西可以导致这种情况吗?好吧,haproxy没有实现任何可以解释这种行为的东西 HAProxy是如何安装的?你的操作系统是什么 如果您的服务器上有auditd,则可以添加一条规则来监视哪个进程正在修改配置文件:
auditctl -w /etc/haproxy/haproxy.conf -p wa
然后观察/var/log/audit/audit.log
中的任何活动
要删除审核,请执行以下操作:
auditctl -W /etc/haproxy/haproxy.conf