Buckets can be configured to have one of two types of quota configuration - FIFO and Hard quota.
Hardquota disallows writes to the bucket after configured quota limit is reached.FIFOquota automatically deletes oldest content until bucket usage falls within configured limit while permitting writes.
NOTE: Bucket quotas are not supported under gateway or standalone single disk deployments.
- Install MinIO - MinIO Quickstart Guide.
- Use
mcwith MinIO Server
$ mc admin bucket quota myminio/mybucket --hard 1gbSet FIFO quota of 5GB for a bucket "mybucket" on MinIO to allow automatic deletion of older content to ensure bucket usage remains within 5GB
$ mc admin bucket quota myminio/mybucket --fifo 5gb$ mc admin bucket quota myminio/mybucket$ mc admin bucket quota myminio/mybucket --clear