]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
osd: support numactl options on OSD activate
authorGuillaume Abrioux <gabrioux@redhat.com>
Sat, 9 Mar 2019 08:24:46 +0000 (09:24 +0100)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Mon, 11 Mar 2019 09:50:29 +0000 (09:50 +0000)
This commit adds OSD containers activate with numactl support.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1684146
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit b3eb9206fada05df811602217d8770db854e0adf)

group_vars/osds.yml.sample
roles/ceph-osd/defaults/main.yml
roles/ceph-osd/templates/ceph-osd-run.sh.j2

index 02e8685839f0a8440d8494562152d5c69b9d6d42..236a2e2bee690fb83fc63e85d55483573572c719 100644 (file)
@@ -258,7 +258,7 @@ dummy:
 #
 #ceph_osd_docker_extra_env:
 #ceph_osd_docker_run_script_path: "/usr/share" # script called by systemd to run the docker command
-
+#ceph_osd_numactl_opts: ""
 
 ###########
 # SYSTEMD #
index 0292e69e3027cfc195297b136d0f13b18649be7f..0f85a15112ddbd279aaea347e5bab0f82b119ed0 100644 (file)
@@ -250,7 +250,7 @@ ceph_osd_docker_prepare_env: -e OSD_JOURNAL_SIZE={{ journal_size }}
 #
 ceph_osd_docker_extra_env:
 ceph_osd_docker_run_script_path: "/usr/share" # script called by systemd to run the docker command
-
+ceph_osd_numactl_opts: ""
 
 ###########
 # SYSTEMD #
index 7e7cda05ea5f6a452dc18d01d2400cba8af86c09..4a6eaa1819caac5d30fefbf529ae488797d4b1c3 100644 (file)
@@ -70,6 +70,10 @@ fi
 # MAIN #
 ########
 
+{% if ceph_osd_numactl_opts != "" %}
+numactl \
+{{ ceph_osd_numactl_opts }} \
+{% endif %}
 /usr/bin/docker run \
   --rm \
   --net=host \