uneven distribution of load between workers

1 view
Skip to first unread message

bjornf

unread,
Apr 5, 2026, 3:36:19 AM (12 days ago) Apr 5
to mod_gearman
Hi,

Can 0.2ms versus 0.8ms latency to gearmand server explain why 1 worker have almost 10 times more mod_gearman processes? Is there a way to distribute this better?

Regards, Bjorn

Sven Nierlein

unread,
Apr 7, 2026, 5:56:26 AM (10 days ago) Apr 7
to mod_g...@googlegroups.com, bjornf
Hi,

Could be. The daemon wakes all connected servers and the first responding worker gets the job. It will distribute more evenly if
that worker is busy. But as long as the faster one can handle all jobs, it's totally normal that this one does more jobs than
the other.
You could experiment with the gearmand options like round-robin and wakeup numbers to see if this makes a difference. But as long
as this is just a "cosmetic" thing, i wouldn't spend too much time on it.

Cheers,
Sven
> --
> You received this message because you are subscribed to the Google Groups "mod_gearman" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mod_gearman...@googlegroups.com <mailto:mod_gearman...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/mod_gearman/8c83afbf-eaf3-4ca3-b79f-85f890607722n%40googlegroups.com <https://groups.google.com/d/msgid/mod_gearman/8c83afbf-eaf3-4ca3-b79f-85f890607722n%40googlegroups.com?utm_medium=email&utm_source=footer>.

OpenPGP_signature.asc

bjornf

unread,
Apr 7, 2026, 6:11:59 AM (10 days ago) Apr 7
to mod_gearman
Hi,

Well, it's not the cosmetics I am concerned about. It's the uneven load of the workers.  You mean that an overloaded worker would not be able to pull(much), once it's overloaded? No risk of one worker getting overloaded?

Regards, Bjorn

Sven Nierlein

unread,
Apr 7, 2026, 9:07:22 AM (10 days ago) Apr 7
to mod_g...@googlegroups.com, bjornf
Reply all
Reply to author
Forward
0 new messages