mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-23 18:49:17 +08:00
[master] Revert back automatic volume grow in case of compensate for crowded volumes (#6267)
brought back the Automatic Volume Grow to compensate for crowded volumes
This commit is contained in:
parent
a143c888e5
commit
7fa4e5c2a1
@ -71,6 +71,9 @@ func (ms *MasterServer) ProcessGrowRequest() {
|
||||
case mustGrow > 0:
|
||||
vgr.WritableVolumeCount = uint32(mustGrow)
|
||||
_, err = ms.VolumeGrow(ctx, vgr)
|
||||
case lastGrowCount > 0 && writable < int(lastGrowCount*2) && float64(crowded+volumeGrowStepCount) > float64(writable)*topology.VolumeGrowStrategy.Threshold:
|
||||
vgr.WritableVolumeCount = volumeGrowStepCount
|
||||
_, err = ms.VolumeGrow(ctx, vgr)
|
||||
default:
|
||||
for _, dc := range dcs {
|
||||
if vl.ShouldGrowVolumesByDataNode("DataCenter", dc) {
|
||||
|
Loading…
Reference in New Issue
Block a user