minio / mc

Unix like utilities for object store
https://min.io/download
GNU Affero General Public License v3.0
2.88k stars 550 forks source link

Deprecate `mc quota` and subcommands #5014

Open feorlen opened 3 months ago

feorlen commented 3 months ago

Bucket quotas, managed with mc quota and subcommands, don't work like the common understanding of the concept of a quota. Since they rely on the object scanner to identify when a bucket is over quota, they cannot be strictly enforced in the way "hard quota" suggests.

The bucket could go over the configured size between scanner passes and mc quota does not have a mechanism to resolve an overage. This feature was intended as a failsafe against something running amok, not a meaningful tool for managing bucket size.

Per @harshavardhana this should be deprecated. It already is in the web docs. In the future, similar functionality will be available as part of Enterprise Catalog.

Related discussions at: https://github.com/minio/mc/pull/5011 https://github.com/minio/mc/pull/5012 https://github.com/minio/docs/pull/1294

klauspost commented 3 months ago

This is why you can't have nice things.

art-b-d commented 3 months ago

We has a MinIO Enterprise (old licence, nor lite or plus) and use "mc quota" in a script/cron to set a "default" quota in every bucket that our users create. We know that isn't a hard quota, but I need it to "force" our users tell us the grouth expectation.

For us, a high quota is better than unlimited quota.