Graphical Nginx-nginx Process Model 1

Source: Internet
Author: User
the normal execution of Nginx will have a number of processes, the most basic master_process (that is, the monitoring process, also known as the main process) and worker_process (that is, the work process), there may be cache-related processes. These processes communicate with each other in order to pass some information (mainly the monitoring process is passed to the worker process). In addition to the communication between their own processes, Nginx also relies on powerful functional modules and the outside world, such as through the upstream and back-end WEB server communication, relying on fastcgi and back-end application server communication, etc.

the master process is primarily used to manage worker processes, including the following 4 main features:
(1) Receiving signals from the outside world.
(2) Send a signal to each worker process.
(3) Monitor the running state of the woker process.
(4) When the Woker process exits (in exceptional cases), the new Woker process is restarted automatically.
Woker process is mainly used to deal with network events, each woker process is peer and independent, they are equally competitive from the client's request, a request can only be processed in a woker process, the number of Woker process is generally set to the number of machine CPU cores.


The above describes the graphical Nginx-nginx process Model 1, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • 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.