Want more timely Centmin Mod News Updates?
Become a Member

Nginx Thread Pools in NGINX Boost Performance 9x!

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

  1. rdan

    rdan Premium Member Premium Member

    4,255
    1,034
    113
    May 25, 2014
    Ratings:
    +1,486
    Local Time:
    10:14 AM
    Mainline
    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

    3,113
    295
    83
    May 31, 2014
    Ratings:
    +530
    Local Time:
    5:14 AM
    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. rdan

    rdan Premium Member Premium Member

    4,255
    1,034
    113
    May 25, 2014
    Ratings:
    +1,486
    Local Time:
    10:14 AM
    Mainline
    10.2
  4. pamamolf

    pamamolf Well-Known Member

    3,113
    295
    83
    May 31, 2014
    Ratings:
    +530
    Local Time:
    5:14 AM
    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

    36,009
    7,897
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,177
    Local Time:
    12:14 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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
..