In mongoDB you can check total available connections and the current connections to see if you have met the maximum available connections.
If there are numerous concurrent application requests, the database may have trouble keeping up with demand. If this is the case, then you will need to increase the capacity of your deployment.
For
For
#mongodb #serverStatus #connections
If there are numerous concurrent application requests, the database may have trouble keeping up with demand. If this is the case, then you will need to increase the capacity of your deployment.
For
read-heavy
applications, increase the size of your replica set
and distribute read operations to secondary members.For
write-heavy
applications, deploy sharding and add one or more shards
to a sharded cluster to distribute load among mongod instances.[test]> db.serverStatus().connections
{ "current" : 636, "available" : 50564, "totalCreated" : 1428309 }
#mongodb #serverStatus #connections