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

worker_connections are not enough, reusing connections with idle workers

2022-06-03 Thread Roger Fischer
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). But we are seeing 1024 worker_connections are not enough, reusing connections from one worker while other workers are idle. Is there somet

Re: If statement with $limit_req_status under location block with proxy_pass not working

2022-06-03 Thread Maxim Dounin
Hello! On Thu, Jun 02, 2022 at 05:44:26PM -0400, acidiclight wrote: > I'm trying to customize my response to rate-limited requests by keeping > limit_req_dry_run on, and using an if statement depending on the value of > $limit_req_status: > > This works as expected: > > limit_req_zone $binary_r