what is worker_processes and worker_connections in Nginx?

worker_connections is the number of simultaneous connections; so they are simply stating how to calculate, for example:

  • you are only running 1 process with 512 connections, you will only be able to serve 512 clients.

  • If 2 processes with 512 connections each, you will be able to handle 2×512=1024 clients.

The number of connections is limited by the maximum number of open files (RLIMIT_NOFILE) on your system

nginx
has a better, updated description of worker connections.

fyi, the wiki section is considered obsolete (dont ask), now only the main nginx.org/en/docs are preferred…

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)