How can I put the /user.slice under the /system.slice?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
When running a Kubernetes cluster, it is recommended that /user.slice
resides under the SystemReserved
top level cgroup (i.e. under /system.slice
).
According to the systemd.slice documentation, a slice's name encodes its location in the hierachy, so how can I rename the existing user.slice
unit to system-user.slice
so that this is so, without renaming the existing system file at /usr/lib/systemd/system/user.slice
(as this is bad practice) and make sure that systemd-logind uses system-user.slice
for user login sessions instead.
Alternatively, if the slice unit renaming is not possible, is it possible to just configure systemd-logind to place user sessions under a slice other than /user.slice
?
uname -a
: Linux ip-10-99-55-207.eu-west-1.compute.internal 4.16.2-1.el7.elrepo.x86_64 #1 SMP Thu Apr 12 09:08:05 EDT 2018 x86_64 x86_64 x86_64 GNU/Linuxcat /etc/centos-release
: CentOS Linux release 7.4.1708 (Core)
linux systemd kubernetes
add a comment |Â
up vote
0
down vote
favorite
When running a Kubernetes cluster, it is recommended that /user.slice
resides under the SystemReserved
top level cgroup (i.e. under /system.slice
).
According to the systemd.slice documentation, a slice's name encodes its location in the hierachy, so how can I rename the existing user.slice
unit to system-user.slice
so that this is so, without renaming the existing system file at /usr/lib/systemd/system/user.slice
(as this is bad practice) and make sure that systemd-logind uses system-user.slice
for user login sessions instead.
Alternatively, if the slice unit renaming is not possible, is it possible to just configure systemd-logind to place user sessions under a slice other than /user.slice
?
uname -a
: Linux ip-10-99-55-207.eu-west-1.compute.internal 4.16.2-1.el7.elrepo.x86_64 #1 SMP Thu Apr 12 09:08:05 EDT 2018 x86_64 x86_64 x86_64 GNU/Linuxcat /etc/centos-release
: CentOS Linux release 7.4.1708 (Core)
linux systemd kubernetes
That is an expression of desire for systemd to work differently in a proposal document, not a recommendation of good practice.
â JdeBP
Jun 7 at 10:58
@JdeBP is this regarding renaming the system slice units? So are you saying renaming a system (slice) unit is okay?
â dippynark
Jun 7 at 13:11
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
When running a Kubernetes cluster, it is recommended that /user.slice
resides under the SystemReserved
top level cgroup (i.e. under /system.slice
).
According to the systemd.slice documentation, a slice's name encodes its location in the hierachy, so how can I rename the existing user.slice
unit to system-user.slice
so that this is so, without renaming the existing system file at /usr/lib/systemd/system/user.slice
(as this is bad practice) and make sure that systemd-logind uses system-user.slice
for user login sessions instead.
Alternatively, if the slice unit renaming is not possible, is it possible to just configure systemd-logind to place user sessions under a slice other than /user.slice
?
uname -a
: Linux ip-10-99-55-207.eu-west-1.compute.internal 4.16.2-1.el7.elrepo.x86_64 #1 SMP Thu Apr 12 09:08:05 EDT 2018 x86_64 x86_64 x86_64 GNU/Linuxcat /etc/centos-release
: CentOS Linux release 7.4.1708 (Core)
linux systemd kubernetes
When running a Kubernetes cluster, it is recommended that /user.slice
resides under the SystemReserved
top level cgroup (i.e. under /system.slice
).
According to the systemd.slice documentation, a slice's name encodes its location in the hierachy, so how can I rename the existing user.slice
unit to system-user.slice
so that this is so, without renaming the existing system file at /usr/lib/systemd/system/user.slice
(as this is bad practice) and make sure that systemd-logind uses system-user.slice
for user login sessions instead.
Alternatively, if the slice unit renaming is not possible, is it possible to just configure systemd-logind to place user sessions under a slice other than /user.slice
?
uname -a
: Linux ip-10-99-55-207.eu-west-1.compute.internal 4.16.2-1.el7.elrepo.x86_64 #1 SMP Thu Apr 12 09:08:05 EDT 2018 x86_64 x86_64 x86_64 GNU/Linuxcat /etc/centos-release
: CentOS Linux release 7.4.1708 (Core)
linux systemd kubernetes
asked Jun 7 at 7:01
dippynark
1275
1275
That is an expression of desire for systemd to work differently in a proposal document, not a recommendation of good practice.
â JdeBP
Jun 7 at 10:58
@JdeBP is this regarding renaming the system slice units? So are you saying renaming a system (slice) unit is okay?
â dippynark
Jun 7 at 13:11
add a comment |Â
That is an expression of desire for systemd to work differently in a proposal document, not a recommendation of good practice.
â JdeBP
Jun 7 at 10:58
@JdeBP is this regarding renaming the system slice units? So are you saying renaming a system (slice) unit is okay?
â dippynark
Jun 7 at 13:11
That is an expression of desire for systemd to work differently in a proposal document, not a recommendation of good practice.
â JdeBP
Jun 7 at 10:58
That is an expression of desire for systemd to work differently in a proposal document, not a recommendation of good practice.
â JdeBP
Jun 7 at 10:58
@JdeBP is this regarding renaming the system slice units? So are you saying renaming a system (slice) unit is okay?
â dippynark
Jun 7 at 13:11
@JdeBP is this regarding renaming the system slice units? So are you saying renaming a system (slice) unit is okay?
â dippynark
Jun 7 at 13:11
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f448347%2fhow-can-i-put-the-user-slice-under-the-system-slice%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
That is an expression of desire for systemd to work differently in a proposal document, not a recommendation of good practice.
â JdeBP
Jun 7 at 10:58
@JdeBP is this regarding renaming the system slice units? So are you saying renaming a system (slice) unit is okay?
â dippynark
Jun 7 at 13:11