Advertisement
lukbrk1

crushmap-2019-06-14-09-16-23

Jun 14th, 2019
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.31 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 100
  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 class hdd
  11. device 1 osd.1 class hdd
  12. device 2 osd.2 class hdd
  13. device 3 osd.3 class hdd
  14. device 4 osd.4 class hdd
  15. device 5 osd.5 class hdd
  16. device 6 osd.6 class hdd
  17. device 7 osd.7 class hdd
  18. device 8 osd.8 class hdd
  19. device 9 osd.9 class hdd
  20. device 10 osd.10 class hdd
  21. device 11 osd.11 class hdd
  22. device 12 osd.12 class hdd
  23. device 13 osd.13 class hdd
  24. device 14 osd.14 class hdd
  25. device 15 osd.15 class hdd
  26. device 16 osd.16 class hdd
  27. device 17 osd.17 class hdd
  28. device 18 osd.18 class ssd
  29. device 19 osd.19 class ssd
  30. device 20 osd.20 class ssd
  31. device 21 osd.21 class ssd
  32. device 22 osd.22 class ssd
  33. device 23 osd.23 class ssd
  34. device 24 osd.24 class ssd
  35. device 25 osd.25 class ssd
  36. device 26 osd.26 class ssd
  37. device 27 osd.27 class ssd
  38. device 28 osd.28 class ssd
  39. device 29 osd.29 class ssd
  40. device 30 osd.30 class ssd
  41. device 31 osd.31 class ssd
  42. device 32 osd.32 class ssd
  43. device 33 osd.33 class ssd
  44. device 34 osd.34 class ssd
  45. device 35 osd.35 class ssd
  46. device 36 osd.36 class ssd
  47. device 37 osd.37 class ssd
  48. device 38 osd.38 class ssd
  49. device 39 osd.39 class ssd
  50. device 40 osd.40 class ssd
  51. device 41 osd.41 class ssd
  52. device 42 osd.42 class ssd
  53. device 43 osd.43 class ssd
  54. device 44 osd.44 class ssd
  55. device 45 osd.45 class ssd
  56. device 46 osd.46 class ssd
  57. device 47 osd.47 class ssd
  58. device 48 osd.48 class ssd
  59. device 49 osd.49 class ssd
  60. device 50 osd.50 class ssd
  61. device 51 osd.51 class ssd
  62. device 52 osd.52 class ssd
  63. device 53 osd.53 class ssd
  64. device 54 osd.54 class ssd
  65. device 55 osd.55 class ssd
  66. device 56 osd.56 class ssd
  67. device 57 osd.57 class ssd
  68. device 58 osd.58 class ssd
  69. device 59 osd.59 class ssd
  70. device 60 osd.60 class ssd
  71. device 61 osd.61 class ssd
  72. device 62 osd.62 class ssd
  73. device 63 osd.63 class ssd
  74. device 64 osd.64 class ssd
  75. device 65 osd.65 class ssd
  76. device 66 osd.66 class ssd
  77. device 67 osd.67 class ssd
  78. device 68 osd.68 class ssd
  79. device 69 osd.69 class ssd
  80. device 70 osd.70 class ssd
  81. device 71 osd.71 class ssd
  82. device 72 osd.72 class ssd
  83. device 73 osd.73 class ssd
  84. device 74 osd.74 class ssd
  85. device 75 osd.75 class ssd
  86. device 76 osd.76 class ssd
  87. device 77 osd.77 class ssd
  88. device 78 osd.78 class ssd
  89. device 79 osd.79 class ssd
  90. device 80 osd.80 class ssd
  91. device 81 osd.81 class ssd
  92. device 82 osd.82 class ssd
  93. device 83 osd.83 class ssd
  94. device 84 osd.84 class ssd
  95. device 85 osd.85 class ssd
  96. device 86 osd.86 class ssd
  97. device 87 osd.87 class ssd
  98. device 88 osd.88 class ssd
  99. device 89 osd.89 class ssd
  100. device 90 osd.90 class ssd
  101. device 91 osd.91 class ssd
  102. device 92 osd.92 class ssd
  103. device 93 osd.93 class ssd
  104. device 94 osd.94 class ssd
  105. device 95 osd.95 class ssd
  106. device 96 osd.96 class ssd
  107. device 97 osd.97 class ssd
  108. device 98 osd.98 class ssd
  109. device 99 osd.99 class ssd
  110. device 100 osd.100 class ssd
  111. device 101 osd.101 class ssd
  112. device 102 osd.102 class ssd
  113. device 103 osd.103 class ssd
  114. device 104 osd.104 class ssd
  115. device 105 osd.105 class ssd
  116. device 106 osd.106 class ssd
  117. device 107 osd.107 class ssd
  118. device 108 osd.108 class hdd
  119. device 109 osd.109 class hdd
  120. device 110 osd.110 class hdd
  121. device 111 osd.111 class hdd
  122. device 112 osd.112 class hdd
  123. device 113 osd.113 class hdd
  124. device 114 osd.114 class hdd
  125. device 115 osd.115 class hdd
  126. device 116 osd.116 class hdd
  127. device 117 osd.117 class hdd
  128. device 118 osd.118 class hdd
  129. device 119 osd.119 class hdd
  130. device 120 osd.120 class hdd
  131. device 121 osd.121 class hdd
  132. device 122 osd.122 class hdd
  133. device 123 osd.123 class hdd
  134. device 124 osd.124 class hdd
  135. device 125 osd.125 class hdd
  136. device 126 osd.126 class ssd
  137. device 127 osd.127 class ssd
  138. device 128 osd.128 class ssd
  139. device 129 osd.129 class ssd
  140. device 130 osd.130 class ssd
  141. device 131 osd.131 class ssd
  142. device 132 osd.132 class ssd
  143. device 133 osd.133 class ssd
  144. device 134 osd.134 class ssd
  145. device 135 osd.135 class ssd
  146. device 136 osd.136 class ssd
  147. device 137 osd.137 class ssd
  148. device 138 osd.138 class ssd
  149. device 139 osd.139 class ssd
  150. device 140 osd.140 class ssd
  151. device 141 osd.141 class ssd
  152. device 142 osd.142 class ssd
  153. device 143 osd.143 class ssd
  154.  
  155. # types
  156. type 0 osd
  157. type 1 host
  158. type 2 chassis
  159. type 3 rack
  160. type 4 row
  161. type 5 pdu
  162. type 6 pod
  163. type 7 room
  164. type 8 datacenter
  165. type 9 region
  166. type 10 root
  167.  
  168. # buckets
  169. host stor-a01-ssd {
  170. id -8 # do not change unnecessarily
  171. id -44 class hdd # do not change unnecessarily
  172. id -24 class ssd # do not change unnecessarily
  173. # weight 23.555
  174. alg straw2
  175. hash 0 # rjenkins1
  176. item osd.18 weight 1.435
  177. item osd.24 weight 1.435
  178. item osd.39 weight 1.435
  179. item osd.42 weight 1.435
  180. item osd.48 weight 1.435
  181. item osd.60 weight 1.435
  182. item osd.66 weight 1.435
  183. item osd.72 weight 1.435
  184. item osd.78 weight 1.435
  185. item osd.84 weight 1.435
  186. item osd.90 weight 1.435
  187. item osd.96 weight 1.435
  188. item osd.30 weight 1.435
  189. item osd.102 weight 3.500
  190. item osd.54 weight 1.400
  191. }
  192. host stor-a02-ssd {
  193. id -11 # do not change unnecessarily
  194. id -45 class hdd # do not change unnecessarily
  195. id -25 class ssd # do not change unnecessarily
  196. # weight 23.505
  197. alg straw2
  198. hash 0 # rjenkins1
  199. item osd.27 weight 1.435
  200. item osd.21 weight 1.435
  201. item osd.33 weight 1.435
  202. item osd.38 weight 1.435
  203. item osd.45 weight 1.435
  204. item osd.51 weight 1.435
  205. item osd.57 weight 1.435
  206. item osd.63 weight 1.435
  207. item osd.69 weight 1.435
  208. item osd.75 weight 1.435
  209. item osd.81 weight 1.435
  210. item osd.87 weight 1.350
  211. item osd.93 weight 1.435
  212. item osd.99 weight 1.435
  213. item osd.103 weight 3.500
  214. }
  215. host ssdstor-a01 {
  216. id -54 # do not change unnecessarily
  217. id -61 class hdd # do not change unnecessarily
  218. id -62 class ssd # do not change unnecessarily
  219. # weight 0.600
  220. alg straw2
  221. hash 0 # rjenkins1
  222. item osd.126 weight 0.100
  223. item osd.127 weight 0.100
  224. item osd.128 weight 0.100
  225. item osd.129 weight 0.100
  226. item osd.130 weight 0.100
  227. item osd.131 weight 0.100
  228. }
  229. rack rack-a-ssd {
  230. id -201 # do not change unnecessarily
  231. id -46 class hdd # do not change unnecessarily
  232. id -26 class ssd # do not change unnecessarily
  233. # weight 47.660
  234. alg straw2
  235. hash 0 # rjenkins1
  236. item stor-a01-ssd weight 23.555
  237. item stor-a02-ssd weight 23.505
  238. item ssdstor-a01 weight 0.600
  239. }
  240. host stor-b01-ssd {
  241. id -9 # do not change unnecessarily
  242. id -47 class hdd # do not change unnecessarily
  243. id -27 class ssd # do not change unnecessarily
  244. # weight 23.435
  245. alg straw2
  246. hash 0 # rjenkins1
  247. item osd.19 weight 1.435
  248. item osd.25 weight 1.435
  249. item osd.31 weight 1.435
  250. item osd.40 weight 1.435
  251. item osd.43 weight 1.435
  252. item osd.49 weight 1.280
  253. item osd.55 weight 1.435
  254. item osd.61 weight 1.435
  255. item osd.67 weight 1.435
  256. item osd.73 weight 1.435
  257. item osd.79 weight 1.435
  258. item osd.85 weight 1.435
  259. item osd.91 weight 1.435
  260. item osd.97 weight 1.435
  261. item osd.104 weight 3.500
  262. }
  263. host stor-b02-ssd {
  264. id -12 # do not change unnecessarily
  265. id -48 class hdd # do not change unnecessarily
  266. id -28 class ssd # do not change unnecessarily
  267. # weight 23.590
  268. alg straw2
  269. hash 0 # rjenkins1
  270. item osd.28 weight 1.435
  271. item osd.22 weight 1.435
  272. item osd.34 weight 1.435
  273. item osd.37 weight 1.435
  274. item osd.46 weight 1.435
  275. item osd.52 weight 1.435
  276. item osd.58 weight 1.435
  277. item osd.64 weight 1.435
  278. item osd.70 weight 1.435
  279. item osd.76 weight 1.435
  280. item osd.82 weight 1.435
  281. item osd.88 weight 1.435
  282. item osd.94 weight 1.435
  283. item osd.100 weight 1.435
  284. item osd.105 weight 3.500
  285. }
  286. host ssdstor-b01 {
  287. id -55 # do not change unnecessarily
  288. id -59 class hdd # do not change unnecessarily
  289. id -60 class ssd # do not change unnecessarily
  290. # weight 0.385
  291. alg straw2
  292. hash 0 # rjenkins1
  293. item osd.132 weight 0.030
  294. item osd.133 weight 0.070
  295. item osd.134 weight 0.080
  296. item osd.135 weight 0.100
  297. item osd.136 weight 0.065
  298. item osd.137 weight 0.040
  299. }
  300. rack rack-b-ssd {
  301. id -202 # do not change unnecessarily
  302. id -49 class hdd # do not change unnecessarily
  303. id -29 class ssd # do not change unnecessarily
  304. # weight 47.410
  305. alg straw2
  306. hash 0 # rjenkins1
  307. item stor-b01-ssd weight 23.435
  308. item stor-b02-ssd weight 23.590
  309. item ssdstor-b01 weight 0.385
  310. }
  311. host stor-c01-ssd {
  312. id -10 # do not change unnecessarily
  313. id -50 class hdd # do not change unnecessarily
  314. id -30 class ssd # do not change unnecessarily
  315. # weight 23.590
  316. alg straw2
  317. hash 0 # rjenkins1
  318. item osd.20 weight 1.435
  319. item osd.26 weight 1.435
  320. item osd.32 weight 1.435
  321. item osd.41 weight 1.435
  322. item osd.44 weight 1.435
  323. item osd.50 weight 1.435
  324. item osd.56 weight 1.435
  325. item osd.62 weight 1.435
  326. item osd.68 weight 1.435
  327. item osd.74 weight 1.435
  328. item osd.80 weight 1.435
  329. item osd.86 weight 1.435
  330. item osd.92 weight 1.435
  331. item osd.98 weight 1.435
  332. item osd.106 weight 3.500
  333. }
  334. host stor-c02-ssd {
  335. id -13 # do not change unnecessarily
  336. id -51 class hdd # do not change unnecessarily
  337. id -31 class ssd # do not change unnecessarily
  338. # weight 23.085
  339. alg straw2
  340. hash 0 # rjenkins1
  341. item osd.29 weight 1.435
  342. item osd.23 weight 1.200
  343. item osd.35 weight 1.435
  344. item osd.36 weight 1.435
  345. item osd.47 weight 1.435
  346. item osd.53 weight 1.435
  347. item osd.59 weight 1.435
  348. item osd.65 weight 1.435
  349. item osd.71 weight 1.435
  350. item osd.77 weight 1.435
  351. item osd.83 weight 1.435
  352. item osd.89 weight 1.200
  353. item osd.95 weight 1.435
  354. item osd.101 weight 1.400
  355. item osd.107 weight 3.500
  356. }
  357. host ssdstor-c01 {
  358. id -56 # do not change unnecessarily
  359. id -57 class hdd # do not change unnecessarily
  360. id -58 class ssd # do not change unnecessarily
  361. # weight 0.430
  362. alg straw2
  363. hash 0 # rjenkins1
  364. item osd.138 weight 0.060
  365. item osd.139 weight 0.070
  366. item osd.140 weight 0.050
  367. item osd.141 weight 0.060
  368. item osd.142 weight 0.090
  369. item osd.143 weight 0.100
  370. }
  371. rack rack-c-ssd {
  372. id -203 # do not change unnecessarily
  373. id -52 class hdd # do not change unnecessarily
  374. id -32 class ssd # do not change unnecessarily
  375. # weight 47.105
  376. alg straw2
  377. hash 0 # rjenkins1
  378. item stor-c01-ssd weight 23.590
  379. item stor-c02-ssd weight 23.085
  380. item ssdstor-c01 weight 0.430
  381. }
  382. root default {
  383. id -1 # do not change unnecessarily
  384. id -53 class hdd # do not change unnecessarily
  385. id -33 class ssd # do not change unnecessarily
  386. # weight 142.175
  387. alg straw2
  388. hash 0 # rjenkins1
  389. item rack-a-ssd weight 47.660
  390. item rack-b-ssd weight 47.410
  391. item rack-c-ssd weight 47.105
  392. }
  393. host stor-a01 {
  394. id -2 # do not change unnecessarily
  395. id -34 class hdd # do not change unnecessarily
  396. id -14 class ssd # do not change unnecessarily
  397. # weight 33.825
  398. alg straw2
  399. hash 0 # rjenkins1
  400. item osd.0 weight 7.275
  401. item osd.6 weight 7.275
  402. item osd.12 weight 7.275
  403. item osd.108 weight 4.000
  404. item osd.109 weight 4.000
  405. item osd.110 weight 4.000
  406. }
  407. host stor-b01 {
  408. id -3 # do not change unnecessarily
  409. id -37 class hdd # do not change unnecessarily
  410. id -17 class ssd # do not change unnecessarily
  411. # weight 27.150
  412. alg straw2
  413. hash 0 # rjenkins1
  414. item osd.1 weight 7.275
  415. item osd.13 weight 7.275
  416. item osd.114 weight 4.000
  417. item osd.115 weight 4.000
  418. item osd.116 weight 4.000
  419. item osd.7 weight 0.600
  420. }
  421. host stor-b02 {
  422. id -4 # do not change unnecessarily
  423. id -38 class hdd # do not change unnecessarily
  424. id -18 class ssd # do not change unnecessarily
  425. # weight 33.825
  426. alg straw2
  427. hash 0 # rjenkins1
  428. item osd.2 weight 7.275
  429. item osd.10 weight 7.275
  430. item osd.16 weight 7.275
  431. item osd.117 weight 4.000
  432. item osd.118 weight 4.000
  433. item osd.119 weight 4.000
  434. }
  435. host stor-c02 {
  436. id -5 # do not change unnecessarily
  437. id -41 class hdd # do not change unnecessarily
  438. id -21 class ssd # do not change unnecessarily
  439. # weight 33.825
  440. alg straw2
  441. hash 0 # rjenkins1
  442. item osd.3 weight 7.275
  443. item osd.11 weight 7.275
  444. item osd.17 weight 7.275
  445. item osd.123 weight 4.000
  446. item osd.124 weight 4.000
  447. item osd.125 weight 4.000
  448. }
  449. host stor-c01 {
  450. id -6 # do not change unnecessarily
  451. id -40 class hdd # do not change unnecessarily
  452. id -20 class ssd # do not change unnecessarily
  453. # weight 33.825
  454. alg straw2
  455. hash 0 # rjenkins1
  456. item osd.4 weight 7.275
  457. item osd.8 weight 7.275
  458. item osd.14 weight 7.275
  459. item osd.120 weight 4.000
  460. item osd.121 weight 4.000
  461. item osd.122 weight 4.000
  462. }
  463. host stor-a02 {
  464. id -7 # do not change unnecessarily
  465. id -35 class hdd # do not change unnecessarily
  466. id -15 class ssd # do not change unnecessarily
  467. # weight 33.825
  468. alg straw2
  469. hash 0 # rjenkins1
  470. item osd.5 weight 7.275
  471. item osd.9 weight 7.275
  472. item osd.15 weight 7.275
  473. item osd.111 weight 4.000
  474. item osd.113 weight 4.000
  475. item osd.112 weight 4.000
  476. }
  477. rack rack-a {
  478. id -101 # do not change unnecessarily
  479. id -36 class hdd # do not change unnecessarily
  480. id -16 class ssd # do not change unnecessarily
  481. # weight 67.650
  482. alg straw2
  483. hash 0 # rjenkins1
  484. item stor-a01 weight 33.825
  485. item stor-a02 weight 33.825
  486. }
  487. rack rack-b {
  488. id -102 # do not change unnecessarily
  489. id -39 class hdd # do not change unnecessarily
  490. id -19 class ssd # do not change unnecessarily
  491. # weight 60.975
  492. alg straw2
  493. hash 0 # rjenkins1
  494. item stor-b01 weight 27.150
  495. item stor-b02 weight 33.825
  496. }
  497. rack rack-c {
  498. id -103 # do not change unnecessarily
  499. id -42 class hdd # do not change unnecessarily
  500. id -22 class ssd # do not change unnecessarily
  501. # weight 67.650
  502. alg straw2
  503. hash 0 # rjenkins1
  504. item stor-c01 weight 33.825
  505. item stor-c02 weight 33.825
  506. }
  507. root hdd {
  508. id -100 # do not change unnecessarily
  509. id -43 class hdd # do not change unnecessarily
  510. id -23 class ssd # do not change unnecessarily
  511. # weight 200.275
  512. alg straw2
  513. hash 0 # rjenkins1
  514. item rack-a weight 67.650
  515. item rack-b weight 60.975
  516. item rack-c weight 67.650
  517. item osd.112 weight 4.000
  518. }
  519.  
  520. # rules
  521. rule replicated_ruleset {
  522. id 0
  523. type replicated
  524. min_size 1
  525. max_size 10
  526. step take default
  527. step choose firstn 0 type rack
  528. step chooseleaf firstn 0 type host
  529. step emit
  530. }
  531. rule hdd_replicated {
  532. id 1
  533. type replicated
  534. min_size 1
  535. max_size 3
  536. step take hdd
  537. step choose firstn 0 type rack
  538. step chooseleaf firstn 0 type host
  539. step emit
  540. }
  541. rule ssd_then_spinner {
  542. id 2
  543. type replicated
  544. min_size 1
  545. max_size 10
  546. step take default
  547. step chooseleaf firstn 1 type host
  548. step emit
  549. step take hdd
  550. step choose firstn -1 type rack
  551. step chooseleaf firstn -1 type host
  552. step emit
  553. }
  554.  
  555. # end crush map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement