]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - modules/private/websites/patrick_fodella/ecolyeu.nix
Fix php-fpm that were on-demand instead of dynamic
[perso/Immae/Config/Nix.git] / modules / private / websites / patrick_fodella / ecolyeu.nix
index 00dab76c12d4f06fd79ca1662e53f36b5efd6525..d908e7807ed58a5249d5b9a3642daa4652cabc94 100644 (file)
@@ -25,9 +25,11 @@ in {
         "listen.owner" = apacheUser;
         "listen.group" = apacheGroup;
 
-        "pm" = "ondemand";
-        "pm.max_children" = "5";
-        "pm.process_idle_timeout" = "60";
+        "pm" = "dynamic";
+        "pm.max_children" = "20";
+        "pm.start_servers" = "2";
+        "pm.min_spare_servers" = "1";
+        "pm.max_spare_servers" = "3";
 
         "php_admin_value[open_basedir]" = "/var/lib/php/sessions/patrick_fodella_ecolyeu:${varDir}:/tmp";
         "php_admin_value[session.save_path]" = "/var/lib/php/sessions/patrick_fodella_ecolyeu";