Advertisement
Guest User

Untitled

a guest
Dec 20th, 2013
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 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.  
  14. # types
  15. type 0 osd
  16. type 1 host
  17. type 2 rack
  18. type 3 row
  19. type 4 room
  20. type 5 datacenter
  21. type 6 root
  22.  
  23. # buckets
  24. host ceph-osd1 {
  25. id -1 # do not change unnecessarily
  26. # weight 7.600
  27. alg straw
  28. hash 0 # rjenkins1
  29. item osd.0 weight 3.800
  30. item osd.1 weight 3.800
  31. }
  32. host ceph-osd6 {
  33. id -2 # do not change unnecessarily
  34. # weight 5.700
  35. alg straw
  36. hash 0 # rjenkins1
  37. item osd.2 weight 1.900
  38. item osd.3 weight 1.900
  39. item osd.4 weight 1.900
  40. }
  41. root rack1 {
  42. id -3 # do not change unnecessarily
  43. # weight 13.300
  44. alg straw
  45. hash 0 # rjenkins1
  46. item ceph-osd1 weight 7.600
  47. item ceph-osd6 weight 5.700
  48. }
  49.  
  50. # rules
  51. rule HWraid {
  52. ruleset 0
  53. type replicated
  54. min_size 1
  55. max_size 2
  56. step take rack1
  57. step chooseleaf firstn 0 type host
  58. step emit
  59. }
  60.  
  61. # end crush map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement