I implemented a similar system at $work using PoCo::PreforkDispatch. It works pretty well and does replace crashed workers. If you are concerned about frozen jobs, you can easily avoid this problem using a classic alarm signal.

We're having just one issue with this setup however, sometimes the controlling process gets completely stuck on something and has to be killed. I don't know yet if PreforkDispatch is the culprit, but I doubt so. I can keep you posted if you want. Update: this is a MySQL issue, POE and its components have nothing to do with that.

(updated) As for father-children task/result IPC, there is no need for XMLRPC. I think this piece of code is a left-over of an earlier design. Actually, PoCo::PreforkDispatch leverages POE::Filter::Reference, which will serialize using Storable the arguments and return values of your function.


In reply to Re: POE, daemon, how to realize pre-forking worker pool for event processing? by waba
in thread POE, daemon, how to realize pre-forking worker pool for event processing? by Kallisti

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.