-
-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support [Slice]
in manage_unit and manage_dropin
#420
Conversation
df9a311
to
cabd622
Compare
For example the following is now possible: ```puppet systemd::manage_dropin { 'userlimits.conf': unit => 'user-.slice', slice_entry => { MemoryMax => '10G', MemoryAccounting => true, } } ``` The directives for `[Slice]` are typically a subset of `[Service]`. * https://www.freedesktop.org/software/systemd/man/latest/systemd.slice.html * https://www.freedesktop.org/software/systemd/man/latest/systemd.resource-control.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is also a couple more parameters in the latest systemd that are missing:
StartupCPUWeight
AllowedCPUs
StartupAllowedCPUs
StartupMemoryLow
DefaultStartupMemoryLow
StartupMemoryLow
DefaultStartupMemoryLow
StartupMemoryHigh
StartupMemoryMax
StartupMemorySwapMax
MemoryZSwapMax
StartupMemoryZSwapMax
AllowedMemoryNodes
StartupAllowedMemoryNodes
Disclaimer: I do not have experience with managing slices.
I wonder what the slice name user-.slice
means. In the documentation I did only find the root slice -.slice
2nd level slices foo.slice
and subsequent slices foo-bar.slice
. So I assume user-.slice
is equivalent to user.slice
…md::Unit::AmountOrPerecnt
I don't want to add everything. Get a good set in and things like |
Pull Request (PR) description
For example the following is now possible:
The directives for
[Slice]
are typically a subset of[Service]
.Adds new types:
This Pull Request (PR) fixes the following issues