Welcome to Centmin Mod Community
Become a Member

nginx.conf: worker_processes suggestion

Discussion in 'Feature Requests & Suggestions' started by RoldanLT, Apr 9, 2015.

Tags:
  1. RoldanLT

    RoldanLT Well-Known Member

    3,975
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    9:32 PM
    1.11
    10.2
    Please use "auto" on initial install ? :)
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,850
    6,905
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,396
    Local Time:
    11:32 PM
    Nginx 1.13.x
    MariaDB 5.5
    auto assigns nginx to all cpu cores leaving nothing dedicated to PHP-FPM and MySQL whereas the way Centmin Mod's method leaves a few cpu threads available for PHP-FPM and MySQL without further cpu contention
     
    • Like Like x 1
  3. RoldanLT

    RoldanLT Well-Known Member

    3,975
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    9:32 PM
    1.11
    10.2
    Good point, now change from using all cpu/8 to only 4 :)
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,850
    6,905
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,396
    Local Time:
    11:32 PM
    Nginx 1.13.x
    MariaDB 5.5
    Centmin Mod automatically does all the calculations in inc/cpucount.inc for up to 257 cpu threads
     
  5. RoldanLT

    RoldanLT Well-Known Member

    3,975
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    9:32 PM
    1.11
    10.2
    Hard to read that code :D
    What if I have 8 total cpu core, How much does the script implement to nginx worker?
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,850
    6,905
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,396
    Local Time:
    11:32 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Informative Informative x 1
  7. RoldanLT

    RoldanLT Well-Known Member

    3,975
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    9:32 PM
    1.11
    10.2
    I will let nginx use 4 for now :)