Re: haproxy and interaction with VRRP

2011-12-13 Thread Sander Klein
On 12.12.2011 14:32, Vincent Bernat wrote: On Mon, 12 Dec 2011 13:23:11 +0100, Sander Klein wrote: I started doing this because there is no nonlocal_bind option for IPv6 (or I didn't search well enough (-: ) From the source code, it seems that IPv4 non local bind sysctl also applies to

haproxy and interaction with VRRP

2011-12-12 Thread Vincent Bernat
Hi! When haproxy is bound to an IP address managed by VRRP, this IP address may be absent when haproxy starts. What is the best way to handle this? 1. Start haproxy only when the host is master. 2. Use transparent mode. 3. Patch haproxy to use IP_FREEBIND option.

Re: haproxy and interaction with VRRP

2011-12-12 Thread Guillaume Castagnino
Le lundi 12 décembre 2011 10:18:33, Vincent Bernat a écrit : Hi! When haproxy is bound to an IP address managed by VRRP, this IP address may be absent when haproxy starts. What is the best way to handle this? 1. Start haproxy only when the host is master. 2. Use transparent mode.

Re: haproxy and interaction with VRRP

2011-12-12 Thread Graeme Donaldson
On 12 December 2011 11:18, Vincent Bernat ber...@luffy.cx wrote: Hi! When haproxy is bound to an IP address managed by VRRP, this IP address may be absent when haproxy starts. What is the best way to handle this?  1. Start haproxy only when the host is master.  2. Use transparent mode.  3.

Re: haproxy and interaction with VRRP

2011-12-12 Thread Vincent Bernat
On Mon, 12 Dec 2011 11:28:21 +0200, Graeme Donaldson wrote: When haproxy is bound to an IP address managed by VRRP, this IP address may be absent when haproxy starts. What is the best way to handle this?  1. Start haproxy only when the host is master.  2. Use transparent mode.  3. Patch

Re: haproxy and interaction with VRRP

2011-12-12 Thread Sander Klein
On 12.12.2011 10:28, Guillaume Castagnino wrote: Le lundi 12 décembre 2011 10:18:33, Vincent Bernat a écrit : Hi! When haproxy is bound to an IP address managed by VRRP, this IP address may be absent when haproxy starts. What is the best way to handle this? 1. Start haproxy only when the

Re: haproxy and interaction with VRRP

2011-12-12 Thread Vincent Bernat
On Mon, 12 Dec 2011 13:04:22 +0100, Sander Klein wrote: I started doing this because there is no nonlocal_bind option for IPv6 (or I didn't search well enough (-: ) From the source code, it seems that IPv4 non local bind sysctl also applies to IPv6. Since 2.6.30. Hmmm, then I'm going to

Re: haproxy and interaction with VRRP

2011-12-12 Thread Sander Klein
On 12.12.2011 13:10, Vincent Bernat wrote: On Mon, 12 Dec 2011 13:04:22 +0100, Sander Klein wrote: I started doing this because there is no nonlocal_bind option for IPv6 (or I didn't search well enough (-: ) From the source code, it seems that IPv4 non local bind sysctl also applies to IPv6.

Re: haproxy and interaction with VRRP

2011-12-12 Thread Vincent Bernat
On Mon, 12 Dec 2011 13:23:11 +0100, Sander Klein wrote: I started doing this because there is no nonlocal_bind option for IPv6 (or I didn't search well enough (-: ) From the source code, it seems that IPv4 non local bind sysctl also applies to IPv6. Since 2.6.30. Hmmm, then I'm going to