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:
chrislu 2021-12-20 13:34:57 -08:00
parent b21a67bbe6
commit 4b8dcff448

View file

@ -213,17 +213,7 @@ func (ms *MasterServer) startAdminScripts() {
v := util.GetViper() v := util.GetViper()
adminScripts := v.GetString("master.maintenance.scripts") adminScripts := v.GetString("master.maintenance.scripts")
if adminScripts == "" { if adminScripts == "" {
adminScripts = ` return
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
`
} }
glog.V(0).Infof("adminScripts: %v", adminScripts) glog.V(0).Infof("adminScripts: %v", adminScripts)