Nginx worker_processes Settings

Source: Internet
Author: User

When you do Nginx will find a phenomenon, is to set worker_processes 2 or more time will find that the amount of log generated is not 1 times more.

Ask an expert to get an answer, is likely because the multi-core in the switch when the Register site reconstruction, will lose a certain connection.

The following modifications are made to the nginx.conf:

Worker_processes 4;

Worker_cpu_affinity 0001 0010 0100 1000;

This will bind different processes to different CPU cores, and after testing, the 3-5-minute access will be adjusted to the original level after successful setup.

(This less-scientific and less-accurate test ends here, only as a reference)


Nginx worker_processes Settings

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.