Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Parent/Child,Boss/Worker->IPC suggestions

by josh803316 (Beadle)
on Jun 30, 2009 at 07:34 UTC ( #775934=note: print w/ replies, xml ) Need Help??


in reply to Re: Parent/Child,Boss/Worker->IPC suggestions
in thread Parent/Child,Boss/Worker->IPC suggestions

Yes, my original design was to have gearman do this for me but the problem I've been facing is shared memory, communication between parent and child workers and blocking during a long running gearman worker process....
I wasn't sure how to create a manager/worker setup, all on the gearman worker side. I guess I could have the manager be a gearman worker and a gearman client at the same time. (Thoughts??).


Comment on Re^2: Parent/Child,Boss/Worker->IPC suggestions
Re^3: Parent/Child,Boss/Worker->IPC suggestions
by perrin (Chancellor) on Jun 30, 2009 at 15:14 UTC
    Yeah, I advise you not to use shared memory. I'd keep state in a database, and use signals if you need to interrupt running processes to shut them down.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2014-09-23 11:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (219 votes), past polls