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
1. Log in to VPN using IE browser 2. Remote login...
The reuse of code in vue provides us with mixnis....
When you install MySQL, you will be given an init...
1.watch listener Introducing watch import { ref, ...
1. Download the axios plugin cnpm install axios -...
Table of contents Forward Proxy nginx reverse pro...
This article uses examples to explain the princip...
Insert Baidu Map into the web page If you want to...
In the fifth issue of Web Skills, a technical sol...
This article introduces the method of using CSS3 ...
Table of contents Two ways to solve the problem o...
This article shares the specific code of JavaScri...
Table of contents 1. Constructor and instantiatio...
Table of contents Some basic configuration About ...
Preface: I reinstalled win10 and organized the fi...