Advertisement
Guest User

Untitled

a guest
Nov 25th, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. # begin crush map
  2.  
  3. # devices
  4. device 0 device0
  5. device 1 device1
  6. device 2 osd.2
  7. device 3 osd.3
  8.  
  9. # types
  10. type 0 osd
  11. type 1 host
  12. type 2 rack
  13. type 3 row
  14. type 4 room
  15. type 5 datacenter
  16. type 6 pool
  17.  
  18. # buckets
  19. host node01 {
  20. id -2 # do not change unnecessarily
  21. # weight 1.000
  22. alg straw
  23. hash 0 # rjenkins1
  24. item osd.2 weight 1.000
  25. }
  26. host node02 {
  27. id -4 # do not change unnecessarily
  28. # weight 1.000
  29. alg straw
  30. hash 0 # rjenkins1
  31. item osd.3 weight 1.000
  32. }
  33. host itsn01 {
  34. id -5 # do not change unnecessarily
  35. # weight 0.000
  36. alg straw
  37. hash 0 # rjenkins1
  38. }
  39. host itsn02 {
  40. id -6 # do not change unnecessarily
  41. # weight 0.000
  42. alg straw
  43. hash 0 # rjenkins1
  44. }
  45. host itsn03 {
  46. id -7 # do not change unnecessarily
  47. # weight 0.000
  48. alg straw
  49. hash 0 # rjenkins1
  50. }
  51. rack unknownrack {
  52. id -3 # do not change unnecessarily
  53. # weight 2.000
  54. alg straw
  55. hash 0 # rjenkins1
  56. item node01 weight 1.000
  57. item node02 weight 1.000
  58. item itsn01 weight 0.000
  59. item itsn02 weight 0.000
  60. item itsn03 weight 0.000
  61. }
  62. pool default {
  63. id -1 # do not change unnecessarily
  64. # weight 2.000
  65. alg straw
  66. hash 0 # rjenkins1
  67. item unknownrack weight 2.000
  68. }
  69.  
  70. # rules
  71. rule data {
  72. ruleset 0
  73. type replicated
  74. min_size 1
  75. max_size 10
  76. step take default
  77. step chooseleaf firstn 0 type host
  78. step emit
  79. }
  80. rule metadata {
  81. ruleset 1
  82. type replicated
  83. min_size 1
  84. max_size 10
  85. step take default
  86. step chooseleaf firstn 0 type host
  87. step emit
  88. }
  89. rule rbd {
  90. ruleset 2
  91. type replicated
  92. min_size 1
  93. max_size 10
  94. step take default
  95. step chooseleaf firstn 0 type host
  96. step emit
  97. }
  98.  
  99. # end crush map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement