[FIX] Limit MinIO folder depth to 2 #2710
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Avoids creating tons of intermediate folders thus reduces inode pressure while still on disk splitting objects in 4.000 slots
So the MinIO retex gains complexity.
Actually we are encountering more complex than it seems issues with it.
After the OOM as everyting was stored in single GB big folder ( !!! ) that is impossible to ls, thus breaking MinIO inner work (...) which needs spreading accross several folders, we did run into a inode shortage issue (isize 512, inpode space percentage 5%, XFS). Our study found that each object stored resulted in ~5 inodes being used (including versionning, meta info part info, object entry, but also `/`` into the part.
Email being small blob intensive, we are running out of into before running out of disk space.
One generation with 4
/
and storing ~2 million objects consummes 2,250 M additional inodes with the folders prefix. Density of level 4 is terrible: 1 folder for one object. Density for level 3 is also not good: one level for ~8 underlying levels.We thus believe that 2 levels (whish already splits objects in slots of 4096 items thus can scale to hundreds of millions items per generation) is thus a much more default.
Please also find hereby recommended XFS settings / MinIO settings for a 4 node cluster: