Skip to content

Instantly share code, notes, and snippets.

@esacteksab
Created November 2, 2012 02:07
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save esacteksab/3998227 to your computer and use it in GitHub Desktop.
Save esacteksab/3998227 to your computer and use it in GitHub Desktop.
nginx+uwsgi pef settings
worker_connections are not enough while connecting to upstream
nginx--
worker_processes = 4
worker_connections = 8192
worker_rlimit_nofile 4096
uwsgi --
listen = 4096
system --
net.core.somaxconn = 32768
worker_connections are not enough while connecting to upstream
nginx--
worker_processes = 4
worker_connections = 1024
worker_rlimit_nofile 4096
uwsgi --
listen = 4096
system --
net.core.somaxconn = 32768
failed (24: Too many open files) while connecting to upstream, client
nginx --
worker_process = 4
worker_connections = 1024
uwsgi --
listen = 100 (default)
system --
net.core.somaxconn = 32768
failed (24: Too many open files) while connecting to upstream, client
nginx --
worker_process = 4
worker_connections = 768
uwsgi --
listen = 100 (default)
system --
net.core.somaxconn = 256
.sock failed (11: Resource temporarily unavailable) while connecting to upstream
nginx --
worker_process = 4
worker_connections = 768
uwsgi --
listen = 100 (default)
system --
net.core.somaxconn = 128
@haytham-salhi
Copy link

Hello Morison,

It is a very good idea to list the issues you got for each set of configuration. I am wondering did you get around these issues and how?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment