diff options
| author | chrislu <chris.lu@gmail.com> | 2021-12-20 13:34:57 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2021-12-20 13:34:57 -0800 |
| commit | 4b8dcff448153dfc18b7ab49a8959f50d3bfc25f (patch) | |
| tree | 632e40a94218e52c2dd24184bc23db0e677a5175 | |
| parent | b21a67bbe67ba479d09ae74206c00ced16272449 (diff) | |
| download | seaweedfs-4b8dcff448153dfc18b7ab49a8959f50d3bfc25f.tar.xz seaweedfs-4b8dcff448153dfc18b7ab49a8959f50d3bfc25f.zip | |
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.
| -rw-r--r-- | weed/server/master_server.go | 12 |
1 files changed, 1 insertions, 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) |
