@opal
Yes, however that should no longer be a problem.
I have had issues with the drive taking long to load before (it wasn't timing out though), which was caused by IO, because it was Misskey itself handling the files. That went away when I moved the files to Minio and drive started loading almost instantly.
Now it surprised me because the issue was sudden. One moment the drive is loading almost instantly then a few more files later it takes so long that Nginx times out. It seems that it's the DB query taking too long.
@opal
Oh yeah. Too many files per directory degrades performance. I thought you meant something else.
That's not the issue here though as Misskey just gives the links to the files when using object storage and doesn't care if they show up or not.
there is a reason that stuff like nginx caching allows you to configure number of subdirectory layers, it's because shoving a few thousand cache files into one flat directory structure does not scale at all on most filesystems