Configuration of the event Module (Events Module) in nginx and description of each parameter abstract control the accept_mutex syntax of the Nginx command for handling connections: accept_mutex [on | off] default value: on Nginx uses the connection mutex lock for the sequential accept () System Call www.2cto.com accept_mutex_delay Syntax: accept_mutex_delay Nms; default value: Ms if a process does not have a mutex lock, it will be recycled at least after this value. The default value is 500msdebug_connection Syntax: debug_connection [ip | CIDR] default value: none 0.3.54. This parameter supports the CIDR address pool format. This parameter can only record the debug information generated by a client IP address. You can also specify multiple parameters.
[Html] error_log/var/log/nginx/errors; events {debug_connection 192.168.1.1;} specify devpoll_changes devpoll_events kqueue_changes kqueue_events epoll_events Syntax: devpoll_changes Default Value: these Parameters specify the number of events passed to or from the kernel as required. The default value of devpoll is 32, and the remaining value is 512. Www.2cto.com multi_accept Syntax: multi_accept [on | off] default value: off multi_accept. After Nginx receives a new connection notification, it calls accept () to accept as many connections as possible.
Rtsig_signo Syntax: rtsig_signo default value: Nginx uses two signals after the rtsig mode is enabled. This command specifies the first signal number, the second signal number is the first plus 1. The default rtsig_signo value is SIGRTMIN + 10 (40 ). Rtsig_overflow_eventsrtsig_overflow_testrtsig_overflow_threshold
Syntax: rtsig_overflow _ * default value: These Parameters specify how to handle rtsig queue overflow. When overflow occurs when nginx clears the rtsig queue, they call poll () and rtsig continuously. poll () to process unfinished events until rtsig is emptied to prevent new overflow. When overflow processing is completed, nginx enables the rtsig mode again. Rtsig_overflow_events specifies the number of poll () events. By default, 16rtsig_overflow_test specifies the number of events that poll () processes. nginx will empty the rtsig queue, and the default value is 32rtsig_overflow_threshold, nginx checks the kernel before emptying the rtsig queue to determine how the queue is filled. The default value is 1/10, and "rtsig_overflow_threshold 3" indicates 1/3. Use Syntax: use [kqueue | rtsig | epoll |/dev/poll | select | poll | eventport] default value: If you are in. /configure specifies more than one event model. You can use this parameter to tell nginx which event model you want to use, by default, nginx will check the event model most suitable for your system during compilation. You can see all available event models here and activate them at./configure. Www.2cto.com worker_connections Syntax: worker_connections default value: worker_connections and worker_proceses (see the main module) allow you to calculate the theoretical maximum connections: Maximum connections = worker_processes * worker_connections in the reverse proxy environment: maximum connections = worker_processes * worker_connections/4 as the browser opens two connections to the server by default, nginx uses the fds (file descriptor) from the same address pool to connect to the front and back ends