# Cannot make fixed balancing with "leastconn"

**URL:** <https://discourse.haproxy.org/t/cannot-make-fixed-balancing-with-leastconn/5302>\
**Category:** Help!\
**Created:** [June 1, 2020, 10:06am UTC](https://discourse.haproxy.org/t/cannot-make-fixed-balancing-with-leastconn/5302 "2020-06-01T10:06:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![glemoing](https://avatars.discourse-cdn.com/v4/letter/g/ee7513/32.png) [@glemoing](https://discourse.haproxy.org/u/glemoing)\
**Post date:** [June 1, 2020, 10:06am UTC](https://discourse.haproxy.org/t/cannot-make-fixed-balancing-with-leastconn/5302/1 "2020-06-01T10:06:10Z")

</div>

Hi,

I’m tying to make a very silple thing : bascivc configuration, with one frontend, associated with 6 backend, no weight, and using “balance leastconn”, “mode tcp”.

When I connect 6 connections on “frontend”, from 6 different clients, one connection performed every second, I was expecting having one tcp connection on each of my 6 backends. Tsi is not the case, behaviour is randop : in most case, at least one backend has 2 or more connections, and at least one has no connection, which is bad …  
“laxconn” to one is not a good solution, since in case I loose a backend, I’m afraid it will not allow 2 connexions on backend (which would be necessary in this case).

Thanks for any idea,

Guenhaël
