From d34cf0d0469366c99e48885a9b6547c6854572a2 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 27 Mar 2026 01:29:05 -0700 Subject: [PATCH] adjust default timing --- weed/plugin/worker/admin_script_handler.go | 2 +- weed/plugin/worker/erasure_coding_handler.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,