1. # begin crush map
  2. tunable choose_local_tries 0
  3. tunable choose_local_fallback_tries 0
  4. tunable choose_total_tries 50
  5. tunable chooseleaf_descend_once 1
  6. tunable straw_calc_version 1
  7. # devices
  8. device 0 osd.0
  9. device 1 osd.1
  10. device 2 osd.2
  11. device 3 osd.3
  12. device 4 osd.4
  13. device 5 osd.5
  14. device 6 osd.6
  15. device 7 osd.7
  16. device 8 osd.8
  17. device 9 osd.9
  18. device 10 osd.10
  19. device 11 osd.11
  20. device 12 osd.12
  21. device 13 osd.13
  22. # types
  23. type 0 osd
  24. type 1 host-ssd
  25. type 2 host-sata
  26. type 3 datacenter
  27. type 4 root
  28. # buckets
  29. host-sata host-01 {
  30. id -1 # do not change unnecessarily
  31. # weight 1.350
  32. alg straw
  33. hash 0 # rjenkins1
  34. item osd.0 weight 0.270
  35. item osd.1 weight 0.270
  36. item osd.2 weight 0.270
  37. item osd.3 weight 0.270
  38. item osd.6 weight 0.270
  39. }
  40. host-sata host-02 {
  41. id -2 # do not change unnecessarily
  42. # weight 1.350
  43. alg straw
  44. hash 0 # rjenkins1
  45. item osd.7 weight 0.270
  46. item osd.8 weight 0.270
  47. item osd.9 weight 0.270
  48. item osd.10 weight 0.270
  49. item osd.11 weight 0.270
  50. }
  51. host-ssd host-03 {
  52. id -3 # do not change unnecessarily
  53. # weight 0.360
  54. alg straw
  55. hash 0 # rjenkins1
  56. item osd.4 weight 0.180
  57. item osd.5 weight 0.180
  58. }
  59. host-ssd host-04 {
  60. id -4 # do not change unnecessarily
  61. # weight 0.360
  62. alg straw
  63. hash 0 # rjenkins1
  64. item osd.12 weight 0.180
  65. item osd.13 weight 0.180
  66. }
  67. datacenter dc1 {
  68. id -5 # do not change unnecessarily
  69. # weight 0.450
  70. alg straw
  71. hash 0 # rjenkins1
  72. item host-01 weight 0.270
  73. item host-03 weight 0.180
  74. }
  75. datacenter dc2 {
  76. id -6 # do not change unnecessarily
  77. # weight 0.450
  78. alg straw
  79. hash 0 # rjenkins1
  80. item host-02 weight 0.270
  81. item host-04 weight 0.180
  82. }
  83. root default {
  84. id -7 # do not change unnecessarily
  85. # weight 2.000
  86. alg straw
  87. hash 0 # rjenkins1
  88. item dc1 weight 1.000
  89. item dc2 weight 1.000
  90. }
  91. # rules
  92. rule hybrid {
  93. ruleset 0
  94. type replicated
  95. min_size 1
  96. max_size 10
  97. step take default
  98. step chooseleaf firstn 0 type datacenter
  99. step emit
  100. }