Workling processes multiplying uncontrolably
Posted
by adam
on Stack Overflow
See other posts from Stack Overflow
or by adam
Published on 2009-10-30T11:30:53Z
Indexed on
2010/04/09
15:03 UTC
Read the original article
Hit count: 310
Hello there. We have a rails app running on passenger and we background process some tasks using a combination of RabbitMQ and Workling. The workling's worker process is started using the script/workling_client
command. There is always only one worker process started, and the script/workling_client
has a :multiple => false
options, thus allowing only one instance. But sometimes, under mysterious circumstances which I haven't been able to track down, more worklings spawn up. If I let the system run for some time, more and more worklings appear. I'm not sure if these rogue worklings cause any problems, but it is still unsettling not to know why is it happening. We are using Monit to monitor the workling process. So if it dies, it will spawn it up again. But this still does not explain how come there are suddenly more than one of them.
So my question is: does anyone know what can be cause of this and how to make it stop? Is it possible that workling sometimes dies by itself, without deleting it's pid file? Could there be something wrong with the Daemons gem workling_client
is build upon?
© Stack Overflow or respective owner