Apache-LoadAvgLimit
view release on metacpan or search on metacpan
The module may still work for you, but consider switch to psgi like below:
use Plack::Builder;
use HTTP::Exception;
use Sys::Load;
builder {
enable 'HTTPExceptions';
enable_if { (Sys::Load::getload())[0] > 3.00 }
sub { sub { HTTP::Exception::503->throw } };
$app;
};
You can run mod\_perl1 application as psgi with [Plack::Handler::Apache1](http://search.cpan.org/perldoc?Plack::Handler::Apache1).
# DESCRIPTION
If system load-average is over the value of __LoadAvgLimit\*__,
Apache::LoadAvgLimit will try to reduce the machine load by returning
lib/Apache/LoadAvgLimit.pm view on Meta::CPAN
The module may still work for you, but consider switch to psgi like below:
use Plack::Builder;
use HTTP::Exception;
use Sys::Load;
builder {
enable 'HTTPExceptions';
enable_if { (Sys::Load::getload())[0] > 3.00 }
sub { sub { HTTP::Exception::503->throw } };
$app;
};
You can run mod_perl1 application as psgi with L<Plack::Handler::Apache1>.
=head1 DESCRIPTION
If system load-average is over the value of B<LoadAvgLimit*>,
Apache::LoadAvgLimit will try to reduce the machine load by returning
( run in 0.498 second using v1.01-cache-2.11-cpan-496ff517765 )