#ceph_osd_docker_memory_limit: 1g
#ceph_osd_docker_cpu_limit: 1
+# The next two variables are undefined, and thus, unused by default.
+# If `lscpu | grep NUMA` returned the following:
+# NUMA node0 CPU(s): 0,2,4,6,8,10,12,14,16
+# NUMA node1 CPU(s): 1,3,5,7,9,11,13,15,17
+# then, the following would run the OSD on the first NUMA node only.
+#ceph_osd_docker_cpuset_cpus: "0,2,4,6,8,10,12,14,16"
+#ceph_osd_docker_cpuset_mems: "0"
+
# PREPARE DEVICE
#
# WARNING /!\ DMCRYPT scenario ONLY works with Docker version 1.12.5 and above
ceph_osd_docker_memory_limit: 1g
ceph_osd_docker_cpu_limit: 1
+# The next two variables are undefined, and thus, unused by default.
+# If `lscpu | grep NUMA` returned the following:
+# NUMA node0 CPU(s): 0,2,4,6,8,10,12,14,16
+# NUMA node1 CPU(s): 1,3,5,7,9,11,13,15,17
+# then, the following would run the OSD on the first NUMA node only.
+#ceph_osd_docker_cpuset_cpus: "0,2,4,6,8,10,12,14,16"
+#ceph_osd_docker_cpuset_mems: "0"
+
# PREPARE DEVICE
#
# WARNING /!\ DMCRYPT scenario ONLY works with Docker version 1.12.5 and above
{% else -%}
--cpu-quota={{ ceph_osd_docker_cpu_limit * 100000 }} \
{% endif -%}
+ {% if ceph_osd_docker_cpuset_cpus is defined -%}
+ --cpuset-cpus='{{ ceph_osd_docker_cpuset_cpus }}' \
+ {% endif -%}
+ {% if ceph_osd_docker_cpuset_mems is defined -%}
+ --cpuset-mems='{{ ceph_osd_docker_cpuset_mems }}' \
+ {% endif -%}
-v /dev:/dev \
-v /etc/localtime:/etc/localtime:ro \
-v /var/lib/ceph:/var/lib/ceph \