aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_balance.go
AgeCommit message (Collapse)AuthorFilesLines
2025-11-09Unify the parameter to disable dry-run on weed shell commands to `-apply` ↵Lisandro Pin1-3/+6
(instead of `-force`). (#7450) * Unify the parameter to disable dry-run on weed shell commands to --apply (instead of --force). * lint * refactor * Execution Order Corrected * handle deprecated force flag * fix help messages * Refactoring]: Using flag.FlagSet.Visit() * consistent with other commands * Checks for both flags * fix toml files --------- Co-authored-by: chrislu <chris.lu@gmail.com>
2025-08-23Shell: support regular expression for collection selection (#7158)Chris Lu1-11/+36
* support regular expression for collection selection * refactor * ordering * fix exact match * Update command_volume_balance_test.go * simplify * Update command_volume_balance.go * comment
2025-07-28fix: consider EC shard count in volume.balance capacity calculation (#7034)FQHSLycopene1-1/+5
* fix: consider EC shard count in volume.balance capacity calculation * update the implementation of capacityByMaxVolumeCount to include the EC shard usage
2025-01-12fix force arg dropped during volume balance command (#6432)ftong20201-3/+7
2024-12-19"golang.org/x/exp/slices" => "slices" and go fmtchrislu1-1/+1
2024-12-13[shell] only apply the balancing for writable volumes (#6346)Konstantin Lebedev1-11/+24
2024-11-05[shell] add admin noLock for balance (#6209)Konstantin Lebedev1-2/+7
add admin noLock for balance
2024-11-03[shell] volume.balance collect volume servers by dc rack node (#6191)Konstantin Lebedev1-5/+13
* chore: balance by rack * fix: rm check lock * fix: selected racks * fix: selected nodes * fix: containts * fix: one collectVolumeServersByDcRackNode * fix: revert lock and add lock * fix: panic test * revert noLock
2024-09-29refactorchrislu1-1/+1
2024-09-28add IsResourceHeavy() to command interfacechrislu1-0/+4
2024-04-23fix "volume.fix.replication" move many replications only to one volumeServer ↵skycope1-4/+2
(#5522)
2024-01-25weed/shell: Cleanup volume balance logic (#5241)Benoît Knecht1-12/+8
2024-01-25weed/shell: Fix volume.balance logic (#5238)Benoît Knecht1-6/+6
2023-09-25Revert "Revert "Merge branch 'master' of ↵chrislu1-4/+4
https://github.com/seaweedfs/seaweedfs"" This reverts commit 8cb42c39
2023-09-18Revert "Merge branch 'master' of https://github.com/seaweedfs/seaweedfs"chrislu1-4/+4
This reverts commit 2e5aa06026750c99ea283181974d2ccfe5eb0468, reversing changes made to 4d414f54a224142f3f4d934f4af3b5dceb6fec6b.
2023-09-18Bump github.com/rclone/rclone from 1.63.1 to 1.64.0 (#4850)dependabot[bot]1-4/+4
* Bump github.com/rclone/rclone from 1.63.1 to 1.64.0 Bumps [github.com/rclone/rclone](https://github.com/rclone/rclone) from 1.63.1 to 1.64.0. - [Release notes](https://github.com/rclone/rclone/releases) - [Changelog](https://github.com/rclone/rclone/blob/master/RELEASE.md) - [Commits](https://github.com/rclone/rclone/compare/v1.63.1...v1.64.0) --- updated-dependencies: - dependency-name: github.com/rclone/rclone dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * API changes * go mod --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com> Co-authored-by: chrislu <chris.lu@gmail.com>
2023-05-04fix shell volume.balance bug (#4447)themarkchen1-23/+15
2023-02-10avoid infinite loopchrislu1-1/+1
fix https://github.com/seaweedfs/seaweedfs/issues/4195#issuecomment-1426100904
2023-02-09do not move cloud tier volumeschrislu1-0/+4
fix https://github.com/seaweedfs/seaweedfs/issues/4195
2022-10-24adjust help messagechrislu1-1/+1
2022-10-09include ec shard for capacityByFreeVolumeCountchrislu1-1/+5
2022-10-09refactorchrislu1-2/+4
2022-10-09refactor to change capacity data typechrislu1-9/+9
2022-09-09volume.balance: default to balance ALL_COLLECTIONSchrislu1-1/+1
2022-09-08volume.balance: avoid moving out volume with max=1chrislu1-1/+32
2022-09-08unusedchrislu1-6/+0
2022-08-22shell: stop long running jobs if lock is lostchrislu1-0/+4
2022-08-21feat(weed.move): add a speed limit parameter of moving files (#3478)qzh1-1/+1
* feat(weed.move): add a speed limit parameter of moving files * fix(weed.move): set the default value of ioBytePerSecond to vs.compactionBytePerSecond Co-authored-by: zhihao.qu <zhihao.qu@ly.com>
2022-07-29move to https://github.com/seaweedfs/seaweedfschrislu1-5/+5
2022-07-01edge case checking when volume server does not have capacity to balancechrislu1-0/+4
fix https://github.com/chrislusf/seaweedfs/issues/3257
2022-05-31help message when in simulation modechrislu1-0/+1
2022-04-18enhancement: replace sort.Slice with slices.SortFunc to reduce reflectionjustin1-8/+7
2022-02-08volume.balance: add delay during tight loopchrislu1-1/+1
fix https://github.com/chrislusf/seaweedfs/issues/2637
2021-12-10add lock messageschrislu1-1/+1
2021-09-13shell: do not need to lock to see volume -hChris Lu1-4/+4
2021-09-12change server address from string to a typeChris Lu1-1/+2
2021-08-10formatChris Lu1-1/+1
2021-08-10do not treat read only volumes differentlyChris Lu1-17/+1
2021-08-10minor: print disk typeChris Lu1-4/+4
2021-08-10print out balance ratioChris Lu1-0/+1
2021-08-10avoid fail on tail errorChris Lu1-1/+1
2021-08-01adjust textChris Lu1-1/+1
2021-08-01Revert "adds a test"Chris Lu1-1/+1
This reverts commit f690643b47654b3220b71bd3bfa839a2d1b365d3.
2021-08-01adds a testChris Lu1-1/+1
2021-08-01volume.balance: balance read only volumes firstChris Lu1-6/+6
2021-03-14shell: fix moving volume, volume server evacuateChris Lu1-3/+2
fix https://github.com/chrislusf/seaweedfs/issues/1534
2021-03-14revert previous changeChris Lu1-1/+1
revert 29e62aba00291351076d9489f4444af87b5e1d81
2021-03-14possible fix for volume balanceChris Lu1-1/+1
address https://github.com/chrislusf/seaweedfs/issues/1534
2021-02-22refactoringChris Lu1-12/+8
2021-02-16move to the empty nodes firstChris Lu1-0/+10