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