-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 4.0.8
-
Component/s: None
-
None
-
ALL
-
Storage Engines 2019-07-01
-
3
Since upgrading to mongo 4.0.8 from 3.4.6 our mongodumps have become extremely slow.
mongodump --archive=${DIR}.gz \
-h ${MONGO_REPL_SET_NAME}/${MONGO_SET} \
-u ${MONGO_USER} \
-p ${MONGO_PWD} \
--gzip \
--readPreference secondaryPreferred \
--ssl \
--sslCAFile mongodb-ca.crt \
--authenticationDatabase admin \
--${DB_OR_OPLOG} \
--forceTableScan
is the command we run for backups. Since the upgrade we are seeing about 10x slower backups.
Tried moving to a new machine with more memory and didn't see any speed improvement. CPU has 1 core at 100% while the rest of the cores have little to no activity. iostat doesn't show disk to be anywhere near saturated. We have tried running mongodump with the 3.6 and 4.0 cli too without any improvement.