Link to home
Start Free TrialLog in
Avatar of lhrslsshahi
lhrslsshahi

asked on

AWS - HAProxy- KeepAlived

Hello experts,

We use HA Proxy on Centos 7 so that it load balances incoming web traffic as well as internal requests between the web and application layers.

For the failover we are using Keepalived VIP however in AWS multicasting isnt't supported but in our VMware environment it works just fine.

Is there anyway of using HA Proxy and Keepalived with VIPs rather than unicast and source ip in AWS.

Currently I am using unicast and source ips in Keepalived.  What I have done is create 2 DNS A records instead of using a  VIP.

For the incoming web traffic I am using EIP instead of VIP which is fine. I want to address the internal loadbalancing requests.

Haproxy1   Haproxy2
  |         |
Web1       Web2
  |         |
App1       App2
  |         |
 DB        DB
ASKER CERTIFIED SOLUTION
Avatar of Phil Phillips
Phil Phillips
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lhrslsshahi
lhrslsshahi

ASKER

Yes I am using CNAME to point to an A record.

What about AWS DNS failover and health checks so if the primary fails and it will go to the sencondary automatically rather than me manually changing the CNAME to the second A record when the failure occurs?
Yes, you can use a Route53 health check.  I usually use an endpoint check, but that wouldn't work for internal instances.

You can do a health check based on a CloudWatch metric (i.e. trigger if CloudWatch detects host is down).  This is a bit slower to failover though.
Will let you know how I get on. Thanks
Thanks Phil.