Merge "Update the basic systemd extra configs for isolation and consistency"
This commit is contained in:
commit
a4f2ebde01
@ -141,9 +141,10 @@
|
||||
with_items:
|
||||
- { src: "systemd.environment.conf.j2", dest: "environment.conf" }
|
||||
- { src: "systemd.limits.conf.j2", dest: "limits.conf" }
|
||||
- { src: "systemd.timeout.conf.j2", dest: "timeout.conf" }
|
||||
- { src: "systemd.restart.conf.j2", dest: "restart.conf" }
|
||||
- { src: "without-privatedevices.conf.j2", dest: "without-privatedevices.conf" }
|
||||
- { src: "systemd.slice.conf.j2", dest: "slice.conf" }
|
||||
- { src: "systemd.timeout.conf.j2", dest: "timeout.conf" }
|
||||
- { src: "systemd.without-privatedevices.conf.j2", dest: "without-privatedevices.conf" }
|
||||
notify:
|
||||
- Manage LB
|
||||
- Reload the systemd daemon
|
||||
|
11
templates/systemd.slice.conf.j2
Normal file
11
templates/systemd.slice.conf.j2
Normal file
@ -0,0 +1,11 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
[Service]
|
||||
# This creates a specific slice to operate from. The accounting options give us
|
||||
# the ability to see resource usage through the `systemd-cgtop` command and
|
||||
# further isolate this service from the host machine.
|
||||
Slice=galera.slice
|
||||
CPUAccounting=true
|
||||
BlockIOAccounting=true
|
||||
MemoryAccounting=false
|
||||
TasksAccounting=true
|
@ -1,2 +1,4 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
[Service]
|
||||
PrivateDevices={{ galera_disable_privatedevices | bool | ternary('false', 'true') }}
|
Loading…
Reference in New Issue
Block a user