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

Re^2: Looking for a POE based distributed job scheduler

by jfroebe (Parson)
on Dec 28, 2009 at 21:44 UTC ( #814666=note: print w/replies, xml ) Need Help??

in reply to Re: Looking for a POE based distributed job scheduler
in thread Looking for a POE based distributed job scheduler

thanks! :) Looks like that might help for part of it but... the more I think about this the more I want the p2p job scheduler.

One idea that looks like it might have hope is:

  • A message bus (possibly POE::Component::MessageQueue) that will allow job queuing, job statuses, etc to be communicated to the N nodes
  • Static job list, statuses, etc via a replicated db. Possibly using Net::CouchDB - this would also be used as the backend to provide statuses to a front end of some sort (web or similar).
  • Configuration of the peer job 'servers' via a simple ini file (Config::Simple)

Thoughts on this hair brained idea?

Jason L. Froebe

Blog, Tech Blog

  • Comment on Re^2: Looking for a POE based distributed job scheduler

Replies are listed 'Best First'.
Re^3: Looking for a POE based distributed job scheduler
by suaveant (Parson) on Dec 29, 2009 at 12:35 UTC
    My thoughts would be that you'd probably save yourself a lot of effort by setting up ssh keys on each system and doing all the work on the main site. That way you don't have to do nearly as much synchronization and maintaining of multiple running instances that all need to communicate. Just use remote ps calls, remote run your apps (which makes them local instances sort of) and check /proc/loadavg for system load info. Don't make things harder than you have to. Then the only actual hard part you need to write is the part that decides when to use which computer and how to decide your resource allocation. (my code also handles time based allocation i.e. don't run until at least 4pm)

                    - Ant
                    - Some of my best work - (1 2 3)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://814666]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2017-11-22 07:34 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (316 votes). Check out past polls.