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

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Wed Dec 11 08:16:18 PST 2013


On Tue, Dec 10, 2013 at 06:53:33PM -0800, Shawn Landden wrote:
Please add a commit message that says what the commit does.

This part can remain, but please prefix it with "Some open
questions remain:" or something.
> Because it takes a while for the service to start up, and
> until then we spin in a fast epoll loop, this tends to
> start up all the instances all at once. There are a number
> of ways we can slow this instanciation down:
>  1) Call accept() and pass an additional fd to the service
>  2) Use EPOLLET: requires event to be prioritized and always
>       dispatched.
>  3) Disable and then reenable the event source every time we
>      enqueue an instance.
> 
> With Type=notify, we wait until a service tells us it is ready
> before we listen again and thereby start up more instances.
> 
> What if someone want to use the templating namespace ('@')
> with Distribute=?

Zbyszek


More information about the systemd-devel mailing list