mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Updated Cloud Tier (markdown)
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
|
||||
```
|
Loading…
Reference in a new issue