Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
No such thing as a small change
 
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 (Deacon) 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 exploiting the Monastery: (5)
As of 2014-04-18 04:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (461 votes), past polls