# Least connections and multi\_accept

**URL:** <https://www.ruby-forum.com/t/least-connections-and-multi-accept/228269>\
**Category:** NGINX\
**Created:** [April 16, 2013, 9:52am UTC](https://www.ruby-forum.com/t/least-connections-and-multi-accept/228269 "2013-04-16T09:52:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SSAntS\_nio\_PSPSAlm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e47774/32.png) [@SSAntS\_nio\_PSPSAlm](https://www.ruby-forum.com/u/SSAntS_nio_PSPSAlm)\
**Post date:** [April 16, 2013, 9:52am UTC](https://www.ruby-forum.com/t/least-connections-and-multi-accept/228269/1 "2013-04-16T09:52:11Z")

</div>

Recently Ruslan, while replying to someone stated that the internal  
counters for the least connections load balancing algorithm ate _per  
worker_ and consequently unless there is a high load it might not add up  
that in fact the algorithm logic is “respected” while considering all  
workers. Is this still through if multi\_accept is off. Or this  
directive  
has no bearing on the least connection algorithm?

Thanks,

---

<div class="post-metadata">

**Author:** ![SSAntS\_nio\_PSPSAlm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e47774/32.png) [@SSAntS\_nio\_PSPSAlm](https://www.ruby-forum.com/u/SSAntS_nio_PSPSAlm)\
**Post date:** [April 16, 2013, 1:51pm UTC](https://www.ruby-forum.com/t/least-connections-and-multi-accept/228269/2 "2013-04-16T13:51:08Z")

</div>

Hello!

On Tue, Apr 16, 2013 at 09:51:34AM +0200, António P. P. Almeida wrote:

> Recently Ruslan, while replying to someone stated that the internal  
> counters for the least connections load balancing algorithm ate _per  
> worker_ and consequently unless there is a high load it might not add up  
> that in fact the algorithm logic is “respected” while considering all  
> workers. Is this still through if multi\_accept is off. Or this directive  
> has no bearing on the least connection algorithm?

While multi\_accept might affect connection distribution between  
worker processes, it is otherwise unrelated.

–  
Maxim D.

> **[nginx: donation](http://nginx.org/en/donation.html)**

---

<div class="post-metadata">

**Author:** ![SSAntS\_nio\_PSPSAlm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e47774/32.png) [@SSAntS\_nio\_PSPSAlm](https://www.ruby-forum.com/u/SSAntS_nio_PSPSAlm)\
**Post date:** [April 16, 2013, 2:07pm UTC](https://www.ruby-forum.com/t/least-connections-and-multi-accept/228269/3 "2013-04-16T14:07:30Z")

</div>

* * *

nginx mailing list  
removed\_email\_address@domain.invalid  
[http://mailman.nginx.org/mailman/listinfo/nginx](http://mailman.nginx.org/mailman/listinfo/nginx)
