Replication lag, connection pool status

Hi,

1)How to get replication Lag in free mongodb cluster ?

  1. I did not use factory method when I was testing mongodb.
    I just used pymongo client and I observed at any point of time there are minimum of 300 connections open. and if I start my app it kept increasing like below.
    MongoDB Enterprise atlas-zbazst-shard-0:PRIMARY> db.serverStatus().connections
    { “current” : 448, “available” : 52, “totalCreated” : NumberLong(4357) }
    MongoDB Enterprise atlas-zbazst-shard-0:PRIMARY> db.serverStatus().connections
    { “current” : 302, “available” : 198, “totalCreated” : NumberLong(5792) }
    MongoDB Enterprise atlas-zbazst-shard-0:PRIMARY> db.serverStatus().connections
    { “current” : 303, “available” : 197, “totalCreated” : NumberLong(5800) }

Could you point me in right direction to implement above 2 points?
Replication lag
Connection pool optimization.

Hi @Hari_Prakash,

I would recommend you to ask your question in our community forum.