mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
reverting default admin scripts
fix https://github.com/chrislusf/seaweedfs/issues/2525 this new default value was introduced in 2.80 this affects production environments, e.g., EC is not desired, volume balancing is not preferred, etc.
This commit is contained in:
parent
b21a67bbe6
commit
4b8dcff448
|
@ -213,17 +213,7 @@ func (ms *MasterServer) startAdminScripts() {
|
|||
v := util.GetViper()
|
||||
adminScripts := v.GetString("master.maintenance.scripts")
|
||||
if adminScripts == "" {
|
||||
adminScripts = `
|
||||
lock
|
||||
ec.encode -fullPercent=95 -quietFor=1h
|
||||
ec.rebuild -force
|
||||
ec.balance -force
|
||||
volume.deleteEmpty -quietFor=24h -force
|
||||
volume.balance -force
|
||||
volume.fix.replication
|
||||
s3.clean.uploads -timeAgo=24h
|
||||
unlock
|
||||
`
|
||||
return
|
||||
}
|
||||
glog.V(0).Infof("adminScripts: %v", adminScripts)
|
||||
|
||||
|
|
Loading…
Reference in a new issue