Re: HA for HAProxy in Amazon Cloud

From: Mariano Guezuraga <mguezuraga#gmail.com>
Date: Fri, 18 Nov 2011 15:56:20 -0300


Firts, sorry HAproxy list for the OT.

I would say it takes an average of 5 seconds.

Also please note that Amazon _seems_ to throttle your API requests if you exceed certain number of requests, sometimes the API failed with "unable to connect to ..." (I've noticed that while performing the monitoring function of the OCF resource)

On 11/18/2011 03:34 PM, Mir Islam wrote:
> So on avg how long it took for the AWS api call to transfer the IP to standby HA Proxy? I am wondering if it makes to go with just auto scale and define minimum 1 server.
>
> Thanks
> Mir
>
> On Nov 18, 2011, at 4:26 AM, Mariano Guezuraga wrote:
>
>> On 11/17/2011 10:55 PM, Mir Islam wrote:
>>> Hi Guys, I am wondering how people are solving the problem of HAProxy becoming SPOF. I am using HAproxy in Amazon cloud for SSL stick session and load balancing, but best solution I could come up with for making HAProxy HA is by having another exact instance as hot standby. Then monitor the active one periodically and if it goes down, move the elastic IP associated with HAP1 to HAP2. Is there some other way folks are solving this issue? Remember, on Amazon cloud instances they do not have any public IP associated with the actual interface. So can't create virtual interface/ip and move it around like in traditional "heart beat" type of systems.
>>>
>>> Thanks
>>> Mir
>> Hi,
>>
>> I'm doing exactly the same. I set up an heartbeat 2 node cluster (active/passive), defined 2 custom ocf resources (the elastic ip and the haproxy daemon) and grouped them to act together. The most tricky part for me was the heartbeat monitoring function because AWS API calls are really slow and tend to time out.
>> Anyway, haproxy is running nicely, so far we are getting ~300 r/s
>>
Received on 2011/11/18 19:56

This archive was generated by hypermail 2.2.0 : 2011/11/18 20:00 CET