Mongo primary stopped accepting connections - No election happened

Hi @Debalina_Saha and welcome to the MongoDB community forum!!

The error message that you are facing could occur due to couple of reason and hence there could me multiple resolutions to the same error.

Primarily, the issue could be resolved by increasing the connection pooling size as mentioned by user on the community post.

Also, please upgrade to the latest 4.4.x version available(4.4.19) for bug fixes and new features introduced.

Further, the documentation to add maxpool size in the connection string, could also be a good start.

Also share whole output of below from all shards, including config server replica set

  1. sh.status()
  2. rs.status()
  3. rs.comf()

Let us know if you have any further questions.

Regards
Aasawari

1 Like