[systemd-devel] [PATCH 3/3] core: support Distribute=n to distribute to n SO_REUSEPORT workers

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Thu Nov 14 10:31:39 PST 2013


On Thu, Nov 14, 2013 at 07:10:51PM +0100, Lennart Poettering wrote:
> When the first connection comes in we'd spawn as many instances as
> configured in Distribute=
Hm, that seems like a big penalty. Why not instead:
- when the first connection comes in, start one worker, keep listening
- when the second connection comes in, start one worker, keep listening
...
- when the n-th connection comes in, start one worker, stop listening

This way at least we don't have more workers than connections, and
it staggers the launching of workers a bit, avoiding an overload.

Zbyszek


More information about the systemd-devel mailing list