diff --git a/weed/plugin/worker/admin_script_handler.go b/weed/plugin/worker/admin_script_handler.go index 8aee33a3c..9c2e4c310 100644 --- a/weed/plugin/worker/admin_script_handler.go +++ b/weed/plugin/worker/admin_script_handler.go @@ -22,7 +22,7 @@ const ( adminScriptJobType = "admin_script" maxAdminScriptOutputBytes = 16 * 1024 defaultAdminScriptRunMins = 17 - adminScriptDetectTickSecs = 60 + adminScriptDetectTickSecs = 17 * 60 ) const defaultAdminScript = `ec.balance -apply diff --git a/weed/plugin/worker/erasure_coding_handler.go b/weed/plugin/worker/erasure_coding_handler.go index b0566ede9..510638cc9 100644 --- a/weed/plugin/worker/erasure_coding_handler.go +++ b/weed/plugin/worker/erasure_coding_handler.go @@ -158,7 +158,7 @@ func (h *ErasureCodingHandler) Descriptor() *plugin_pb.JobTypeDescriptor { }, AdminRuntimeDefaults: &plugin_pb.AdminRuntimeDefaults{ Enabled: true, - DetectionIntervalSeconds: 60 * 5, + DetectionIntervalSeconds: 17 * 60, DetectionTimeoutSeconds: 300, MaxJobsPerDetection: 500, GlobalExecutionConcurrency: 16,