Browse Source

add lock/unlock to example admin scripts

pull/1293/head
Chris Lu 5 years ago
parent
commit
0c2248f83a
  1. 2
      weed/command/scaffold.go

2
weed/command/scaffold.go

@ -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

Loading…
Cancel
Save