Welcome to Centmin Mod Community
Register Now

Beta Branch prep for PHP-FPM pools 2 to 5 support

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jun 25, 2015.

  1. Revenge

    Revenge Active Member

    456
    93
    28
    Feb 21, 2016
    Portugal
    Ratings:
    +347
    Local Time:
    5:01 AM
    1.9.x
    10.1.x
    But that will be the case if a pool have reached the maximum Children's?
    In a normal situation without backup pools, the client will wait for the pool to have free children's. In this case, it would also wait for that, or it would jump to the backup pool?
     
  2. eva2000

    eva2000 Administrator Staff Member

    45,155
    10,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,919
    Local Time:
    2:01 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    if php-fpm backend times out usually 502 bad gateway timeout on nginx end if you had single pool
     
  3. Revenge

    Revenge Active Member

    456
    93
    28
    Feb 21, 2016
    Portugal
    Ratings:
    +347
    Local Time:
    5:01 AM
    1.9.x
    10.1.x
    Ya, that's true. So, i think if that happens, it will jump to the backup pool.
    Basically what im trying to do, its setup a php-fpm pool in a different server, just to serve as a backup in the rare case of all the children's in the origin server reach the maximum clients. Because that pool will have more latency(distance from the origin server), i prefer to just use it just in that case and not all the time.
     
  4. negative

    negative Active Member

    406
    49
    28
    Apr 11, 2015
    Ratings:
    +96
    Local Time:
    7:01 AM
    1.9.10
    10.1.11
    So, how to setup that? :)
     
  5. Revenge

    Revenge Active Member

    456
    93
    28
    Feb 21, 2016
    Portugal
    Ratings:
    +347
    Local Time:
    5:01 AM
    1.9.x
    10.1.x
    The same way you do the internal pools, but instead of using the 127.0.0.1 ip, you use the real server ip's.