Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Forcing modperl processes to restart after N requests

by Anonymous Monk
on Oct 12, 2012 at 18:15 UTC ( #998763=note: print w/ replies, xml ) Need Help??


in reply to Forcing modperl processes to restart after N requests

As an aside, the Plack subsystem (often used with FastCGI) has support for this in an obscure parameter called "harakiri." Aptly-named but hard to spot the docs. It terminates the worker after a specified number of requests.


Comment on Re: Forcing modperl processes to restart after N requests
Re^2: Forcing modperl processes to restart after N requests
by McA (Curate) on Oct 12, 2012 at 18:29 UTC
    That's a really good example for a self documenting method name... ;-) Thank you for that comment.
      It was a good name, even cute, but the devil himself to find in the documentation at the time.
Re^2: Forcing modperl processes to restart after N requests
by Anonymous Monk on Oct 12, 2012 at 21:41 UTC

    nothing which is well documented is obscure :)

    PSGI kill -> PSGI::Extensions

    psgix.harakiri: A boolean which is true if the PSGI server supports harakiri mode, that kills a worker (typically a forked child process) after the current request is complete.

    psgix.harakiri.commit: A boolean which is set to true by the PSGI application or middleware when it wants the server to kill the worker after the current request.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://998763]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2014-08-01 14:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (25 votes), past polls