diff --git a/weed/plugin/worker/admin_script_handler.go b/weed/plugin/worker/admin_script_handler.go index 9c4717be3..9dfeee98b 100644 --- a/weed/plugin/worker/admin_script_handler.go +++ b/weed/plugin/worker/admin_script_handler.go @@ -25,9 +25,14 @@ const ( adminScriptDetectTickSecs = 60 ) -const defaultAdminScript = `volume.balance -apply +const defaultAdminScript = ` +ec.balance -apply +fs.log.purge -daysAgo=7 +volume.deleteEmpty -quietFor=24h -apply +volume.balance -apply volume.fix.replication -apply -volume.deleteEmpty -quietFor=24h -apply` +s3.clean.uploads -timeAgo=24h +` var adminScriptTokenRegex = regexp.MustCompile(`'.*?'|".*?"|\S+`)