Advertisement
Guest User

Untitled

a guest
Jul 19th, 2013
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 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 root
  17.  
  18. # buckets
  19. host ip-10-16-43-12 {
  20. id -7 # do not change unnecessarily
  21. # weight 1.000
  22. alg straw
  23. hash 0 # rjenkins1
  24. item osd.3 weight 1.000
  25. }
  26. rack az1 {
  27. id -3 # do not change unnecessarily
  28. # weight 1.000
  29. alg straw
  30. hash 0 # rjenkins1
  31. item ip-10-16-43-12 weight 1.000
  32. }
  33. host ip-10-16-20-11 {
  34. id -6 # do not change unnecessarily
  35. # weight 1.000
  36. alg straw
  37. hash 0 # rjenkins1
  38. item osd.2 weight 1.000
  39. }
  40. rack az2 {
  41. id -5 # do not change unnecessarily
  42. # weight 1.000
  43. alg straw
  44. hash 0 # rjenkins1
  45. item ip-10-16-20-11 weight 1.000
  46. }
  47. root default {
  48. id -1 # do not change unnecessarily
  49. # weight 2.000
  50. alg straw
  51. hash 0 # rjenkins1
  52. item az1 weight 1.000
  53. item az2 weight 1.000
  54. }
  55.  
  56. # rules
  57. rule data {
  58. ruleset 0
  59. type replicated
  60. min_size 1
  61. max_size 10
  62. step take default
  63. step chooseleaf firstn 0 type host
  64. step emit
  65. }
  66. rule metadata {
  67. ruleset 1
  68. type replicated
  69. min_size 1
  70. max_size 10
  71. step take default
  72. step chooseleaf firstn 0 type host
  73. step emit
  74. }
  75. rule rbd {
  76. ruleset 2
  77. type replicated
  78. min_size 1
  79. max_size 10
  80. step take default
  81. step chooseleaf firstn 0 type host
  82. step emit
  83. }
  84.  
  85. # end crush map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement