storj.io/minio@v0.0.0-20230509071714-0cbc90f649b1/docs/bucket/quota/README.md (about) 1 # Bucket Quota Configuration Quickstart Guide [](https://slack.min.io) [](https://hub.docker.com/r/minio/minio/) 2 3  4 5 Buckets can be configured to have one of two types of quota configuration - FIFO and Hard quota. 6 7 - `Hard` quota disallows writes to the bucket after configured quota limit is reached. 8 - `FIFO` quota automatically deletes oldest content until bucket usage falls within configured limit while permitting writes. 9 10 > NOTE: Bucket quotas are not supported under gateway or standalone single disk deployments. 11 12 ## Prerequisites 13 - Install MinIO - [MinIO Quickstart Guide](https://docs.min.io/docs/minio-quickstart-guide). 14 - [Use `mc` with MinIO Server](https://docs.min.io/docs/minio-client-quickstart-guide) 15 16 ## Set bucket quota configuration 17 18 ### Set a hard quota of 1GB for a bucket `mybucket` on MinIO object storage: 19 20 ```sh 21 $ mc admin bucket quota myminio/mybucket --hard 1gb 22 ``` 23 24 ### Set FIFO quota of 5GB for a bucket "mybucket" on MinIO to allow automatic deletion of older content to ensure bucket usage remains within 5GB 25 26 ```sh 27 $ mc admin bucket quota myminio/mybucket --fifo 5gb 28 ``` 29 30 ### Verify the quota configured on `mybucket` on MinIO 31 32 ```sh 33 $ mc admin bucket quota myminio/mybucket 34 ``` 35 36 ### Clear bucket quota configuration for `mybucket` on MinIO 37 38 ```sh 39 $ mc admin bucket quota myminio/mybucket --clear 40 ```