tag:blogger.com,1999:blog-4836510665235566234.post1177126452894149575..comments2024-03-12T21:55:49.079-07:00Comments on Cloud, Big Data and Mobile: High Availability @ Load Balancing Layer-HAProxy / ELBHarish Ganesanhttp://www.blogger.com/profile/02069892404142116481noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-4836510665235566234.post-57924763262806924432014-12-02T11:23:00.417-08:002014-12-02T11:23:00.417-08:00Might be obvious for some people, but I wasted a b...Might be obvious for some people, but I wasted a bunch of time on it. Newer versions of keepalived require a different config setup for unicast. instead of<br /><br />vrrp_unicast_bind 10.215.31.4<br />vrrp_unicast_peer 10.85.110.252<br /><br />it is now<br /><br />unicast_src_ip 10.215.31.4<br />unicast_peer {<br /> 10.85.110.252<br />}<br /><br />Hope that helps save someone sometime. Oh and thanks for this article it really helped!Ben Youngblutnoreply@blogger.comtag:blogger.com,1999:blog-4836510665235566234.post-85470796274915086522013-05-17T19:40:07.754-07:002013-05-17T19:40:07.754-07:00Very helpful article, I am planning on auto assign...Very helpful article, I am planning on auto assigning EIP to VPC boxes and using heart beat to check themAiman Parvaizhttps://www.blogger.com/profile/11735286443244188205noreply@blogger.comtag:blogger.com,1999:blog-4836510665235566234.post-16384980925729461942013-05-17T19:39:00.700-07:002013-05-17T19:39:00.700-07:00Very helpful article, I am planning to go with 2 V...Very helpful article, I am planning to go with 2 VPC boxes and heartbeat to check them and auto assigning the EIP from one box to another.Aiman Parvaizhttps://www.blogger.com/profile/11735286443244188205noreply@blogger.comtag:blogger.com,1999:blog-4836510665235566234.post-40671645395600678552013-03-15T01:33:10.169-07:002013-03-15T01:33:10.169-07:00Or you could use Latency Based Routing in Amazon’s...Or you could use Latency Based Routing in Amazon’s DNS solution, Route 53.Jökull Sólberg Auðunssonhttps://www.blogger.com/profile/04619022522537344398noreply@blogger.comtag:blogger.com,1999:blog-4836510665235566234.post-59444059936392984742013-02-06T18:14:18.137-08:002013-02-06T18:14:18.137-08:00Why ELB not in Front of HAProxy?
I know some peop...Why ELB not in Front of HAProxy?<br /><br />I know some people do this and according to me it should be carefully weighed for your use case and decide. But in my experience there are some reasons why it should not be done, they are:<br />Response time increases marginally because of passing thru 2 layers proxies(not needed).<br />ELB cannot handle Flash traffic unless it is prewarmed. Even if you have multiple HAProxies behind to handle flash/sudden surge traffic,ELB may become bottleneck.<br />ELB algo support is not as wide as HAProxy.<br />ELB does not solve the timeouts, whitelisting, audit problems. Refer article http://harish11g.blogspot.in/2012/11/amazon-elb-vs-haproxy-ec2-analysis.html<br /><br /> <br />Harish Ganesanhttps://www.blogger.com/profile/02069892404142116481noreply@blogger.comtag:blogger.com,1999:blog-4836510665235566234.post-61216596067746707142013-02-05T04:44:43.140-08:002013-02-05T04:44:43.140-08:00Hi,
I wondered something: Why not making loadbalan...Hi,<br />I wondered something: Why not making loadbalancing of both Haproxy with ELB itself in front of them ? (and not using RR)<br />Thanks, regards.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4836510665235566234.post-70511958481514500542012-12-14T07:19:10.267-08:002012-12-14T07:19:10.267-08:00Hi Harish, excellent post, very descriptive and us...Hi Harish, excellent post, very descriptive and useful.<br /><br />How do you get to run the ec2 script after detecting a down instance?<br /><br />Also, is there any .deb file for 64bit instance of the keepalived patch with unicast?<br /><br />Thanks!<br /><br />MartinMartinnoreply@blogger.comtag:blogger.com,1999:blog-4836510665235566234.post-53003152901283737222012-11-14T08:20:19.584-08:002012-11-14T08:20:19.584-08:00Harish,
We did apply that patch and the 2 EC2 ins...Harish,<br /><br />We did apply that patch and the 2 EC2 instances were not receiving the packets from each other. That is why I opened a ticket with AWS Support. With the Unicast patch, KeepAliveD uses Unicast instead of Multicast but the IP protocol is still VRRP and not TCP. And AWS only allows TCP, UDP and ICMP in the non-VPC cloud.<br /><br />Thanks<br />SNAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4836510665235566234.post-60113326214152321132012-11-14T00:47:23.889-08:002012-11-14T00:47:23.889-08:00KeepAliveD ~ VRRP can also work in "Unicast&q...KeepAliveD ~ VRRP can also work in "Unicast" inside Amazon non-VPC cloud. By default KeepAliveD does not support "unicast". We have used a patch for configuring KeepAliveD to work in 'unicast'. Can be found at: <br /><br />http://1wt.eu/keepalived/keepalived-1.1.19-unicast.patch<br /><br />Harish Ganesanhttps://www.blogger.com/profile/02069892404142116481noreply@blogger.comtag:blogger.com,1999:blog-4836510665235566234.post-61472656584697676492012-11-13T08:38:01.725-08:002012-11-13T08:38:01.725-08:00KeepAliveD will only work in VPC. Here is the comm...KeepAliveD will only work in VPC. Here is the comment from AWS Support.<br /><br />VRRP is not a UDP-based protocol. By the design of EC2, it will not work with a non-VPC instance. If you want to use this protocol, you will need to set up your instances in a VPC subnet, and set up the VPC security group / network ACLs with a custom protocol rule permitting IP protocol #112 or "All Traffic".<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4836510665235566234.post-50023608607604618562012-11-12T11:15:38.290-08:002012-11-12T11:15:38.290-08:00Harish,
Great post! Did you test Pattern 2 on non...Harish,<br /><br />Great post! Did you test Pattern 2 on non-VPC or VPC EC2? We can't get VRRP to work between non-VPC EC2 instances for KeepAliveD.<br /><br />Thanks<br />SNAnonymousnoreply@blogger.com