Browse Source

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.
pull/2532/head
chrislu 3 years ago
parent
commit
4b8dcff448
  1. 12
      weed/server/master_server.go

12
weed/server/master_server.go

@ -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 = `
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) glog.V(0).Infof("adminScripts: %v", adminScripts)

Loading…
Cancel
Save