osd: support numactl options on OSD activate

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 b3eb9206fa)
pull/3707/head
Guillaume Abrioux 2019-03-09 09:24:46 +01:00 committed by mergify[bot]
parent 224bab0d70
commit 34086ec233
3 changed files with 6 additions and 2 deletions

View 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 #

View 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 #

View 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 \