Details
-
Improvement
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
Linux yq131 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
ext4 filesystem
-
Fully Compatible
-
v3.4, v3.2
-
Storage 2017-03-06
Description
I have about 29377 files (including datafile and nsfile), 13666 databases. The total size is about 1TB. The mongod started with parameters "smallfiles" and "noprealloc".
When I run the command listDatabases, it takes too long on calculating "sizeOnDisk" and determining the empty of database, more than a hour sometimes. But I just need a list of database names. An option to not display size or empty probably makes sense.
I found that mongod will receive the listDatabases command in the following cases:
1. Dump all databases use mongodump
2. A Member of replica set doing initialSync
3. Add a new shard to a cluster.
In these cases, listDatabases may cause mongod overload and can not do the normal queries.
Attachments
Issue Links
- is depended on by
-
SERVER-28924 Change databasesCloner to use the "nameOnly" version of listDatabases
-
- Closed
-
-
SERVER-28925 Use listDatabases({'nameOnly': true}) in the addShard implementation
-
- Closed
-
- is documented by
-
DOCS-10011 Need to document namesOnly option for listDatabases
-
- Closed
-
-
DOCS-10213 MongoDB 3.4 manual doesn't note `versionadded` for listDatabases' nameOnly option
-
- Closed
-
- is duplicated by
-
SERVER-24948 initial sync failed because listDatabases exceeded 30s socket (read) timeout
-
- Closed
-
-
SERVER-27666 listDatabases performance issue w/ replicasets & wiredTiger
-
- Closed
-
-
SERVER-21066 Investigate listDatabases option to return only dbnames and skip sizes
-
- Closed
-
- is related to
-
TOOLS-1653 use the new higher performance listDatabases() in mongodump, et. al.
-
- Closed
-
-
SERVER-6898 Allow all authenticated users to run listDatabases
-
- Closed
-
-
SERVER-21067 Investigate having the storage size of a given collection/index/database cached within the WT/KV api
-
- Closed
-
- related to
-
DOCS-11104 Comment on: "manual/reference/command/listDatabases"
- Closed
-
SERVER-11051 listDatabases command reports existence of databases that have never been written to.
-
- Closed
-