Hi
Our mongo server on the cloud has become very slow lately
Typically the serverStatus was very slow
message is printed when the server is being overwhelmed with incoming request, or it needs to perform a lot more work using an underprovisioned hardware.
Could you specify which cloud you have your MongoDB server on? Also, it will be helpful if you provide more information on how the mongod
server is provisioned (e.g. RAM & CPU, the MongoDB and the OS version, the topology — standalone, replica set, or sharded cluster) and what operation are you doing when this was printed in the logs.
Best regards
Kevin
Hi
Is the machine dedicated to just running a single mongod
, or are you running some other processes there as well? E.g., web server, application server, etc.?
From the MongoDB side, is there anything that are changed from the defaults, e.g. what is the output of db.serverCmdLineOpts()
in the mongo
shell and any config file content? What is your full MongoDB version (e.g. 3.6.4)?
In terms of the provisioned hardware, are you using SSD or a spinning disk?
About the operation, how exactly are you writing the data? Are you doing any parallel writes e.g. by using multiple threads, multiple apps, etc.?
There may be some relevant information in the output of mongostat
, mongotop
, and iostat
. What are the output of these programs show during the slowdown?
Best regards
Kevin