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()
Download (untitled) / with headers
text/plain 500b
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!
Download (untitled) / with headers
text/plain 170b
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


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.