MongoDB Atlas/MongoDB c# driver 2.5 multiple connections issue

54 views
Skip to first unread message

Andrew

unread,
Jan 29, 2018, 4:25:44 PM1/29/18
to mongodb-user
Hi, im using MondoDB Atlas with C# mongodb driver 2.5 a few days ago I got stuck on the issue:

On mongoDb atlas dashboard i see that there is 2-4 connections to db per one client,
seems like driver somehow ignoring singleton implementation of connection class and create new connection for some reason.

When im testing localy i can see just 2 connections per one client and can not increase it anyhow:
https://www.screencast.com/t/4XNYt6aQdi

but on server i can see up to 4 connections per client:
https://www.screencast.com/t/AlAYYTVx

On atlas i have cluster that consists of 3 shards, one of them primary and i can see 4 connections in stats.

Is there any ideas why it could happens?

Wan Bachtiar

unread,
Jan 31, 2018, 1:03:06 AM1/31/18
to mongodb-user

Is there any ideas why it could happens?

Hi Andrew,

The following sources contribute to the number of logged connections shown in MongoDB Atlas:

  1. Application clients connecting to the cluster. i.e. your C# client application.
  2. Connections established between nodes for internal operations and communications.
  3. MongoDB Atlas administrative agents (backup, monitoring, and automation) connections which perform various housekeeping and reporting tasks.

If you are concerned about the number of connections affecting your MongoDB Atlas performance, please open a private ticket via MongoDB Cloud Support.

Regards,
Wan.

Reply all
Reply to author
Forward
0 new messages