Re: OSF (heartbeat) plugin for HA Proxy?

From: David Rorex <drorex#gmail.com>
Date: Tue, 28 Oct 2008 10:00:21 -0700


I would suggest using something like keepalived (heartbeat/OCF may do the same thing, I have little experience with it). Technically you can share the IP between the two hosts, it's just that instead of using the built in linux commands to swap the IP address back and forth, you'd need to configure it to instead use amazon's commands to point the elastic IP back and forth.

The scenario I'm imagining is this:

ec2 server 1: 1.1.1.1
ec2 server 2: 1.1.1.2
public elastic IP: 4.4.4.4

Start out with 4.4.4.4 --> 1.1.1.1

On both server1 and server2, they have a process which continually checks if the other server is online.

If server1 goes down, server2 notices this, and tells amazon to remap 4.4.4.4 --> 1.1.1.2.

Hope this makes sense, sorry I can't help with more a specific implementation details, but hopefully the idea makes sense. -David R

On Tue, Oct 28, 2008 at 9:48 AM, Chris Charman <chris#bizo.com> wrote:

> Hey folks...
>
> I'm trying to get high availability working between two HA Proxy instances
> hosted on Amazon's EC2 using heartbeat.
>
> Because of the hosting solution, I can't share an IP between the two
> virtual hosts.
>
> Has anyone written an OSF plugin for the haproxy process?
>
> Thanks in advance!
>
> -Chris
>
Received on 2008/10/28 18:00

This archive was generated by hypermail 2.2.0 : 2008/10/28 18:16 CET