# Haproxy maxconn=1 behavior

**URL:** <https://discourse.haproxy.org/t/haproxy-maxconn-1-behavior/10133>\
**Category:** Help!\
**Created:** [August 16, 2024, 9:10am UTC](https://discourse.haproxy.org/t/haproxy-maxconn-1-behavior/10133 "2024-08-16T09:10:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noti](https://avatars.discourse-cdn.com/v4/letter/n/779978/32.png) [@Noti](https://discourse.haproxy.org/u/Noti)\
**Post date:** [August 16, 2024, 9:10am UTC](https://discourse.haproxy.org/t/haproxy-maxconn-1-behavior/10133/1 "2024-08-16T09:10:28Z")

</div>

I’m using haproxy to load balance http servers.  
Each server for specific backend is set with maxconn=1  
Also, I’m using dns discovery to find the servers for the backend.  
The behavior I’m seeing is, when multiple new instances of the service spawn (with autoscaling) few servers receive more than 1 request, not meeting the max on requirement.

Any idea what is wrong?

---

<div class="post-metadata">

**Author:** ![valentine\_r](https://avatars.discourse-cdn.com/v4/letter/v/f9ae1b/32.png) [@valentine\_r](https://discourse.haproxy.org/u/valentine_r)\
**Post date:** [August 18, 2024, 8:51pm UTC](https://discourse.haproxy.org/t/haproxy-maxconn-1-behavior/10133/2 "2024-08-18T20:51:25Z")

</div>

Hi Noti !

Thanks for reporting this !

Could you please share haproxy logs, which illustrate with this behavior and your back-end configuration ?  
Server maxconn limits the number of concurrent requests in case of HTTP.

You can also control it more precisely with stats page.

Here are more details how to enable it and explanations on stats counters:

> **[Exploring the HAProxy Stats Page (What You Should Know)](https://www.haproxy.com/blog/exploring-the-haproxy-stats-page)**
>
> The HAProxy Stats page shows you an abundance of frontend and backend stats covering the health of your servers, current request rates, response times, etc.

Kind regards,
