Advertisement
Guest User

osd-crush

a guest
Sep 24th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 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 device3
  12. device 4 osd.4
  13. device 5 osd.5
  14. device 6 osd.6
  15.  
  16. # types
  17. type 0 osd
  18. type 1 host
  19. type 2 rack
  20. type 3 row
  21. type 4 room
  22. type 5 datacenter
  23. type 6 root
  24.  
  25. # buckets
  26. host ceph-OSD-01 {
  27. id -6 # do not change unnecessarily
  28. # weight 7.280
  29. alg straw
  30. hash 0 # rjenkins1
  31. item osd.0 weight 1.820
  32. item osd.5 weight 1.820
  33. item osd.6 weight 3.640
  34. }
  35. host ceph-OSD-02 {
  36. id -7 # do not change unnecessarily
  37. # weight 7.280
  38. alg straw
  39. hash 0 # rjenkins1
  40. item osd.1 weight 1.820
  41. item osd.4 weight 1.820
  42. item osd.2 weight 3.640
  43. }
  44. rack 2 {
  45. id -4 # do not change unnecessarily
  46. # weight 14.560
  47. alg straw
  48. hash 0 # rjenkins1
  49. item ceph-OSD-01 weight 7.280
  50. item ceph-OSD-02 weight 7.280
  51. }
  52. room basement {
  53. id -3 # do not change unnecessarily
  54. # weight 14.560
  55. alg straw
  56. hash 0 # rjenkins1
  57. item 2 weight 14.560
  58. }
  59. datacenter T1Y7E1 {
  60. id -2 # do not change unnecessarily
  61. # weight 14.560
  62. alg straw
  63. hash 0 # rjenkins1
  64. item basement weight 14.560
  65. }
  66. root default {
  67. id -1 # do not change unnecessarily
  68. # weight 14.560
  69. alg straw
  70. hash 0 # rjenkins1
  71. item T1Y7E1 weight 14.560
  72. }
  73.  
  74. # rules
  75. rule data {
  76. ruleset 0
  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. rule metadata {
  85. ruleset 1
  86. type replicated
  87. min_size 1
  88. max_size 10
  89. step take default
  90. step chooseleaf firstn 0 type host
  91. step emit
  92. }
  93. rule rbd {
  94. ruleset 2
  95. type replicated
  96. min_size 1
  97. max_size 10
  98. step take default
  99. step chooseleaf firstn 0 type host
  100. step emit
  101. }
  102.  
  103. # end crush map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement