diff --git a/release.nix b/release.nix index d3ddcf87..81cab0d5 100644 --- a/release.nix +++ b/release.nix @@ -68,6 +68,7 @@ let perlCatalystPluginStackTrace perlCatalystAuthenticationStoreDBIxClass perlCatalystViewTT + perlCatalystEngineHTTPPrefork perlXMLSimple perlIPCRun perlIOCompressBzip2 diff --git a/src/script/hydra_server.pl b/src/script/hydra_server.pl index 11b3d365..4d0e9396 100755 --- a/src/script/hydra_server.pl +++ b/src/script/hydra_server.pl @@ -1,7 +1,7 @@ #!/var/run/current-system/sw/bin/perl -w BEGIN { - $ENV{CATALYST_ENGINE} ||= 'HTTP'; + $ENV{CATALYST_ENGINE} ||= 'HTTP::Prefork'; $ENV{CATALYST_SCRIPT_GEN} = 32; require Catalyst::Engine::HTTP; } @@ -63,6 +63,10 @@ Hydra->run( $port, $host, { restart_regex => qr/$restart_regex/, restart_directory => $restart_directory, follow_symlinks => $follow_symlinks, + min_servers => 2, + max_servers => 10, + min_spare_servers => 2, + max_spare_servers => 5, } ); 1;