-
-
Save notmyname/0f62708048f69ee820c7 to your computer and use it in GitHub Desktop.
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
swift@saio:~$ swift-ring-builder /etc/swift/object.builder | |
/etc/swift/object.builder, build version 4 | |
1024 partitions, 3.000000 replicas, 1 regions, 4 zones, 4 devices, 0.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 127.0.0.1 6010 127.0.0.1 6010 d1 1.00 768 0.00 | |
1 1 2 127.0.0.1 6020 127.0.0.1 6020 d2 1.00 768 0.00 | |
2 1 3 127.0.0.1 6030 127.0.0.1 6030 d3 1.00 768 0.00 | |
3 1 4 127.0.0.1 6040 127.0.0.1 6040 d4 1.00 768 0.00 | |
swift@saio:~$ swift-ring-builder /etc/swift/object.builder add r1z1-10.0.1.1:6000/d42_ 10000 | |
Device d4r1z1-10.0.1.1:6000R10.0.1.1:6000/d42_"" with 10000.0 weight got id 4 | |
swift@saio:~$ swift-ring-builder /etc/swift/object.builder rebalance | |
Reassigned 961 (93.85%) partitions. Balance is now 187149.35. Dispersion is now 56.15 | |
------------------------------------------------------------------------------- | |
NOTE: Dispersion of 56.152344 indicates some parts are not | |
optimally dispersed. | |
You may want to adjust some device weights, increase | |
the overload or review the dispersion report. | |
------------------------------------------------------------------------------- | |
swift@saio:~$ swift-ring-builder /etc/swift/object.builder add r1z1-10.0.1.1:6000/d43_ 10000 | |
Device d5r1z1-10.0.1.1:6000R10.0.1.1:6000/d43_"" with 10000.0 weight got id 5 | |
swift@saio:~$ swift-ring-builder /etc/swift/object.builder rebalance | |
Reassigned 63 (6.15%) partitions. Balance is now 374323.83. Dispersion is now 56.15 | |
------------------------------------------------------------------------------- | |
NOTE: Dispersion of 56.152344 indicates some parts are not | |
optimally dispersed. | |
You may want to adjust some device weights, increase | |
the overload or review the dispersion report. | |
------------------------------------------------------------------------------- | |
swift@saio:~$ swift-ring-builder /etc/swift/object.builder rebalance | |
No partitions could be reassigned. | |
Either none need to be or none can be due to min_part_hours [1]. | |
swift@saio:~$ swift-ring-builder /etc/swift/object.builder pretend_min_part_hours_passed | |
swift@saio:~$ swift-ring-builder /etc/swift/object.builder rebalance | |
Reassigned 945 (92.29%) partitions. Balance is now 218042.58. Dispersion is now 92.29 | |
------------------------------------------------------------------------------- | |
NOTE: Dispersion of 92.285156 indicates some parts are not | |
optimally dispersed. | |
You may want to adjust some device weights, increase | |
the overload or review the dispersion report. | |
------------------------------------------------------------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment