Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

add lock/unlock to example admin scripts

Chris Lu0c2248f83a49
diff --git a/weed/command/scaffold.go b/weed/command/scaffold.go
index c7e6e6ec06..b199f2d2de 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