Welcome to Centmin Mod Community
Become a Member

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

    459
    93
    28
    Feb 21, 2016
    Portugal
    Ratings:
    +350
    Local Time:
    5:04 PM
    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,651
    10,357
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,073
    Local Time:
    3:04 AM
    Nginx 1.19.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

    459
    93
    28
    Feb 21, 2016
    Portugal
    Ratings:
    +350
    Local Time:
    5:04 PM
    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

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    7:04 PM
    1.9.10
    10.1.11
    So, how to setup that? :)
     
  5. Revenge

    Revenge Active Member

    459
    93
    28
    Feb 21, 2016
    Portugal
    Ratings:
    +350
    Local Time:
    5:04 PM
    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.