HAProxy – Will HAProxy automatically reload list files

haproxyload balancingwhitelist

I have text files with lists of IP addresses that I want to use to help determine to right actions to take with HAProxy.

So if HAProxy loads whitelists like this.

acl whitelist src -f /path/to/ips.list

If ips.list were to be modified would HAProxy automatically reload it – So I can modify the IP lists on the fly?

Best Answer

Haproxy will only read its config, including such files, during startup and when explicitly told to reload its config. If you installed haproxy via a package then the init.d script should have a reload target for this. Otherwise a quick search of serverfault for "haproxy reload" will show numerous examples how to do it. A reload will not interrupt any existing sessions so is very unobtrusive.