volume.balance: add delay during tight loop

fix https://github.com/chrislusf/seaweedfs/issues/2637
This commit is contained in:
chrislu
2022-02-08 00:53:55 -08:00
parent 9860405974
commit f18803424a
16 changed files with 22 additions and 17 deletions

View File

@@ -76,7 +76,7 @@ func (c *commandVolumeBalance) Do(args []string, commandEnv *CommandEnv, writer
}
// collect topology information
topologyInfo, volumeSizeLimitMb, err := collectTopologyInfo(commandEnv)
topologyInfo, volumeSizeLimitMb, err := collectTopologyInfo(commandEnv, 15*time.Second)
if err != nil {
return err
}