8

Getting emails from Mongo Atlas that saying Connections % of configured limit has gone above 80.

Using M0 Sandbox tier which has 100 max connections.

Whether an upgrade to M2 tier (which has also 100 max connections) solve this?

Ashwanth Madhav
  • 1,084
  • 1
  • 9
  • 21
  • I resolved it by deleting all IP whitelist and wait for 5 minutes. We can monitor that, the connections are decreasing in mongo atlas cluster. At last, it became Zero. Works Added IP whitelist from anywhere to access. Its work fine. – Ashwanth Madhav Aug 05 '19 at 04:24
  • 1
    It seems that you have resolved the symptom once, but how do you prevent it from coming back? I am using it with serverless (Azure Functions) and the connections pile up easily and decrease slowly... – Dima G Apr 27 '20 at 08:51

2 Answers2

4

removing all IP address and waiting 5 minutes works also for me . seems like it kills all opened connections. Don't forget to allow your ip after that

see my cluster connections

there is an opened issue with mongoose. it might be the root cause https://github.com/Automattic/mongoose/issues/8059

CocodyRockStar
  • 230
  • 2
  • 8
3

I resolved it by deleting all IP whitelist and wait for 5 minutes.

We can monitor that, the connections are decreasing in mongo atlas cluster. At last, it became Zero.

Then added IP whitelist from anywhere to access(Not secure. Just to work. Or whitelist current IP and server Ip).

Its work fine.

Ashwanth Madhav
  • 1,084
  • 1
  • 9
  • 21
  • 1
    I was just looking around and came at your answer and, well I am not a mongodb atlas expert but IMO, if you're doing this in a prod environment, be really careful with with-listing IPs from anywhere, it could lead to a big security issue/door :/ best ! – Emixam23 Aug 09 '19 at 14:41