Discover Centmin Mod today
Register Now

[Solved] worker_processes always set to 1 ?

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

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    7:04 AM
    Nginx-1.25.x
    MariaDB 10.3.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

    53,211
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,650
    Local Time:
    2:04 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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 Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    7:04 AM
    Nginx-1.25.x
    MariaDB 10.3.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

    53,211
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,650
    Local Time:
    2:04 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    haha.. eyes need checking ;)
     
  5. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    7:04 AM
    Nginx-1.25.x
    MariaDB 10.3.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

    53,211
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,650
    Local Time:
    2:04 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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 Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    7:04 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Yes but when Centminmod finish it should already be there... correct?
     
  8. eva2000

    eva2000 Administrator Staff Member

    53,211
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,650
    Local Time:
    2:04 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yes :) though it maybe after first centmin.sh run looking at the code :)

    might need to change that :)