Per dupuisla, we need to reduce the number of file handles that we used to sort large amounts of data to avoid file handle exhaustion on various platforms.
See SERVER-14572:
I spent some time on the sorter.cpp and it is clear that you need to review this code. The FileIterator consume far too much file descriptors. There is no upper limit and increase the number of handle is just a poor fix.
Why not merge all this in one file and use "seek" to move between the different block instead of creating thousand of files? In my case, I have something like 2000 of these temp files created, so 2048 will be on the low side.
- has to be done before
-
SERVER-37293 Refactor Sorter so that DocumentSourceGroup can use it instead of SortedFileWriter implementation
- Closed
- is duplicated by
-
SERVER-39597 Reduce file handle usage in File based Sorter
- Closed
-
SERVER-31652 Initialization synchronization of windows 2012 R2 mongodb replica set errno:24 Too many open files
- Closed
- is related to
-
SERVER-38764 External sorter should use 64-bit integers for file offsets
- Closed
-
SERVER-24020 Increase open file limit on Windows
- Closed
- related to
-
SERVER-16991 errno:24 Too many open files on Windows
- Closed