Updated Cloud Tier (markdown)

Chris Lu 2021-11-01 17:30:50 -07:00
parent 9cc8cab77b
commit c3ef320413

@ -68,6 +68,20 @@ volume.tier.upload -dest=s3.name2 -collection=benchmark -volumeId=37
```
## Automated Tiering
In `master.toml` generated by `weed scaffold -config=master`, you can adjust the `master.maintenance` script section:
```
[master.maintenance]
# periodically run these scripts are the same as running them from 'weed shell'
scripts = """
lock
volume.tier.upload -dest s3 -fullPercent=95 -quietFor=1h
...
unlock
"""
```
Or you can run the `weed shell` periodically in some cron job:
```
echo "lock;volume.tier.upload -dest s3 -fullPercent=95 -quietFor=1h;unlock" | weed shell
```