Hi On 24.03.2014 18:35, Andy Walker wrote:
For what it's worth, haproxy can be running on a server, and listening on IP addresses that aren't actually associated with that server. In linux, just make sure NET.IPV4.IP_NONLOCAL_BIND is set to 1, and this will allow haproxy to bind to addresses that aren't currently associated with that server. This is handy for very basic HA solutions like keepalived, where you may just want the HA service managing IPs, and not necessarily turning on and off haproxy as well.
Just to add a little note to this, you could also use 'transparent' in your bind directive instead of the NET.IPV4.NONLOCAL_BIND setting. This way the config will work with both IPv4 and IPv6.
Regards, Sander