在 英语 中使用 Worker processes 的示例及其翻译为 中文
{-}
-
Political
-
Ecclesiastic
-
Programming
NGINX's process architecture, with a small number of worker processes, makes for very efficient updating of the configuration and even the NGINX binary itself.
The NGINX worker processes begin by waiting for events on the listen sockets(accept_mutex and kernel socket sharding).
NGINX's process architecture, with a small number of worker processes, makes for very efficient updating of the configuration and even the NGINX binary itself.
Basically what's happening here is that we create an instance of Pool and tell it to create three worker processes.
NGINX employs an event‑based model and OS‑dependent mechanisms to efficiently distribute requests among worker processes.
Nginx-s reload changing configuration, starting new worker processes with a new configuration, graceful shutdown of old worker processes.
The Supervisor listens for work assigned to its machine and starts and stops worker processes as necessary based on what Nimbus has assigned to it.
Nginx-s reload changing configuration, starting new worker processes with a new configuration, graceful shutdown of old worker processes.
The main purpose of the master process is to read and evaluate configuration, and maintain worker processes.
In normal circumstances, NGINX would serve these requests very quickly, but performance will fall if the worker processes are blocked by other requests.
These new worker processes immediately begin accepting connections and processing traffic(using the new configuration settings).
If this is a success, the master process starts new worker processes and sends messages to old worker processes, requesting them to shut down.
As the load increases, more worker processes can be added to read from the queue.
Both processes are active, and their respective worker processes handle traffic.
The main purpose of the master process is to read and evaluate configuration, and maintain worker processes.
Both processes are active, and their respective worker processes handle traffic.
If this is a success, the master process starts new worker processes and sends messages to old worker processes, requesting them to shut down.
On this four‑core server, the NGINX master process creates four worker processes and a couple of cache helper processes which manage the on‑disk content cache.
The underlying cluster scheduler immediately restarted new worker processes on these machines(since only the processes were killed, the machines were still functioning properly).
Old worker processes, receiving a command to shut down, stop accepting new connections and continue to service current requests until all such requests are serviced.