Configuring Multiple php-fpm worker pools

Events happening in the community are now at Drupal community events on www.drupal.org.
mesch's picture

I've been looking into how to best isolate virtual hosts from one another when using nginx with php-fpm (like using suEXEC with Apache). The most common approach I've found is to use a separate php-fpm pool configured for each virtual host, as described here:
http://www.howtoforge.com/php-fpm-nginx-security-in-shared-hosting-envir...

With this approach, is there a way to control the maximum number of children across all pools?

Also, does anyone have an entirely different approach?

Comments

AFAIK

perusio's picture

there's no builtin way to control the total number of workers. There's something related though:

; the global number of processes when using dynamic PM within a lot of pools.
; Use it with caution.
; Note: A value of 0 indicates no limit
; Default Value: 0
; process.max = 128

from php-fpm.conf.

Nginx

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: