Why did serverstatus have a bad effect on mongod recording?

I have 1 mongos, 3 mongod and 3 config server. when I write some documents, sometimes the insertion speed of one of the mongods is very slow, and in the mongod log file "serverstatus was very slow." why?

version 2.0.4

+4
source share
1 answer

This message actually reflects the fact that your server was slow, and not that serverStatus was causing the problem. If the serverStatus command (which is periodically run by the MMS agents, for example) is slow, it logs this warning - this is more a symptom than a cause.

It is fairly lightweight as a team, so if it returns slowly enough to warn you about this, then the host is probably very busy at that time.

Typical load search locations (high inserts / updates, table scans, poorly indexed queries, disk problems, RAM / CPU errors, page errors, etc.).

+5
source

All Articles