Do I need to have a HAProxy TCP / HTTP Load Balancer when I already have AWS ELB?

Let's say I have 20 servers on Amazon AWS, and I also have AWS ELB setup for these servers. I heard that HAProxy is a reliable and fast TCP / HTTP load balancer, so the question is:

  • Do I need to install HAProxy in every instance of EC2 while I have AWS ELB?
  • What is the advantage of using both ELB and Haproxy at the same time?

thank

+3
source share
4 answers

There are several scenarios in which people choose their own load balancing solution, such as HAProxy, than ELB:

: ELB - . . , , , ELB .

: ELBs 5 . 5-10 , . , , ELB.

ELB , Loadbalancing. 15%, HAProxy/Nginx ( SSL). 30 , , SSL, .

ELB , HAProxy .

HAProxy , ELB . , .

+1

. ELB- > haproxy- > . :

  • ELB HTTPS http
  • HAproxy
  • http

, URL- , ELB IP-, , IP- cname, .

+1

: , HAProxy. ELB.

TL;DR;

HAProxy .

, EC2 HAProxy ( HAProxy EC2, ). , ELB EC2, - .

-, ELB, HAProxy- . , . , , , ELB. Google, .

0

ELB Haproxy.

When a client uses my web services with a unique IP, ELB redirects all its requests to the same hosts. It does not scale. (I assumed it was a hash from src ip or something like that).

Haproxy has another balancing algorithm.

I hold ELB for HA (1 haproxy / availability zone). And each haproxy instance redistributes zone zone servers

0
source

All Articles