Welcome to Centmin Mod Community
Register Now

Nginx Thread Pools in NGINX Boost Performance 9x!

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by RoldanLT, Aug 31, 2015.

  1. RoldanLT

    RoldanLT Well-Known Member

    3,975
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    7:09 PM
    1.11
    10.2
    Why Centminmod doesn't have this added by default? :)
    Boosting NGINX Performance 9x with Thread Pools
    Code:
    # in the 'http', 'server', or 'location' context
    aio threads;
    I just added it on my nginx.conf under http block :).
     
    • Like Like x 2
  2. pamamolf

    pamamolf Well-Known Member

    2,819
    251
    83
    May 31, 2014
    Ratings:
    +445
    Local Time:
    1:09 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Can you please post a sample of the code that you added and did you use any parameters for settings for thread pools?
     
  3. RoldanLT

    RoldanLT Well-Known Member

    3,975
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    7:09 PM
    1.11
    10.2
  4. pamamolf

    pamamolf Well-Known Member

    2,819
    251
    83
    May 31, 2014
    Ratings:
    +445
    Local Time:
    1:09 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Ok great thanks :)

    I was ask for a sample as i thought that you used custom values for threads that's why :)

    Anyway it is great and i hope George will do some magic so we will be able when we enable it to get some stats for each pool from ssh like php pools:

    Code:
    lynx --dump  http://127.0.0.1/phpstatus
    
    pool:  www
    process manager:  static
    start time:  28/Jun/2012:21:24:51 +0400
    start since:  75
    accepted conn:  196
    listen queue:  0
    max listen queue:  0
    listen queue len:  0
    idle processes:  4
    active processes:  1
    total processes:  5
    max active processes: 1
    max children reached: 0
    PHP Status explained:
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,924
    6,910
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,406
    Local Time:
    9:09 PM
    Nginx 1.13.x
    MariaDB 5.5
    Doesn't apply to all situations and is system hardware environment specific as not all servers will have sufficient resources to feed the threads

    Don't believe there's any stats for these thread pools either

    Centmin Mod Nginx is compiled with threads support enabled Core functionality

     
    Last edited: Aug 31, 2015
    • Like Like x 2