'Different MinIO disk cache configuration for each bucket
I got a challenge to setup a simple object storage server or cdn, especially for storing and loading (via API) any PNG, TXT, and TIFF files, the server have docker and kubernetes both running. I am new to MinIO but managed to install a fresh MinIO then create multiple buckets, setup their access policy and encryption. For disk caching i am able to apply one configuration for multiple bucket, but i cannot figure it out how to apply different configuration to each different bucket since in the console only showing singular configuration.
My objectives are like this:
- Bucket 1 - thematic data (PNG) - Expiry after 60 days
- Bucket 2 - topographic data (TIFF) - Expiry after 30 days
- Bucket 3 - metadata (TXT) - Expiry after 1 days
Already read the documentation but got no solution, any suggestion will be appreciated
Thank you
Solution 1:[1]
Cache configuration is part of a Server deployment. Within a server you cannot apply different configurations for multiple buckets.
Note: caching is meant for gateway deployments to act as a relatively close consumption zone, counter-acting latency for consumers.
If performance and caching requirements are really a must (your distribution is, for example over multiple regions) you can deploy an extra server that acts as a gateway. But you'd end-up with a gateway per configuration that you'd like and even then it's not per bucket.
Personally I would go for a design with multiple server instances if differentiating in caching is really important.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Michaƫl van der Haven |

