add lock/unlock to example admin scripts

This commit is contained in:
Chris Lu 2020-04-23 18:41:48 -07:00
parent 913aa0f14e
commit 0c2248f83a

View file

@ -362,11 +362,13 @@ key = ""
[master.maintenance] [master.maintenance]
# periodically run these scripts are the same as running them from 'weed shell' # periodically run these scripts are the same as running them from 'weed shell'
scripts = """ scripts = """
lock
ec.encode -fullPercent=95 -quietFor=1h ec.encode -fullPercent=95 -quietFor=1h
ec.rebuild -force ec.rebuild -force
ec.balance -force ec.balance -force
volume.balance -force volume.balance -force
volume.fix.replication volume.fix.replication
unlock
""" """
sleep_minutes = 17 # sleep minutes between each script execution sleep_minutes = 17 # sleep minutes between each script execution