mongod is taking several hours due to the number of file pointers being opened.
I have approx 133k
.wt files on disk and on my small test server the startup process seems to manage about 5 per second. (~7 hours). Even in a test environment this is completely unworkable.
I’m aware that under normal operation idle pointers are closed. I can verify that my live servers have between 5k-10k files open at once under normal load. This fine, but the startup time is a big problem.
Am I doing something wrong?
Is there any way I can speed this up to a sane boot time?
Even just for testing or data crunching a backup, is there a way I can skip these initial file openings?
MongoDB 4.0.9 on CentOS 7.
Disk is formatted as XFS.