minio/docs/bucket/quota
Harshavardhana 6e0575a53d
Revert "Disable crawler in FS/NAS gateway mode (#9695)" (#9702)
This reverts commit eba423bb9d.

Additionally also address the FS crawler to properly
calculate the sizes for encrypted/compressed content.
2020-05-25 11:32:53 -07:00
..
bucketquota.png Add docs for bucket quota feature (#9503) 2020-05-16 19:27:33 -07:00
README.md Revert "Disable crawler in FS/NAS gateway mode (#9695)" (#9702) 2020-05-25 11:32:53 -07:00

Bucket Quota Configuration Quickstart Guide Slack Docker Pulls

quota

Buckets can be configured to have one of two types of quota configuration - FIFO and Hard quota.

  • Hard quota disallows writes to the bucket after configured quota limit is reached.
  • FIFO quota automatically deletes oldest content until bucket usage falls within configured limit while permitting writes.

NOTE: Bucket quotas are not supported under Gateway deployments.

1. Prerequisites

2. Set bucket quota configuration

  1. Set a hard quota of 1GB for a bucket mybucket on MinIO object storage:
$ mc admin bucket quota myminio/mybucket --hard 1gb
  1. 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
$ mc admin bucket quota myminio/mybucket --fifo 5gb
  1. Verify the quota configured on mybucket on MinIO
$ mc admin bucket quota myminio/mybucket
  1. Clear bucket quota configuration for mybucket on MinIO
$ mc admin bucket quota myminio/mybucket --clear