-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.4.6
-
Component/s: WiredTiger
-
None
-
Environment:Ubuntu 16.04
When using a lot of DBs (few thousands) mongod process take a lot of time to boot (minutes) and takes a lot of system resources afterwards.
Until boot is complete (minutes) the DB doesn't accept client connections.
It open all storage files (one per every collection and per index in every DB) + consumes a lot of memory. For 2000 DBs with 10 collections and 5 indexes per collection, there will be 100000 open file handlers.
On our use-case, we keep the DBs but access them rarely, usually only few DBs are relevant at any given moment.
I would expect mongo to lazy load the DBs when first connection is made.
(and hopefully unload if no active connection for a while)
Assaf
- duplicates
-
SERVER-25025 Improve startup time when there are tens of thousands of collections/indexes on WiredTiger
- Closed