mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Updated S3 Bucket Quota (markdown)
parent
72584c15bc
commit
ba92acc96f
|
@ -1,4 +1,14 @@
|
|||
The bucket quota management is implemented by admin scripts in `weed shell`.
|
||||
# How it works
|
||||
|
||||
There are two aspects of quota management: "quota configuration" and "quota enforcement".
|
||||
|
||||
"Quota Configuration" is done in by admin scripts in `weed shell`, where you can set/remove/enable/disable bucket quota.
|
||||
|
||||
"Quota Enforcement" is actually also one admin script, which you can run it regularly by adding it to `master.toml`. It will check whether one bucket is over the limit or not, and configure the bucket to be read only or not.
|
||||
|
||||
The bucket read only attribute is checked when filer process write requests. If the bucket is read only, the creation and update requests on this bucket will be denied, except deletion.
|
||||
|
||||
# Quota Configuration and Enforcement
|
||||
|
||||
**1. View current bucket usage**
|
||||
|
||||
|
@ -22,6 +32,7 @@ updated quota for bucket b1
|
|||
b3 size:10280 file:3
|
||||
```
|
||||
|
||||
|
||||
**3. Enforce the quota, and found it should be set to read only.**
|
||||
|
||||
The filer configuration is changed to read only for this bucket.
|
||||
|
|
Loading…
Reference in a new issue