Nginx uses a fixed number of multi-process models, in which a master process (MasterProcess) and worker processes with the same number of host CPU cores work together to handle various events. Nginx uses a fixed number of multi-process models, in which a master process (MasterProcess) and worker processes with the same number of host CPU cores work together to handle various events. The main management process is responsible for configuration loading, starting and stopping of the working process, and the working process is responsible for processing specific requests. The resources between processes are independent. Each worker process handles multiple connections. Each connection is fully handled by a worker process. There is no need to switch processes, and there will be no resource consumption problems caused by process switching. In the default configuration, the number of worker processes is the same as the number of CPU cores on the host. The affinity between the CPU and the process is fully utilized to bind the worker process to the CPU, thereby maximizing the processing power of the multi-core CPU. The Nginx main process is responsible for monitoring external control signals and passing related signal operations to the worker process through the channel mechanism. Multiple worker processes share data and information through shared memory.
Nginx's working process has the following scheduling methods:
This is the end of this article about Nginx process scheduling. For more information about Nginx process scheduling, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: SQL IDENTITY_INSERT case study
>>: Analysis of several reasons why Iframe should be used less
Solution to Ubuntu dual system stuck when startin...
1. IE8's getElementById only supports id, not ...
This article uses examples to illustrate the prin...
Preface Hello everyone, I am Liang Xu. At work, w...
Recently, WeChat Mini Program has proposed adjust...
question Insufficient memory when docker installs...
These introduced HTML tags do not necessarily ful...
Core SQL statements MySQL query statement that do...
In HTML, colors are represented in two ways. One i...
This article shares the specific code for importi...
The specific method of installing CentOS 7.0 on V...
This article describes how to install MySQL 5.7 f...
Table of contents 1. prototype (explicit prototyp...
This article introduces how to configure Nginx to...
What is Docker-Compose The Compose project origin...