diff options
| author | Lisandro Pin <lisandro.pin@proton.ch> | 2024-11-27 20:51:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-27 11:51:57 -0800 |
| commit | 559a1fd0f4565bca3e2f4e6f0d90d188c7b3377a (patch) | |
| tree | f02a7ffac330833ba36e8e5d006722f649387ac3 /weed/shell/command_ec_balance.go | |
| parent | 88fa64a01ae7ac8782e70dd29a8a9f6bf44a7e19 (diff) | |
| download | seaweedfs-559a1fd0f4565bca3e2f4e6f0d90d188c7b3377a.tar.xz seaweedfs-559a1fd0f4565bca3e2f4e6f0d90d188c7b3377a.zip | |
Improve EC shards rebalancing logic across nodes (#6297)
* Improve EC shards rebalancing logic across nodes.
- Favor target nodes with less preexisting shards, to ensure a fair distribution.
- Randomize selection when multiple possible target nodes are available.
- Add logic to account for replication settings when selecting target nodes (currently disabled).
* Fix minor test typo.
* Clarify internal error messages for `pickEcNodeToBalanceShardsInto()`.
Diffstat (limited to 'weed/shell/command_ec_balance.go')
0 files changed, 0 insertions, 0 deletions
