Hi Robert,
But with keep alive you can only detect that the 2 nodes can not contact each 
other (network failure). How do you know if the other node/process actually 
crashed so that the secondary can become the primary? 
 

________________________________
 From: Robert Snyder <r...@psu.edu>
To: Baptiste <bed...@gmail.com> 
Cc: Hermes Flying <flyingher...@yahoo.com>; "haproxy@formilux.org" 
<haproxy@formilux.org> 
Sent: Thursday, November 29, 2012 3:13 PM
Subject: Re: HAproxy and detect split-brain (network failures)
  
Hi,

We use Keepalived http://www.keepalived.org/index.html to manage the Virtual IP 
address management between our two physical HAproxy servers. It maintains 
heartbeat between the servers, and in the event of failure passes ensures that 
the VIPs are migrated and the service is brought up. Also handles migration 
back after a restart of our primary, so that if available, that is the server 
that owns the IPs. 

We use Mercurial to manage the configuration files between the two servers to 
maintain consistency so that we are prepared for consistent fail overs. 

Robert

On Nov 29, 2012, at 8 :02 AM, Baptiste <bed...@gmail.com> wrote:

> Hi,
> 
> This is not HAProxy's role, this is the tool you use to ensure high
> availability to do that.
> 
> I could see a way where HAProxy can report one interface failing,
> maybe this could help you to detect if you're in a split brain
> situation.
> 
> cheers
> 
> 
> 
> On Thu, Nov 29, 2012 at 11:51 AM, Hermes Flying <flyingher...@yahoo.com> 
> wrote:
>> Hi,
>> I am looking into using HAProxy as our load balancer.
>> I see that you are using a primary/backup approach. I was wondering how does
>> HAProxy (if it does) address split-brain situation? Do you have a mechanism
>> to detect and avoid it? Do you have some standard recommendation to all
>> those using your solution?
>> 
>> Thanks
> 



____________________________________________

Robert Snyder
Outreach Technology Services
The Pennsylvania State University
The 329 Building, Suite 306E
University Park  PA  16802
Phone: 814-865-0912
E-mail: rsny...@psu.edu

Reply via email to