Skip Menu |

This queue is for tickets about the Gearman-XS CPAN distribution.

Report information
The Basics
Id: 69507
Status: open
Priority: 0/
Queue: Gearman-XS

People
Owner: Nobody in particular
Requestors: DAVEWEBB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.12
Fixed in: (no value)



Subject: Feature request: $worker->remove_servers()
Hi, Could Gearman::XS::Worker have an interface to libgearman's gearman_worker_remove_servers()? This will allow easier load balancing of worker requests between the pool of servers. The current behaviour appears to be "process jobs on the first server until all are gone, then switch to the next server". This leads to lumpy queue sizes. It's easy to spread the load from the client, as you can just instantiate a new client each time, but the workers tend to run for a long time. Cheers, Dave
Added in 0.12 which should make it to cpan today.
Great, cheers Dennis!
Uhm, I just noticed that I forgot to adjust the documentation. Anyway you should be able to call: $client->remove_servers() and $worker->remove_servers() cheers, Dennis