Welcome to Centmin Mod Community
Register Now

How do we calculate the amount of php-fpm connections that a server can handle from the config?

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by pamamolf, May 17, 2019 at 1:31 AM.

  1. pamamolf

    pamamolf Premium Member Premium Member

    3,266
    307
    83
    May 31, 2014
    Ratings:
    +566
    Local Time:
    8:06 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Hello

    How do we calculate the amount of php-fpm connections that a server can handle from the config?

    For example:
    Is the 5000 the limit?

    Do we calculate the 20X5000 to get the total connections that the phpfpm set to handle?

    I know that it is related to nginx ram mariadb and all the rest but i would like to know about phpfpm specific....

    Thank you
     
  2. eva2000

    eva2000 Administrator Staff Member

    39,758
    8,769
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,494
    Local Time:
    3:06 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    I updated 2nd post of sticky thread at https://community.centminmod.com/th...oot-optimize-php-fpm-server.15317/#post-74020 with more info - get reading ;) and no pm.max_requests is not a request limit in absolute sense.

    But basic gist is you calculate from continuous monitoring of php-fpm statistics and resource usage and make informed decisions on php-fpm options based on understanding of those options and how they play out in php-fpm statistics status output/monitored metrics.
     
    • Informative Informative x 1
..