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

2022-06-07 Thread Sergey A. Osokin
Hi Roger, I've forgotten to ask about the nginx version, so as Maxim Dounin recommended, please upgrade to the recent stable version 1.22.0, https://nginx.org/en/linux_packages.html#Ubuntu On Tue, Jun 07, 2022 at 02:42:23PM -0700, Roger Fischer wrote: > Here are the additional details: > > $ una

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

2022-06-07 Thread Maxim Dounin
Hello! On Tue, Jun 07, 2022 at 01:18:36PM -0700, Roger Fischer wrote: > My assumption is that the client requests will be distributed > over the 24 worker processes. So no individual worker should > come anywhere close to 1000 connections. > > But when I look at the process stats for the worke

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

2022-06-07 Thread Roger Fischer
Here are the additional details: $ uname -a Linux a002 4.15.0-177-generic #186-Ubuntu SMP Thu Apr 14 20:23:07 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.6 LTS" $ cat /etc/os-rel

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

2022-06-07 Thread Sergey A. Osokin
On Tue, Jun 07, 2022 at 01:18:36PM -0700, Roger Fischer wrote: > > We are simulating 1000 clients. Some get cache hits, and some go upstream. So > there are more than 1000 connections. > > We have 24 workers running, each configured: events { worker_connections > 1024; } > > We are seeing the

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

2022-06-07 Thread Roger Fischer
Thanks, Sergey. We are simulating 1000 clients. Some get cache hits, and some go upstream. So there are more than 1000 connections. We have 24 workers running, each configured: events { worker_connections 1024; } We are seeing the following errors from nginx: [warn] 21151#21151: 1024 worker_c

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

2022-06-03 Thread Sergey A. Osokin
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 re