Advertisement
Guest User

crushmap

a guest
Jul 24th, 2014
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.34 KB | None | 0 0
  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 chooseleaf_vary_r 1
  7.  
  8. # devices
  9. device 0 osd.0
  10. device 1 osd.1
  11. device 2 osd.2
  12. device 3 osd.3
  13. device 4 osd.4
  14. device 5 osd.5
  15. device 6 osd.6
  16. device 7 osd.7
  17. device 8 osd.8
  18. device 9 osd.9
  19. device 10 osd.10
  20. device 11 osd.11
  21. device 12 osd.12
  22. device 13 osd.13
  23. device 14 osd.14
  24. device 15 osd.15
  25.  
  26. # types
  27. type 0 osd
  28. type 1 host
  29. type 2 chassis
  30. type 3 rack
  31. type 4 row
  32. type 5 pdu
  33. type 6 pod
  34. type 7 room
  35. type 8 datacenter
  36. type 9 region
  37. type 10 root
  38.  
  39. # buckets
  40. root default {
  41. id -1 # do not change unnecessarily
  42. # weight 0.000
  43. alg straw
  44. hash 0 # rjenkins1
  45. }
  46. host ceph-osd0 {
  47. id -2 # do not change unnecessarily
  48. # weight 0.450
  49. alg straw
  50. hash 0 # rjenkins1
  51. item osd.0 weight 0.450
  52. }
  53. host ceph-osd1 {
  54. id -3 # do not change unnecessarily
  55. # weight 0.450
  56. alg straw
  57. hash 0 # rjenkins1
  58. item osd.1 weight 0.450
  59. }
  60. host ceph-osd2 {
  61. id -4 # do not change unnecessarily
  62. # weight 0.450
  63. alg straw
  64. hash 0 # rjenkins1
  65. item osd.2 weight 0.450
  66. }
  67. host ceph-osd3 {
  68. id -5 # do not change unnecessarily
  69. # weight 0.450
  70. alg straw
  71. hash 0 # rjenkins1
  72. item osd.3 weight 0.450
  73. }
  74. host ceph-osd4 {
  75. id -6 # do not change unnecessarily
  76. # weight 0.450
  77. alg straw
  78. hash 0 # rjenkins1
  79. item osd.4 weight 0.450
  80. }
  81. host ceph-osd5 {
  82. id -7 # do not change unnecessarily
  83. # weight 0.450
  84. alg straw
  85. hash 0 # rjenkins1
  86. item osd.5 weight 0.450
  87. }
  88. host ceph-osd6 {
  89. id -8 # do not change unnecessarily
  90. # weight 0.450
  91. alg straw
  92. hash 0 # rjenkins1
  93. item osd.6 weight 0.450
  94. }
  95. host ceph-osd7 {
  96. id -9 # do not change unnecessarily
  97. # weight 0.450
  98. alg straw
  99. hash 0 # rjenkins1
  100. item osd.7 weight 0.450
  101. }
  102. host ceph-osd8 {
  103. id -10 # do not change unnecessarily
  104. # weight 0.450
  105. alg straw
  106. hash 0 # rjenkins1
  107. item osd.8 weight 0.450
  108. }
  109. host ceph-osd9 {
  110. id -11 # do not change unnecessarily
  111. # weight 0.450
  112. alg straw
  113. hash 0 # rjenkins1
  114. item osd.9 weight 0.450
  115. }
  116. host ceph-osd10 {
  117. id -12 # do not change unnecessarily
  118. # weight 0.450
  119. alg straw
  120. hash 0 # rjenkins1
  121. item osd.10 weight 0.450
  122. }
  123. host ceph-osd11 {
  124. id -13 # do not change unnecessarily
  125. # weight 0.450
  126. alg straw
  127. hash 0 # rjenkins1
  128. item osd.11 weight 0.450
  129. }
  130. host ceph-osd12 {
  131. id -14 # do not change unnecessarily
  132. # weight 0.450
  133. alg straw
  134. hash 0 # rjenkins1
  135. item osd.12 weight 0.450
  136. }
  137. host ceph-osd13 {
  138. id -15 # do not change unnecessarily
  139. # weight 0.450
  140. alg straw
  141. hash 0 # rjenkins1
  142. item osd.13 weight 0.450
  143. }
  144. host ceph-osd14 {
  145. id -16 # do not change unnecessarily
  146. # weight 0.910
  147. alg straw
  148. hash 0 # rjenkins1
  149. item osd.14 weight 0.910
  150. }
  151. host ceph-osd15 {
  152. id -17 # do not change unnecessarily
  153. # weight 0.910
  154. alg straw
  155. hash 0 # rjenkins1
  156. item osd.15 weight 0.910
  157. }
  158. rack rack1-pdu1 {
  159. id -18 # do not change unnecessarily
  160. # weight 2.260
  161. alg straw
  162. hash 0 # rjenkins1
  163. item ceph-osd0 weight 0.450
  164. item ceph-osd1 weight 0.450
  165. item ceph-osd2 weight 0.450
  166. item ceph-osd15 weight 0.910
  167. }
  168. rack rack1-pdu2 {
  169. id -19 # do not change unnecessarily
  170. # weight 1.350
  171. alg straw
  172. hash 0 # rjenkins1
  173. item ceph-osd3 weight 0.450
  174. item ceph-osd4 weight 0.450
  175. item ceph-osd5 weight 0.450
  176. }
  177. rack rack1-pdu3 {
  178. id -20 # do not change unnecessarily
  179. # weight 1.350
  180. alg straw
  181. hash 0 # rjenkins1
  182. item ceph-osd6 weight 0.450
  183. item ceph-osd7 weight 0.450
  184. item ceph-osd8 weight 0.450
  185. }
  186. rack rack2-pdu1 {
  187. id -21 # do not change unnecessarily
  188. # weight 1.350
  189. alg straw
  190. hash 0 # rjenkins1
  191. item ceph-osd9 weight 0.450
  192. item ceph-osd10 weight 0.450
  193. item ceph-osd11 weight 0.450
  194. }
  195. rack rack2-pdu2 {
  196. id -22 # do not change unnecessarily
  197. # weight 1.810
  198. alg straw
  199. hash 0 # rjenkins1
  200. item ceph-osd12 weight 0.450
  201. item ceph-osd13 weight 0.450
  202. item ceph-osd14 weight 0.910
  203. }
  204.  
  205. # rules
  206. rule replicated_ruleset {
  207. ruleset 0
  208. type replicated
  209. min_size 1
  210. max_size 10
  211. step take default
  212. step chooseleaf firstn 0 type host
  213. step emit
  214. }
  215. rule rack-pdu {
  216. ruleset 2
  217. type replicated
  218. min_size 1
  219. max_size 10
  220. step take default
  221. step chooseleaf firstn 0 type rack
  222. step emit
  223. }
  224.  
  225. # end crush map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement