Allows an administrator to set CPU pinning with the cpuset tool for Ceph OSDs, in situations where CPU contention with VMs or other system tasks may be negatively affecting OSD performance. This is optional, advanced tuning and is disabled by default.
14 lines
359 B
Django/Jinja
14 lines
359 B
Django/Jinja
# PVC Ceph OSD cpuset service unit
|
|
# {{ ansible_managed }}
|
|
{% set cset_host = pvc_shield_osds_cset | selectattr('hostname', 'equalto', inventory_hostname) %}
|
|
[Unit]
|
|
Description = Ceph OSD cpuset shield creation
|
|
Before = ceph-osd@.service libvirtd.service
|
|
|
|
[Service]
|
|
Type = oneshot
|
|
ExecStart = /usr/local/sbin/ceph-osd-cpuset
|
|
|
|
[Install]
|
|
WantedBy = ceph.target
|