Twiggy::Prefork::Metabolic - Metabolic preforking AnyEvent HTTP server for PSGI
Twiggy::Prefork::Metabolic
$ plackup -s Twiggy::Prefork::Metabolic -a app.psgi
Twiggy::Prefork::Metabolic behaves the same as Twiggy::Prefork except that a child process (a worker) won't stop listening after reaching max_reqs_per_child until all accepted requests finished. In other words, the child process never refuses a new connection arrived before restart.
max_reqs_per_child
Twiggy::Prefork::Metabolic infinitely accepts new requests as Twiggy does without getting stuck even if there are more requests than max_workers x max_reqs_per_child. This is like Twiggy::Prefork with --max-reqs-per-child=0. It also restarts child processes as Twiggy::Prefork does if the process has idle time after reaching max_reqs_per_child.
Twiggy
max_workers
Twiggy::Prefork
--max-reqs-per-child=0
Copyright (C) INA Lintaro
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
INA Lintaro <tarao.gnn@gmail.com>
To install Twiggy::Prefork::Metabolic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Twiggy::Prefork::Metabolic
CPAN shell
perl -MCPAN -e shell install Twiggy::Prefork::Metabolic
For more information on module installation, please visit the detailed CPAN module installation guide.