Combined PHP-FPM pools

Discussion in 'Developers' Forum' started by choong, Aug 30, 2018.

  1. choong

    choong New Member

    Hello,

    We have a setup where a webserver node hosts over 3000 sites. Currently each site has its own FPM pool, with chroot. Also, there are a few different PHP versions. So ideally, to reduce open sockets, we would like to have 1 FPM pool for each PHP version. If a site uses version 7.2, the Apache config would make it connect to the socket for PHP-FPM 7.2. This way we could greatly reduce the amount of open TCP sockets. There's just one problem I would see here: pools spawn as the user to which the site belongs. Meaning we would have a permissions problem, as the 'generic' pool would not be able to open the PHP files.

    At this point it's just a thought we are having, and we are curious how you guys see this. Would this be an interesting feature to have? And if so, are there any other problems you guys would foresee?
     

Share This Page