Update License and added note about bucket format

Lutchy Horace 2025-04-02 08:52:52 -04:00
parent 4d44f96e0d
commit 4ef76acf19

@ -2,6 +2,8 @@
This script monitors and enforces user-based storage quotas on a MinIO object storage instance. It periodically aggregates disk usage per user, logs warnings for overages, and sets a Redis key when a user exceeds their quota. This script monitors and enforces user-based storage quotas on a MinIO object storage instance. It periodically aggregates disk usage per user, logs warnings for overages, and sets a Redis key when a user exceeds their quota.
**Important:** This script assumes that MinIO buckets are named in the format `username-bucketname`, where `username` is the user associated with the bucket.
## Features ## Features
- Fetches MinIO buckets and groups them by user. - Fetches MinIO buckets and groups them by user.
- Calculates total storage usage for each user. - Calculates total storage usage for each user.
@ -62,4 +64,4 @@ Other services (e.g., Nginx or an API gateway) can check Redis for quota exceeda
The script handles `SIGINT` and `SIGTERM` signals to allow a clean exit. The script handles `SIGINT` and `SIGTERM` signals to allow a clean exit.
## License ## License
This script is provided as-is under an open-source license. This script is provided under the **Creative Commons Attribution-NonCommercial 4.0 International** license.