# Cluster loadbalancing

**URL:** <https://discourse.haproxy.org/t/cluster-loadbalancing/6421>\
**Category:** Configuration Samples\
**Created:** [March 31, 2021, 1:32pm UTC](https://discourse.haproxy.org/t/cluster-loadbalancing/6421 "2021-03-31T13:32:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![soheil.amiri](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@soheil.amiri](https://discourse.haproxy.org/u/soheil.amiri)\
**Post date:** [March 31, 2021, 1:32pm UTC](https://discourse.haproxy.org/t/cluster-loadbalancing/6421/1 "2021-03-31T13:32:07Z")

</div>

hello  
i am new on haproxy.  
is it possible to create a active-active cluster with 4 node that work simultaneously and answer users requests ?

---

<div class="post-metadata">

**Author:** ![TimScotland](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.haproxy.org/timscotland/32/1378_2.png) [@TimScotland](https://discourse.haproxy.org/u/TimScotland)\
**Post date:** [April 7, 2021, 8:41am UTC](https://discourse.haproxy.org/t/cluster-loadbalancing/6421/2 "2021-04-07T08:41:19Z")

</div>

As with most things in life, Yes… and no…

Could you install 4 HAProxy servers all doing the same thing - yes  
Each would have their own IP address and could serve those services. Load balancing could be done by doing a round robin DNS. So far so good.

Can you distribute the load equally - That’s where it is more tricky, the DNS round robin would be roughly equal but not truly even. Putting cloudflare in front and using their load balancing would probably be better.

You could quite easily add pacemaker to the mix and thus have the 4 IP numbers serviced by HAProxy be able to be hosted by any of the actual boxes for high availability.

HTH
