diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/cli/crushtool/simple.template | bin | 0 -> 316 bytes | |||
-rw-r--r-- | src/test/cli/crushtool/simple.template.adj.one | 56 | ||||
-rw-r--r-- | src/test/cli/crushtool/simple.template.adj.three | 64 | ||||
-rw-r--r-- | src/test/cli/crushtool/simple.template.adj.two | 64 | ||||
-rw-r--r-- | src/test/cli/crushtool/simple.template.five | 65 | ||||
-rw-r--r-- | src/test/cli/crushtool/simple.template.four | 56 | ||||
-rw-r--r-- | src/test/cli/crushtool/simple.template.multitree | 70 | ||||
-rw-r--r-- | src/test/cli/crushtool/simple.template.multitree.reweighted | 73 | ||||
-rw-r--r-- | src/test/cli/crushtool/simple.template.one | 58 | ||||
-rw-r--r-- | src/test/cli/crushtool/simple.template.three | 58 | ||||
-rw-r--r-- | src/test/cli/crushtool/simple.template.two | 58 |
11 files changed, 622 insertions, 0 deletions
diff --git a/src/test/cli/crushtool/simple.template b/src/test/cli/crushtool/simple.template Binary files differnew file mode 100644 index 000000000..8f0076f54 --- /dev/null +++ b/src/test/cli/crushtool/simple.template diff --git a/src/test/cli/crushtool/simple.template.adj.one b/src/test/cli/crushtool/simple.template.adj.one new file mode 100644 index 000000000..aa16bbded --- /dev/null +++ b/src/test/cli/crushtool/simple.template.adj.one @@ -0,0 +1,56 @@ +# begin crush map + +# devices +device 0 device0 + +# types +type 0 device +type 1 host +type 2 cluster + +# buckets +host host0 { + id -2 # do not change unnecessarily + # weight 1.000 + alg straw + hash 0 # rjenkins1 + item device0 weight 1.000 +} +cluster cluster0 { + id -1 # do not change unnecessarily + # weight 1.000 + alg straw + hash 0 # rjenkins1 + item host0 weight 1.000 +} + +# rules +rule data { + ruleset 0 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} +rule metadata { + ruleset 1 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} +rule rbd { + ruleset 2 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} + +# end crush map diff --git a/src/test/cli/crushtool/simple.template.adj.three b/src/test/cli/crushtool/simple.template.adj.three new file mode 100644 index 000000000..2532e88a4 --- /dev/null +++ b/src/test/cli/crushtool/simple.template.adj.three @@ -0,0 +1,64 @@ +# begin crush map + +# devices +device 0 device0 + +# types +type 0 device +type 1 host +type 2 cluster + +# buckets +host host0 { + id -2 # do not change unnecessarily + # weight 3.000 + alg straw + hash 0 # rjenkins1 + item device0 weight 3.000 +} +host fake { + id -3 # do not change unnecessarily + # weight 2.000 + alg straw + hash 0 # rjenkins1 + item device0 weight 2.000 +} +cluster cluster0 { + id -1 # do not change unnecessarily + # weight 5.000 + alg straw + hash 0 # rjenkins1 + item host0 weight 3.000 + item fake weight 2.000 +} + +# rules +rule data { + id 0 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} +rule metadata { + id 1 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} +rule rbd { + id 2 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} + +# end crush map diff --git a/src/test/cli/crushtool/simple.template.adj.two b/src/test/cli/crushtool/simple.template.adj.two new file mode 100644 index 000000000..7c911c45f --- /dev/null +++ b/src/test/cli/crushtool/simple.template.adj.two @@ -0,0 +1,64 @@ +# begin crush map + +# devices +device 0 device0 + +# types +type 0 device +type 1 host +type 2 cluster + +# buckets +host host0 { + id -2 # do not change unnecessarily + # weight 1.000 + alg straw + hash 0 # rjenkins1 + item device0 weight 1.000 +} +host fake { + id -3 # do not change unnecessarily + # weight 2.000 + alg straw + hash 0 # rjenkins1 + item device0 weight 2.000 +} +cluster cluster0 { + id -1 # do not change unnecessarily + # weight 3.000 + alg straw + hash 0 # rjenkins1 + item host0 weight 1.000 + item fake weight 2.000 +} + +# rules +rule data { + id 0 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} +rule metadata { + id 1 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} +rule rbd { + id 2 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} + +# end crush map diff --git a/src/test/cli/crushtool/simple.template.five b/src/test/cli/crushtool/simple.template.five new file mode 100644 index 000000000..6f2c5f43f --- /dev/null +++ b/src/test/cli/crushtool/simple.template.five @@ -0,0 +1,65 @@ +# begin crush map + +# devices +device 0 device0 +device 1 osd1 + +# types +type 0 device +type 1 host +type 2 cluster + +# buckets +host host0 { + id -2 # do not change unnecessarily + # weight 1.000 + alg straw + hash 0 # rjenkins1 + item device0 weight 1.000 +} +host host1 { + id -3 # do not change unnecessarily + # weight 2.000 + alg straw + hash 0 # rjenkins1 + item osd1 weight 2.000 +} +cluster cluster0 { + id -1 # do not change unnecessarily + # weight 3.000 + alg straw + hash 0 # rjenkins1 + item host0 weight 1.000 + item host1 weight 2.000 +} + +# rules +rule data { + id 0 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} +rule metadata { + id 1 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} +rule rbd { + id 2 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} + +# end crush map diff --git a/src/test/cli/crushtool/simple.template.four b/src/test/cli/crushtool/simple.template.four new file mode 100644 index 000000000..31dcecdca --- /dev/null +++ b/src/test/cli/crushtool/simple.template.four @@ -0,0 +1,56 @@ +# begin crush map + +# devices +device 0 device0 + +# types +type 0 device +type 1 host +type 2 cluster + +# buckets +host host0 { + id -2 # do not change unnecessarily + # weight 1.000 + alg straw + hash 0 # rjenkins1 + item device0 weight 1.000 +} +cluster cluster0 { + id -1 # do not change unnecessarily + # weight 1.000 + alg straw + hash 0 # rjenkins1 + item host0 weight 1.000 +} + +# rules +rule data { + id 0 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} +rule metadata { + id 1 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} +rule rbd { + id 2 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} + +# end crush map diff --git a/src/test/cli/crushtool/simple.template.multitree b/src/test/cli/crushtool/simple.template.multitree new file mode 100644 index 000000000..e2967a1c6 --- /dev/null +++ b/src/test/cli/crushtool/simple.template.multitree @@ -0,0 +1,70 @@ +# begin crush map + +# devices +device 0 device0 +device 1 osd1 + +# types +type 0 device +type 1 host +type 2 cluster + +# buckets +host host0 { + # weight 1.000 + alg straw + hash 0 # rjenkins1 + item device0 weight 1.000 +} +host host1 { + # weight 2.000 + alg straw + hash 0 # rjenkins1 + item osd1 weight 2.000 +} +cluster cluster0 { + # weight 3.000 + alg straw + hash 0 # rjenkins1 + item host0 weight 1.000 + item host1 weight 2.000 +} + +cluster cluster1 { + # weight 3.000 + alg straw + hash 0 # rjenkins1 + item host0 weight 1.000 + item host1 weight 2.000 +} + +# rules +rule data { + ruleset 0 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} +rule metadata { + ruleset 1 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} +rule rbd { + ruleset 2 + type replicated + min_size 1 + max_size 10 + step take cluster1 + step chooseleaf firstn 0 type host + step emit +} + +# end crush map diff --git a/src/test/cli/crushtool/simple.template.multitree.reweighted b/src/test/cli/crushtool/simple.template.multitree.reweighted new file mode 100644 index 000000000..b337d28f7 --- /dev/null +++ b/src/test/cli/crushtool/simple.template.multitree.reweighted @@ -0,0 +1,73 @@ +# begin crush map + +# devices +device 0 device0 +device 1 osd1 + +# types +type 0 device +type 1 host +type 2 cluster + +# buckets +host host0 { + id -1 # do not change unnecessarily + # weight 1.000 + alg straw + hash 0 # rjenkins1 + item device0 weight 1.000 +} +host host1 { + id -2 # do not change unnecessarily + # weight 2.500 + alg straw + hash 0 # rjenkins1 + item osd1 weight 2.500 +} +cluster cluster0 { + id -3 # do not change unnecessarily + # weight 3.500 + alg straw + hash 0 # rjenkins1 + item host0 weight 1.000 + item host1 weight 2.500 +} +cluster cluster1 { + id -4 # do not change unnecessarily + # weight 3.500 + alg straw + hash 0 # rjenkins1 + item host0 weight 1.000 + item host1 weight 2.500 +} + +# rules +rule data { + id 0 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} +rule metadata { + id 1 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} +rule rbd { + id 2 + type replicated + min_size 1 + max_size 10 + step take cluster1 + step chooseleaf firstn 0 type host + step emit +} + +# end crush map diff --git a/src/test/cli/crushtool/simple.template.one b/src/test/cli/crushtool/simple.template.one new file mode 100644 index 000000000..9a3aee734 --- /dev/null +++ b/src/test/cli/crushtool/simple.template.one @@ -0,0 +1,58 @@ +# begin crush map + +# devices +device 0 device0 +device 1 device1 + +# types +type 0 device +type 1 host +type 2 cluster + +# buckets +host host0 { + id -2 # do not change unnecessarily + # weight 2.000 + alg straw + hash 0 # rjenkins1 + item device0 weight 1.000 + item device1 weight 1.000 +} +cluster cluster0 { + id -1 # do not change unnecessarily + # weight 2.000 + alg straw + hash 0 # rjenkins1 + item host0 weight 2.000 +} + +# rules +rule data { + ruleset 0 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} +rule metadata { + ruleset 1 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} +rule rbd { + ruleset 2 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} + +# end crush map diff --git a/src/test/cli/crushtool/simple.template.three b/src/test/cli/crushtool/simple.template.three new file mode 100644 index 000000000..9a3aee734 --- /dev/null +++ b/src/test/cli/crushtool/simple.template.three @@ -0,0 +1,58 @@ +# begin crush map + +# devices +device 0 device0 +device 1 device1 + +# types +type 0 device +type 1 host +type 2 cluster + +# buckets +host host0 { + id -2 # do not change unnecessarily + # weight 2.000 + alg straw + hash 0 # rjenkins1 + item device0 weight 1.000 + item device1 weight 1.000 +} +cluster cluster0 { + id -1 # do not change unnecessarily + # weight 2.000 + alg straw + hash 0 # rjenkins1 + item host0 weight 2.000 +} + +# rules +rule data { + ruleset 0 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} +rule metadata { + ruleset 1 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} +rule rbd { + ruleset 2 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} + +# end crush map diff --git a/src/test/cli/crushtool/simple.template.two b/src/test/cli/crushtool/simple.template.two new file mode 100644 index 000000000..099ff70c1 --- /dev/null +++ b/src/test/cli/crushtool/simple.template.two @@ -0,0 +1,58 @@ +# begin crush map + +# devices +device 0 device0 +device 1 device1 + +# types +type 0 device +type 1 host +type 2 cluster + +# buckets +host host0 { + id -2 # do not change unnecessarily + # weight 2.000 + alg straw + hash 0 # rjenkins1 + item device0 weight 1.000 + item device1 weight 1.000 +} +cluster cluster0 { + id -1 # do not change unnecessarily + # weight 2.000 + alg straw + hash 0 # rjenkins1 + item host0 weight 2.000 +} + +# rules +rule data { + id 0 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} +rule metadata { + id 1 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} +rule rbd { + id 2 + type replicated + min_size 1 + max_size 10 + step take cluster0 + step chooseleaf firstn 0 type host + step emit +} + +# end crush map |