Get the most out of your Centmin Mod LEMP stack
Become a Member

[Solved] worker_processes always set to 1 ?

Discussion in 'Bug Reports' started by pamamolf, Dec 2, 2016.

  1. pamamolf

    pamamolf Well-Known Member

    2,818
    251
    83
    May 31, 2014
    Ratings:
    +445
    Local Time:
    10:35 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Hello

    I notice on a server Nginx worker_processes set to 1 but i think that should be higher as i have 8 threads ?

    Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz

    grep -c processor /proc/cpuinfo returns 8 and i think the formula ix 1/4 for Nginx ?

    So it should be 2 ?

    I am on latest Centos 7.x and it is a server from soyoustart ...

    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,895
    6,907
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,402
    Local Time:
    6:35 PM
    Nginx 1.13.x
    MariaDB 5.5
    the formulas use are in inc/cpucount.inc centminmod/cpucount.inc at 123.09beta01 · centminmod/centminmod · GitHub for 123.09beta01

    what does output of this command in SSH give ?
    Code (Text):
    grep 'worker_processes' /usr/local/nginx/conf/nginx.conf
    


    for 8 cpu thread count, nginx worker_processes in 123.09beta01 should be auto tuned to 4 which is what I see in latest 123.09beta01 install on my i7 4790K OVH - OVH Intel Core i7 4790K 32GB 2x240GB Samsung PM863 SSD Review | Centmin Mod Community
     
  3. pamamolf

    pamamolf Well-Known Member

    2,818
    251
    83
    May 31, 2014
    Ratings:
    +445
    Local Time:
    10:35 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Code:
    [root@server ~]# grep 'worker_processes' /usr/local/nginx/conf/nginx.conf
    worker_processes 4;
    Am i crazy? I am sure that it was set to 1 there !
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,895
    6,907
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,402
    Local Time:
    6:35 PM
    Nginx 1.13.x
    MariaDB 5.5
    haha.. eyes need checking ;)
     
  5. pamamolf

    pamamolf Well-Known Member

    2,818
    251
    83
    May 31, 2014
    Ratings:
    +445
    Local Time:
    10:35 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    I know that it sounds crazy but i am 100% sure that it was 1 and i will prove it on the next install that i will do :)

    I am sure that something else trigger it later like a restart of it or a restart of the server that i did :)
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,895
    6,907
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,402
    Local Time:
    6:35 PM
    Nginx 1.13.x
    MariaDB 5.5
    well Centmin Mod does auto tune it by end of initial install. The nginx.conf default template is set to 1 first and then auto optimised/changed :)
     
  7. pamamolf

    pamamolf Well-Known Member

    2,818
    251
    83
    May 31, 2014
    Ratings:
    +445
    Local Time:
    10:35 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Yes but when Centminmod finish it should already be there... correct?
     
  8. eva2000

    eva2000 Administrator Staff Member

    30,895
    6,907
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,402
    Local Time:
    6:35 PM
    Nginx 1.13.x
    MariaDB 5.5
    yes :) though it maybe after first centmin.sh run looking at the code :)

    might need to change that :)
     
    • Like Like x 1