]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Enable single host mode 81/head
authorSébastien Han <sebastien.han@enovance.com>
Wed, 30 Apr 2014 23:24:20 +0000 (01:24 +0200)
committerSébastien Han <sebastien.han@enovance.com>
Wed, 30 Apr 2014 23:24:20 +0000 (01:24 +0200)
This commit introduces a new config option 'osd crush chooseleaf type'.
With the help of this option and by setting it to '0' we tell Ceph to
store all the replicas on a single host. Basically we tell CRUSH to
iterate over disk and not over host.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
group_vars/all
roles/common/templates/ceph.conf.j2

index c6d67dfb9343cfe66456194049f4dd08a3792502..ab7ec7b172e5f468fa893bfccb466436bf1df661 100644 (file)
@@ -48,3 +48,8 @@ osd_op_threads: 8
 osd_recovery_max_active: 5
 osd_max_backfills: 2
 osd_recovery_op_priority: 2
+
+
+## Testing mode
+# enable this mode _only_ when you have a single node
+common_single_host_mode: true
index 4eb2cf80da25f735cdd1e247f576b28bbbdd2fb6..3f579fea8de3af5c5381f69729022a0206c09f83 100644 (file)
@@ -27,6 +27,9 @@
 {% if pool_default_crush_rule is defined %}
   osd pool default crush rule = {{ pool_default_crush_rule }}
 {% endif %}
+{% if common_single_host_mode is defined %}
+  osd crush chooseleaf type = 0
+{% endif %}
 
 [mon]
   mon osd down out interval = {{ mon_osd_down_out_interval }}