Uses a much nicer CPU tuning configuration, leveraging systemd's AllowedCPUs and CPUAffinity options within a set of slices (some default, some custom). Configuration is also greatly simplified versus the previous implementation, simply asking for a number of CPUS for both the system and OSDs, and calculating everything else that is required. Also switches (back) to the v2 unified cgroup hierarchy by default as required by the systemd AllowedCPUs directive.
19 lines
457 B
YAML
19 lines
457 B
YAML
---
|
|
|
|
- name: remove cpu tuning configurations
|
|
file:
|
|
dest: "{{ item }}"
|
|
state: absent
|
|
loop:
|
|
- /etc/systemd/system/system.slice
|
|
- /etc/systemd/system/user.slice
|
|
- /etc/systemd/system/osd.slice
|
|
- /etc/systemd/system/machine.slice
|
|
- /etc/systemd/system/ceph-osd@.service.d/cputuning.conf
|
|
register: systemd
|
|
ignore_errors: yes
|
|
|
|
- name: reload systemd to apply changes
|
|
command: systemctl daemon-reload
|
|
when: systemd.changed
|