You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I recently run into worker_connection limitation :
1536 worker_connections are not enough while connecting to upstream
I searched how accounting is done, because I've setup those settings :
worker_connections 1536;
worker_processes 32;
worker_rlimit_nofile 4096;
If i'm right, it should be ok to handle :
1536 * 32 / 2 ( for proxypass ) = 24576 clients.
and i see ~ 1800 established 443 connections.
What i am missing ?
Some vhost have a conf with proxypass depending on endpoint, are they all taken in account ?
Or maybe there is a time / cache that retain worker connection ?
This nginx is contacted by 4 reverses proxy, does it mean only 4 worker handle connections, and one of those reverse proxy had more than 700 conn ?
Thanks for your help
PS: I fixed the problem by setting higher limits, but i want to understand what i missed.
PS2: the error on reverse proxy when reaching the limit is : peer closed connection in SSL handshake while SSL handshaking to upstream
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What question do you have?
Hello,
I recently run into worker_connection limitation :
1536 worker_connections are not enough while connecting to upstream
I searched how accounting is done, because I've setup those settings :
worker_connections 1536;
worker_processes 32;
worker_rlimit_nofile 4096;
If i'm right, it should be ok to handle :
1536 * 32 / 2 ( for proxypass ) = 24576 clients.
and i see ~ 1800 established 443 connections.
What i am missing ?
Some vhost have a conf with proxypass depending on endpoint, are they all taken in account ?
Or maybe there is a time / cache that retain worker connection ?
This nginx is contacted by 4 reverses proxy, does it mean only 4 worker handle connections, and one of those reverse proxy had more than 700 conn ?
Thanks for your help
PS: I fixed the problem by setting higher limits, but i want to understand what i missed.
PS2: the error on reverse proxy when reaching the limit is : peer closed connection in SSL handshake while SSL handshaking to upstream
Beta Was this translation helpful? Give feedback.
All reactions