Advertisement
Guest User

Untitled

a guest
Mar 8th, 2013
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 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. device 16 osd.16
  21. device 17 osd.17
  22. device 18 osd.18
  23. device 19 osd.19
  24. device 20 osd.20
  25. device 21 osd.21
  26. device 22 osd.22
  27. device 23 osd.23
  28.  
  29. # types
  30. type 0 osd
  31. type 1 host
  32. type 2 rack
  33. type 3 row
  34. type 4 room
  35. type 5 datacenter
  36. type 6 root
  37.  
  38. # buckets
  39. host store1 {
  40. id -5 # do not change unnecessarily
  41. # weight 4.000
  42. alg straw
  43. hash 0 # rjenkins1
  44. item osd.0 weight 1.000
  45. item osd.1 weight 1.000
  46. item osd.2 weight 1.000
  47. item osd.3 weight 1.000
  48. }
  49. host store3 {
  50. id -7 # do not change unnecessarily
  51. # weight 4.000
  52. alg straw
  53. hash 0 # rjenkins1
  54. item osd.10 weight 1.000
  55. item osd.11 weight 1.000
  56. item osd.8 weight 1.000
  57. item osd.9 weight 1.000
  58. }
  59. host store4 {
  60. id -8 # do not change unnecessarily
  61. # weight 4.000
  62. alg straw
  63. hash 0 # rjenkins1
  64. item osd.12 weight 1.000
  65. item osd.13 weight 1.000
  66. item osd.14 weight 1.000
  67. item osd.15 weight 1.000
  68. }
  69. host store5 {
  70. id -9 # do not change unnecessarily
  71. # weight 4.000
  72. alg straw
  73. hash 0 # rjenkins1
  74. item osd.16 weight 1.000
  75. item osd.17 weight 1.000
  76. item osd.18 weight 1.000
  77. item osd.19 weight 1.000
  78. }
  79. host store6 {
  80. id -10 # do not change unnecessarily
  81. # weight 4.000
  82. alg straw
  83. hash 0 # rjenkins1
  84. item osd.20 weight 1.000
  85. item osd.21 weight 1.000
  86. item osd.22 weight 1.000
  87. item osd.23 weight 1.000
  88. }
  89. host store2 {
  90. id -6 # do not change unnecessarily
  91. # weight 4.000
  92. alg straw
  93. hash 0 # rjenkins1
  94. item osd.4 weight 1.000
  95. item osd.5 weight 1.000
  96. item osd.6 weight 1.000
  97. item osd.7 weight 1.000
  98. }
  99. rack rack1 {
  100. id -3 # do not change unnecessarily
  101. # weight 12.000
  102. alg straw
  103. hash 0 # rjenkins1
  104. item store1 weight 4.000
  105. item store2 weight 4.000
  106. item store3 weight 4.000
  107. }
  108. rack rack2 {
  109. id -4 # do not change unnecessarily
  110. # weight 12.000
  111. alg straw
  112. hash 0 # rjenkins1
  113. item store4 weight 4.000
  114. item store5 weight 4.000
  115. item store6 weight 4.000
  116. }
  117. root default {
  118. id -1 # do not change unnecessarily
  119. # weight 24.000
  120. alg straw
  121. hash 0 # rjenkins1
  122. item rack1 weight 12.000
  123. item rack2 weight 12.000
  124. }
  125.  
  126. # rules
  127. rule data {
  128. ruleset 0
  129. type replicated
  130. min_size 1
  131. max_size 10
  132. step take default
  133. step chooseleaf firstn 0 type rack
  134. step emit
  135. }
  136. rule metadata {
  137. ruleset 1
  138. type replicated
  139. min_size 1
  140. max_size 10
  141. step take default
  142. step chooseleaf firstn 0 type rack
  143. step emit
  144. }
  145. rule rbd {
  146. ruleset 2
  147. type replicated
  148. min_size 1
  149. max_size 10
  150. step take default
  151. step chooseleaf firstn 0 type rack
  152. step emit
  153. }
  154.  
  155. # end crush map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement