In method createLoop() of Application class, we should be able to increase the value of setTimeout
Not it is $worker->setTimeout(10); - that is 10ms. So worker asks too frequent for new work from gearman, and that leads to high cpu load. I propose to increase this value to 1000 (that means 1s).
When I set it to 1s, cpu load becomes low.
I will be great if we can set this value from outside (in the configuration).
In method createLoop() of Application class, we should be able to increase the value of setTimeout Not it is $worker->setTimeout(10); - that is 10ms. So worker asks too frequent for new work from gearman, and that leads to high cpu load. I propose to increase this value to 1000 (that means 1s). When I set it to 1s, cpu load becomes low.
I will be great if we can set this value from outside (in the configuration).