Systemd slices support with dh_installsystemd

David Castillo david at vectorized.io
Tue Oct 15 15:08:18 BST 2019


On Tue, Oct 15, 2019 at 6:26 AM Michael Biebl <biebl at debian.org> wrote:

> On 15.10.19 00:30, David Castillo wrote:
> > Hi!
> >
> > I'm currently working on packaging an application which runs as a
> > systemd service within a slice.
>
> Is there a specific reason for using a dedicated slice?

What exactly is the use case here?


 We'd like to isolate the process, and specify non-default IO and CPU
weights.
Something very similar to this:
https://github.com/scylladb/scylla/blob/master/dist/common/systemd/scylla-server.slice
,
which is explained in more detail here:
https://www.scylladb.com/2019/09/25/isolating-workloads-with-systemd-slices/
`

Is this a package shipped in Debian so we could have a look?
>

Nope, it's a private package, unfortunately.

Typically, services are run in the system.slice.
>
> Installing the .service files was
> > straightforward, but I found that dh_installsystemd doesn't support
> > .slice files, according to the man page
> > <
> https://manpages.debian.org/testing/debhelper/dh_installsystemd.1.en.html
> >.
>
> It doesn't, that's correct.
>
> > I wanted to know if there's a recommended method to do it (I ended up
> > including it in our .install file), and if there's a reason for .slices
> > not being supported.
>
> Installing via .install is fine, I'd say.
>
> So far there simply hasn't been a demand / use case for supporting
> .slice units in dh_installsystemd.
>

Got it! Thanks so much for your help.


>
> Michael
> --
> Why is it that all of the instruments seeking intelligent life in the
> universe are pointed away from Earth?
>
>

-- 
- David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20191015/b6f4fc82/attachment.html>


More information about the Pkg-systemd-maintainers mailing list