1. 工作进程的最大连接数
Syntax: | worker_connections |
---|---|
Default: | worker_connections 512; |
Context: | events |
Sets the maximum number of simultaneous connections that can be opened by a worker process.
It should be kept in mind that this number includes all connections (e.g. connections with proxied servers, among others), not only connections with clients. Another consideration is that the actual number of simultaneous connections cannot exceed the current limit on the maximum number of open files, which can be changed by worker_rlimit_nofile.
2. 工作进程是否开启同时接收多个请求
Syntax: | multi_accept |
---|---|
Default: | multi_accept off; |
Context: | events |
If multi_accept
is disabled, a worker process will accept one new connection at a time. Otherwise, a worker process will accept all new connections at a time.
The directive is ignored if kqueue connection processing method is used, because it reports the number of new connections waiting to be accepted.
3. 工作进程处理aio请求的最大连接数
Syntax: | worker_aio_requests |
---|---|
Default: | worker_aio_requests 32; |
Context: | events |
This directive appeared in versions 1.1.4 and 1.0.7.
When using aio with the epoll connection processing method, sets the maximum number
of outstanding asynchronous I/O operations for a single worker process.
4. 工作进程以什么用户与工作组的身份运行
Syntax: | user |
---|---|
Default: | user nobody nobody; |
Context: | main |
Defines user
and group
credentials used by worker processes. If group
is omitted, a group whose name equals that of user
is used.