Advertisement
QrQcgs2EdOiV1GtDCcNU

Untitled

May 23rd, 2016
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 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. tunable chooseleaf_vary_r 1
  7. tunable straw_calc_version 1
  8.  
  9. # devices
  10. device 0 osd.0
  11. device 1 osd.1
  12. device 2 osd.2
  13. device 3 osd.3
  14.  
  15. # types
  16. type 0 osd
  17. type 1 host
  18. type 2 pool
  19. type 3 root
  20.  
  21. # buckets
  22. host homeserver-data {
  23. id -1 # do not change unnecessarily
  24. # weight 7.268
  25. alg straw
  26. hash 0 # rjenkins1
  27. item osd.0 weight 4 #3.634
  28. item osd.1 weight 4 #3.634
  29. }
  30. host homeserver-media {
  31. id -2 # do not change unnecessarily
  32. # weight 7.268
  33. alg straw
  34. hash 0 # rjenkins1
  35. item osd.2 weight 4 #3.634
  36. item osd.3 weight 4 #3.634
  37. }
  38. pool data {
  39. id -3 # do not change unnecessarily
  40. # weight 7.268
  41. alg straw
  42. hash 0 # rjenkins1
  43. item homeserver-data weight 8 #7.268
  44. }
  45. pool media {
  46. id -4 # do not change unnecessarily
  47. # weight 7.268
  48. alg straw
  49. hash 0 # rjenkins1
  50. item homeserver-media weight 8 #7.268
  51. }
  52.  
  53. # rules
  54. rule data_ruleset {
  55. ruleset 0
  56. type replicated
  57. min_size 2
  58. max_size 2
  59. step take data
  60. step choose firstn 0 type host
  61. step emit
  62. }
  63. rule media_ruleset {
  64. ruleset 1
  65. type replicated
  66. min_size 1
  67. max_size 1
  68. step take media
  69. step choose firstn 0 type host
  70. step emit
  71. }
  72. # end crush map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement