add lock/unlock to example admin scripts
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user