From 0c2248f83a49f6b95d290930d64e22edd75b0290 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 23 Apr 2020 18:41:48 -0700 Subject: [PATCH] add lock/unlock to example admin scripts --- weed/command/scaffold.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weed/command/scaffold.go b/weed/command/scaffold.go index c7e6e6ec0..b199f2d2d 100644 --- a/weed/command/scaffold.go +++ b/weed/command/scaffold.go @@ -362,11 +362,13 @@ key = "" [master.maintenance] # periodically run these scripts are the same as running them from 'weed shell' scripts = """ + lock ec.encode -fullPercent=95 -quietFor=1h ec.rebuild -force ec.balance -force volume.balance -force volume.fix.replication + unlock """ sleep_minutes = 17 # sleep minutes between each script execution