Welcome! Log In Create A New Profile

Advanced

Re: worker_connections are not enough, reusing connections with idle workers

Sergey A. Osokin
June 03, 2022 11:42PM
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
details.

> 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.

References
1. https://nginx.org/en/docs/ngx_core_module.html#worker_connections
2. http://nginx.org/en/CHANGES-1.22

--
Sergey A. Osokin
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

worker_connections are not enough, reusing connections with idle workers

roger_bc June 03, 2022 08:40PM

Re: worker_connections are not enough, reusing connections with idle workers

Sergey A. Osokin June 03, 2022 11:42PM

Re: worker_connections are not enough, reusing connections with idle workers

roger_bc June 07, 2022 04:20PM

Re: worker_connections are not enough, reusing connections with idle workers

Sergey A. Osokin June 07, 2022 05:32PM

Re: worker_connections are not enough, reusing connections with idle workers

roger_bc June 07, 2022 05:44PM

Re: worker_connections are not enough, reusing connections with idle workers

Sergey A. Osokin June 07, 2022 09:26PM

Re: worker_connections are not enough, reusing connections with idle workers

Maxim Dounin June 07, 2022 07:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 319
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready