R
R
romaro2021-11-22 22:31:24
Data storage
romaro, 2021-11-22 22:31:24

How to manage buckets in Minio?

When saving a file in minio, you need to specify a bucket. At first, I was going to register a default bucket in the project config and drop all the uploaded pictures there. However, from the point of view of the FS, a bucket is just a directory into which you would not want to dump tens of thousands of files.

What strategy do you use to manage buckets in
Minio? I was thinking of writing a small module that, before each save of a file, would request a list of all buckets that are tied to this project, look at the number of files and choose the bucket with the smallest number of files to save, but it seems that this is not an appropriate API method.

Maybe there is a ready-made module for solving this problem, or just a more elegant solution?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question