Created
January 11, 2016 20:20
-
-
Save clayg/ac0ec87c98aa5a986537 to your computer and use it in GitHub Desktop.
When we re-use holes it means device id's get spread out (good) - but then when we display devices it's harder to reason about what's been added and where
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant@saio:/tmp/rings$ for i in {0..9}; do swift-ring-builder test.builder add r1z1-10.0.0.3:6000/d${i} 1; done | |
Device d3r1z1-10.0.0.3:6000R10.0.0.3:6000/d0_"" with 1.0 weight got id 3 | |
Device d4r1z1-10.0.0.3:6000R10.0.0.3:6000/d1_"" with 1.0 weight got id 4 | |
Device d5r1z1-10.0.0.3:6000R10.0.0.3:6000/d2_"" with 1.0 weight got id 5 | |
Device d13r1z1-10.0.0.3:6000R10.0.0.3:6000/d3_"" with 1.0 weight got id 13 | |
Device d14r1z1-10.0.0.3:6000R10.0.0.3:6000/d4_"" with 1.0 weight got id 14 | |
Device d15r1z1-10.0.0.3:6000R10.0.0.3:6000/d5_"" with 1.0 weight got id 15 | |
Device d20r1z1-10.0.0.3:6000R10.0.0.3:6000/d6_"" with 1.0 weight got id 20 | |
Device d21r1z1-10.0.0.3:6000R10.0.0.3:6000/d7_"" with 1.0 weight got id 21 | |
Device d22r1z1-10.0.0.3:6000R10.0.0.3:6000/d8_"" with 1.0 weight got id 22 | |
Device d23r1z1-10.0.0.3:6000R10.0.0.3:6000/d9_"" with 1.0 weight got id 23 | |
vagrant@saio:/tmp/rings$ swift-ring-builder test.builder | |
test.builder, build version 47 | |
1024 partitions, 3.000000 replicas, 1 regions, 1 zones, 24 devices, 100.00 balance, 0.00 dispersion | |
The minimum number of hours before a partition can be reassigned is 1 | |
The overload factor is 0.00% (0.000000) | |
Devices: id region zone ip address port replication ip replication port name weight partitions balance flags meta | |
0 1 1 10.0.0.1 6000 10.0.0.1 6000 d0 1.00 220 71.88 | |
1 1 1 10.0.0.1 6000 10.0.0.1 6000 d1 1.00 220 71.88 | |
2 1 1 10.0.0.1 6000 10.0.0.1 6000 d2 1.00 220 71.88 | |
3 1 1 10.0.0.3 6000 10.0.0.3 6000 d0 1.00 0 -100.00 | |
4 1 1 10.0.0.3 6000 10.0.0.3 6000 d1 1.00 0 -100.00 | |
5 1 1 10.0.0.3 6000 10.0.0.3 6000 d2 1.00 0 -100.00 | |
6 1 1 10.0.0.1 6000 10.0.0.1 6000 d6 1.00 219 71.09 | |
7 1 1 10.0.0.1 6000 10.0.0.1 6000 d7 1.00 219 71.09 | |
8 1 1 10.0.0.1 6000 10.0.0.1 6000 d8 1.00 219 71.09 | |
9 1 1 10.0.0.1 6000 10.0.0.1 6000 d9 1.00 219 71.09 | |
10 1 1 10.0.0.2 6000 10.0.0.2 6000 d0 1.00 220 71.88 | |
11 1 1 10.0.0.2 6000 10.0.0.2 6000 d1 1.00 220 71.88 | |
12 1 1 10.0.0.2 6000 10.0.0.2 6000 d2 1.00 220 71.88 | |
13 1 1 10.0.0.3 6000 10.0.0.3 6000 d3 1.00 0 -100.00 | |
14 1 1 10.0.0.3 6000 10.0.0.3 6000 d4 1.00 0 -100.00 | |
15 1 1 10.0.0.3 6000 10.0.0.3 6000 d5 1.00 0 -100.00 | |
16 1 1 10.0.0.2 6000 10.0.0.2 6000 d6 1.00 219 71.09 | |
17 1 1 10.0.0.2 6000 10.0.0.2 6000 d7 1.00 219 71.09 | |
18 1 1 10.0.0.2 6000 10.0.0.2 6000 d8 1.00 219 71.09 | |
19 1 1 10.0.0.2 6000 10.0.0.2 6000 d9 1.00 219 71.09 | |
20 1 1 10.0.0.3 6000 10.0.0.3 6000 d6 1.00 0 -100.00 | |
21 1 1 10.0.0.3 6000 10.0.0.3 6000 d7 1.00 0 -100.00 | |
22 1 1 10.0.0.3 6000 10.0.0.3 6000 d8 1.00 0 -100.00 | |
23 1 1 10.0.0.3 6000 10.0.0.3 6000 d9 1.00 0 -100.00 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment