I actually wrote an OCF script about a year ago to better integrate HAProxy
with Heartbeat. My script isn't terribly elegent when it comes to checking
if HAProxy is running, but it works and it passed the OCF testing tool,
meaning it's OCF compliant. You can find the script attached. I've been
using it everyday in production for nearly a year.
On Tue, Oct 28, 2008 at 11:45 AM, Chris Charman <chris#bizo.com> wrote:
> Absolutely makes sense, I'm just trying to use heartbeat to do it instead
> of having to write my own :)
>
> I'll look at keepalived.
>
>
> On Tue, Oct 28, 2008 at 10:00 AM, David Rorex <drorex#gmail.com> wrote:
>
>> 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
>>>
>>
>>
>
This archive was generated by hypermail 2.2.0 : 2008/10/28 19:31 CET