Global Load Balancing using Ha Proxy

Hi all,

I am new to this group and also to the technology. Please pardon my behavioural ignorance…

Can someone please let me know if we can do a global load balancing ( cross datacenter ) using HaProxy.
If yes: Can you share a simple configuration example or guide me to the documentation where i can refer and create one.
if no : Then why ??

I am using : HA-Proxy version 1.5.4 2014/09/02
Requirement:

one Haproxy : Standalone
Backend: 2Linux Servers
Load balancing Method: Round Robin

Thanks in Advance !!!

Hello,!

You, you can!

Some like this:

[...]
frontend front
  bind *:80
  mode http
  default_backend dc
  [...]

backend dc
  mode http
  balance roundrobin
  server  dc1 200.1.1.1:80  check port 80 inter 5s
  server  dc2 200.2.2.2:80  check port 80 inter 5s
  [...]

Great Thanks a lot !!! Tiagocruz.

But now in case i want to change the backend servers load balancing method and say want to redirect the users based on there geographic location, can we do that ??

Regards
Surya

Hello suryakant86!

I know that you can do it using 3º part DNS (Cloudflare, AWS) or using Varnish. With HAProxy, to be honest, I don’t know. Let’s wait for another answer!

Regards

Thanks a Lot tiagocruz…any one who can help me in setting up a Global Load Balancing like feature on Haproxy ??

This is a little more complex than copying and pasting some configurations.

I suggest you hire someone or get commercial support from haproxy.com.