yasu

crushmap

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