John, this looks like what we discussed, I assume that pid + ip Identifies the worker.
Thanks very much. Eric On Sep 19, 7:36 am, John Mettraux <[email protected]> wrote: > On Thu, Sep 08, 2011 at 09:22:28AM -0700, Eric Smith wrote: > > > > engine.pause_workers, engine.resume_workers and engine.stop_workers ? > > Yes, that would be great! > > > Combined with : > > > >So how about a "document" shared by all workers where they list: > > > >- hostname, pid > > >- uptime > > >- msgs processed during last week/day/hour/minute > > >- timestamp > > > You could add 'status' to the document to know that the status was > > paused, stopped or running. > > > Would you want to stop all workers, or each worker? ( For our use case > > stop all is sufficient ) > > > It would be nice to know how long the workeritem was waiting around > > for a worker to get to it. That might be as meaningful as the number > > of processes. > > Hello, > > I've added a Dashboard (Engine) #worker_info method. It returns information > about the workers. > > I'm probably going to add some more information to that. > > For now it looks like: > > ---8<--- > {"10.0.1.2/34710"=> > {"pid"=>34710, > "processed_last_minute"=>1, > "class"=>"Ruote::Worker", > "put_at"=>"2011-09-19 12:32:33.881352 UTC", > "system"=> > "Darwin sanma.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 > 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386", > "processed_last_hour"=>1, > "wait_time_last_hour"=>0.004534, > "ip"=>"10.0.1.2", > "uptime"=>0.008638, > "hostname"=>"sanma.local", > "wait_time_last_minute"=>0.004534}} > --->8--- > > I'm still thinking about how to tell the workers to stop without having them > poll too much and how to do it so that it works with the different storage > implementations. > > Please tell me if there is something that needs to be revised or if something > got forgotten. > > Thanks in advance, > > -- > John Mettraux -http://lambda.io/processi -- you received this message because you are subscribed to the "ruote users" group. to post : send email to [email protected] to unsubscribe : send email to [email protected] more options : http://groups.google.com/group/openwferu-users?hl=en
