Re: make haproxy notice that backend server ip has changed

From: Willy Tarreau <w#1wt.eu>
Date: Fri, 5 Aug 2011 23:58:15 +0200


Hi Baptiste,

On Fri, Aug 05, 2011 at 11:53:40PM +0200, Baptiste wrote:
> Or using some kind of haproxy conf template with some keyword you
> replace using sed with IPs you would get from the hosts file?
> with inotify, you can get updated each time hosts file change, then
> you generate a new haproxy conf from your template and you ask haproxy
> to reload it :)

Once again, if the host is in /etc/hosts, then you don't need to touch the config anymore. Simply reload it so that it resolves the hosts again.

cheers,
Willy Received on 2011/08/05 23:58

This archive was generated by hypermail 2.2.0 : 2011/08/06 00:00 CEST