# How to avoid haproxy reload impact on balancing algorithm

**URL:** <https://discourse.haproxy.org/t/how-to-avoid-haproxy-reload-impact-on-balancing-algorithm/1229>\
**Category:** Help!\
**Created:** [May 12, 2017, 6:40am UTC](https://discourse.haproxy.org/t/how-to-avoid-haproxy-reload-impact-on-balancing-algorithm/1229 "2017-05-12T06:40:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amitgera](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.haproxy.org/amitgera/32/111_2.png) [@amitgera](https://discourse.haproxy.org/u/amitgera)\
**Post date:** [May 12, 2017, 6:40am UTC](https://discourse.haproxy.org/t/how-to-avoid-haproxy-reload-impact-on-balancing-algorithm/1229/1 "2017-05-12T06:40:18Z")

</div>

####In haproxy node before reload there were two backend A and B  
At this stage there are total 20 connection on haproxy  
A: 10  
B: 10  
####Now After reload there are four backend old one : A,B and new one : C & D  
At this stage there are total 40 connections on haproxy( 20 new and 20 old) ,  
Old BKD A: 10 old + 5 new  
Old BKD B: 10 old + 5 new  
New BKD C: 5 new  
New BKD D: 5 new

Please confirm is it feasible to have scenario like this where haproxy post reload can decided that backend A and B are having enough connection so it should route traffic to C and D only  
Old BKD A: 10 old + 0 new  
Old BKD B: 10 old + 0 new  
New BKD C: 10 new  
New BKD D: 10 new  
and in above scenario if still it increasing suppose 8 more connections then  
Old BKD A: 10 old + 2 new  
Old BKD B: 10 old + 2 new  
New BKD C: 12 new  
New BKD D: 12 new

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [May 12, 2017, 1:25pm UTC](https://discourse.haproxy.org/t/how-to-avoid-haproxy-reload-impact-on-balancing-algorithm/1229/2 "2017-05-12T13:25:14Z")

</div>

You want to switch to leastconn then:  
[http://cbonte.github.io/haproxy-dconv/1.7/configuration.html#4.2-balance](http://cbonte.github.io/haproxy-dconv/1.7/configuration.html#4.2-balance)
