Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Bein' lazy: need a child-process monitor, quick 'n fast

by aquarium (Curate)
on Oct 19, 2010 at 03:41 UTC ( [id://866100]=note: print w/replies, xml ) Need Help??


in reply to Bein' lazy: need a child-process monitor, quick 'n fast

you could possibly use net::daemon or other. an outline of how to write a preforking daemon http://www.petercooper.co.uk/archives/000702.html. that talks about http daemon, just take the prefork bits you want. you can make your starting daemon / parent start from init.d to make it resilient.
maybe if you elaborate a bit more about the scheduling requirements, someone may be able to offer more help.
i don't have any understanding of what your pre-forked processed are supposed to do..but a number of pre-forked processes that run for hours doesn't sound like a reasonable setup to start with. perhaps this setup could benefit from a shift in approach? otherwise just run a cluster all on the same box or distributed?
the hardest line to type correctly is: stty erase ^H

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-03-28 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found