From 4b8dcff448153dfc18b7ab49a8959f50d3bfc25f Mon Sep 17 00:00:00 2001 From: chrislu Date: Mon, 20 Dec 2021 13:34:57 -0800 Subject: [PATCH] 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. --- weed/server/master_server.go | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/weed/server/master_server.go b/weed/server/master_server.go index f897ffe7d..cbc0aa337 100644 --- a/weed/server/master_server.go +++ b/weed/server/master_server.go @@ -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)