Master process and worker process

Source: Internet
Author: User

The master process is the primary process that creates the manager process and the reactor thread, such as work-in/thread

The reactor thread actually runs the Epoll instance, which is used to accept the link to the client and sends a request to the manager process that is the management process that is created to manage all worker processes and taskworker processes

The worker process is a worker process, and all business logic is made in that process, and when the reactor thread receives data from the client, the data is packaged and sent to a worker process through a pipeline

Nginx process number setting is generally equal to the number of cores, high-traffic concurrency can also be considered to increase the number of processes to CPU cores * 2

[[email protected] swool] #  1
/proc is a pseudo file system that only exists in memory, and does not occupy the storage space, in the way of file system, provides an interface for accessing system kernel data, so users and applications can get system information through proc, and can change kernel parameters

Master process and worker process

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.