HAProxy community

Restart HAProxy after changing the configuration



I am running HAProxy as a load balancer and whenever changing the configuration, I need to restart the HAProxy for the configuration changes to be applied. Due to this, we have to schedule a maintenance window for each and every simple configuration change. Is there any other way to change the configurations without restarting HAProxy.Please help.


I use the following to reload configuration without restarting:

/usr/local/sbin/haproxy -f /path/filename.cfg -p /var/run/haproxy.pid -sf $(cat /var/run/haproxy.pid)


Let’s stick to one thread per topic: