Advertisement
Guest User

crushmap

a guest
May 26th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.73 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.  
  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. device 14 osd.14
  23. device 15 osd.15
  24. device 16 osd.16
  25. device 17 osd.17
  26. device 18 osd.18
  27. device 19 osd.19
  28. device 20 osd.20
  29. device 21 osd.21
  30. device 22 osd.22
  31. device 23 osd.23
  32. device 24 osd.24
  33. device 25 osd.25
  34. device 26 osd.26
  35. device 27 osd.27
  36. device 28 osd.28
  37. device 29 osd.29
  38. device 30 osd.30
  39. device 31 osd.31
  40. device 32 osd.32
  41. device 33 osd.33
  42. device 34 osd.34
  43. device 35 osd.35
  44. device 36 osd.36
  45. device 37 osd.37
  46. device 38 osd.38
  47.  
  48. # types
  49. type 0 osd
  50. type 1 host
  51. type 2 chassis
  52. type 3 rack
  53. type 4 row
  54. type 5 pdu
  55. type 6 pod
  56. type 7 room
  57. type 8 datacenter
  58. type 9 region
  59. type 10 root
  60.  
  61. # buckets
  62.  
  63. # FOR CACHE TIERING #################################
  64. host cephosd04-ssd {
  65. id -7 # do not change unnecessarily
  66. # weight 3.000
  67. alg straw
  68. hash 0 # rjenkins1
  69. item osd.36 weight 1.000
  70. item osd.37 weight 1.000
  71. item osd.38 weight 1.000
  72. }
  73.  
  74. ####################################################
  75.  
  76. host cephosd03 {
  77. id -4 # do not change unnecessarily
  78. # weight 24.570
  79. alg straw
  80. hash 0 # rjenkins1
  81. item osd.18 weight 2.730
  82. item osd.19 weight 2.730
  83. item osd.20 weight 2.730
  84. item osd.21 weight 2.730
  85. item osd.22 weight 2.730
  86. item osd.23 weight 2.730
  87. item osd.24 weight 2.730
  88. item osd.25 weight 2.730
  89. item osd.26 weight 2.730
  90. }
  91. host cephosd04 {
  92. id -5 # do not change unnecessarily
  93. # weight 24.570
  94. alg straw
  95. hash 0 # rjenkins1
  96. item osd.27 weight 2.730
  97. item osd.28 weight 2.730
  98. item osd.29 weight 2.730
  99. item osd.30 weight 2.730
  100. item osd.31 weight 2.730
  101. item osd.32 weight 2.730
  102. item osd.33 weight 2.730
  103. item osd.34 weight 2.730
  104. item osd.35 weight 2.730
  105. }
  106. root default {
  107. id -1 # do not change unnecessarily
  108. # weight 49.140
  109. alg straw
  110. hash 0 # rjenkins1
  111. item cephosd03 weight 24.570
  112. item cephosd04 weight 24.570
  113. }
  114. host cephosd01 {
  115. id -2 # do not change unnecessarily
  116. # weight 24.570
  117. alg straw
  118. hash 0 # rjenkins1
  119. item osd.1 weight 2.730
  120. item osd.2 weight 2.730
  121. item osd.3 weight 2.730
  122. item osd.4 weight 2.730
  123. item osd.5 weight 2.730
  124. item osd.6 weight 2.730
  125. item osd.7 weight 2.730
  126. item osd.8 weight 2.730
  127. item osd.0 weight 2.730
  128. }
  129. host cephosd02 {
  130. id -3 # do not change unnecessarily
  131. # weight 24.570
  132. alg straw
  133. hash 0 # rjenkins1
  134. item osd.9 weight 2.730
  135. item osd.10 weight 2.730
  136. item osd.11 weight 2.730
  137. item osd.12 weight 2.730
  138. item osd.13 weight 2.730
  139. item osd.14 weight 2.730
  140. item osd.15 weight 2.730
  141. item osd.16 weight 2.730
  142. item osd.17 weight 2.730
  143. }
  144. root fusionio {
  145. id -6 # do not change unnecessarily
  146. # weight 49.140
  147. alg straw
  148. hash 0 # rjenkins1
  149. item cephosd01 weight 24.570
  150. item cephosd02 weight 24.570
  151. }
  152.  
  153. root ssd {
  154. id -8 # do not change unnecessarily
  155. # weight 3.000
  156. alg straw
  157. hash 0 # rjenkins1
  158. item cephosd04-ssd weight 3.000
  159. }
  160.  
  161. # rules
  162. rule replicated_ruleset {
  163. ruleset 0
  164. type replicated
  165. min_size 1
  166. max_size 10
  167. step take default
  168. step chooseleaf firstn 0 type host
  169. step emit
  170. }
  171. rule fusionio_ruleset {
  172. ruleset 1
  173. type replicated
  174. min_size 0
  175. max_size 10
  176. step take fusionio
  177. step chooseleaf firstn 1 type host
  178. step emit
  179. step take default
  180. step chooseleaf firstn -1 type host
  181. step emit
  182. }
  183.  
  184. rule cachetier {
  185. ruleset 2
  186. type replicated
  187. min_size 1
  188. max_size 10
  189. step take ssd # select osd from the bucket 'ssd'
  190. step chooseleaf firstn 0 type host
  191. step emit
  192. }
  193.  
  194.  
  195. # end crush map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement