On Tue, Jul 31, 2012 at 12:39:42PM +0200, Marco Sehrer [ninjaconcept.com] wrote: > > is there a way to 'reserve' workers for specific participants.
Hello, basically, there are two ways. a) use Participant#on_accept? http://ruote.rubyforge.org/implementing_participants.html#accept b) subclass the Worker to make it discard certain msgs based on the participant name > We have the requirement that some workitems need to be processed quite > instantly (1-2 seconds). > But under medium workload the engine reacts really slow and needs minutes to > process new workitems, even with a lot of worker-processes (currently 5). What is medium workload for you guys? What storage implementation do you use? What version of ruote? What version of Ruby? Is the datastore on the same host as the workers? Are the workers disseminated on multiple hosts? What kind of deployment? EC2? Own servers? I'm now in the middle of an effort to optimize ruote-sequel ( https://groups.google.com/d/topic/openwferu-users/ZFfqxAIRgsw/discussion ) maybe you're using ruote-sequel as well. > If it would be possible to reserve workers for specific jobs, we could ensure > the workitems would be processed within time. > Or is it possible to give an workitem some kind of priority? Sorry, there is no priority for workitems in ruote. The two techniques above could be used for prioritizing, but the regular work (outside of participant "execution") has to be done as well. At first, I can help you make it faster (if I know the details). > How many workers do you usually run in production? In production for now I personnaly only have limited systems with two workers and it's more like for backup than for load. One or two new flows per day, a bit of activity every 1 or 2 hours. Small office automation. I don't know for others, maybe they'll notice the thread and pass some info. Best regards, -- John Mettraux - http://lambda.io/jmettraux -- 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
