Want to subscribe to topics you're interested in?
Become a Member

Nginx Curious why you decided to manually set Nginx worker processes?

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by jeffwidman, May 8, 2015.

Tags:
  1. jeffwidman

    jeffwidman Active Member

    152
    27
    28
    Dec 3, 2014
    Ratings:
    +51
    Local Time:
    9:16 AM
    Hey @eva2000 curious why in Nginx conf I see worker processes set manually at 2 rather than set at the 'auto' setting which detects number of cores and runs 1 worker for each core?

    Not criticizing, just trying to learn since I'm sure you put some thought into it.
     
  2. rdan

    rdan Well-Known Member

    4,549
    1,090
    113
    May 25, 2014
    Ratings:
    +1,591
    Local Time:
    12:16 AM
    Mainline
    10.2
    I think it is still auto based on your available CPU core.
    I think almost half of it will be use on your config.
    And it is configured during centmin install.
     
    • Like Like x 1
  3. eva2000

    eva2000 Administrator Staff Member

    40,633
    9,019
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,887
    Local Time:
    2:16 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Good explanation I posted here nginx.conf: worker_processes suggestion | Centmin Mod Community :)
     
    style="display:inline-block;min-width:400px;max-width:970px;width:95%;height:90px" data-ad-client="ca-pub-6669518204467592" data-ad-slot="4024536743" data-ad-format="auto">
  4. jeffwidman

    jeffwidman Active Member

    152
    27
    28
    Dec 3, 2014
    Ratings:
    +51
    Local Time:
    9:16 AM