worker_connections are not enough, reusing connections with idle workers

Sergey A. Osokin osa at
Sat Jun 4 03:40:12 UTC 2022

Hi Roger,

hope you're doing well.

On Fri, Jun 03, 2022 at 05:38:07PM -0700, Roger Fischer wrote:
> Hello,
> my understanding is that worker_connections applies to each worker
> (eg. when set to 1024, 10 worker processes could handle up to 10240
> connections).

That's exactly right.  Please read the following link [1] to get more

> But we are seeing 1024 worker_connections are not enough, reusing
> connections from one worker while other workers are idle.

So, it's possibe to increase the number of those.

> Is there something we can do to balance connections more evenly
> across workers?

Could you please add a bit more details on this.  Please note, that
there were several improvements on that topic, so please follow the
recommendations below.

> nginx version: nginx/1.19.9

Recent stable version is 1.22.0, [2] so I'd recommend to update to
that version.

Thank you.


Sergey A. Osokin

More information about the nginx mailing list