Tech C**P
15 subscribers
161 photos
9 videos
59 files
304 links
مدرس و برنامه نویس پایتون و لینوکس @alirezastack
Download Telegram
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 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