Welcome!
Log In
Create A New Profile
Home
>
Mailing Lists
>
Nginx Mailing List - English
> Topic
Advanced
Re: Auto detect the number of CPU's and set worker_processes
Previous Message
Next Message
Forum List
Message List
New Topic
Print View
Mark Alan
September 17, 2012 07:36AM
On Sat, 15 Sep 2012 19:55:49 -0400, "justin" <nginx-forum@nginx.us>
wrote:
> I am trying to get fancy and have `nginx.conf` auto-detect
Not knowing how to auto-detect it, I usually just excute this as ROOT:
sed -i '/^worker_processes/s,[0-9]\+,'"$(sort -u /proc/cpuinfo | grep
-c processor)"',' /etc/nginx/nginx.conf
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Reply
Quote
RSS
Subject
Author
Posted
Auto detect the number of CPU's and set worker_processes
Anonymous User
September 15, 2012 07:55PM
Re: Auto detect the number of CPU's and set worker_processes
Joshua Zhu
September 15, 2012 11:50PM
Re: Auto detect the number of CPU's and set worker_processes
Maxim Dounin
September 17, 2012 05:44AM
Re: Auto detect the number of CPU's and set worker_processes
Igor Sysoev
September 17, 2012 05:56AM
Re: Auto detect the number of CPU's and set worker_processes
Mark Alan
September 17, 2012 07:36AM
Sorry, only registered users may post in this forum.
Click here to login
Online Users
Guests: 172
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018