mirror of https://github.com/ceph/ceph-ansible.git
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
parent
224bab0d70
commit
34086ec233
|
@ -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 #
|
||||
|
|
|
@ -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 #
|
||||
|
|
|
@ -70,6 +70,10 @@ fi
|
|||
# MAIN #
|
||||
########
|
||||
|
||||
{% if ceph_osd_numactl_opts != "" %}
|
||||
numactl \
|
||||
{{ ceph_osd_numactl_opts }} \
|
||||
{% endif %}
|
||||
/usr/bin/docker run \
|
||||
--rm \
|
||||
--net=host \
|
||||
|
|
Loading…
Reference in New Issue