8
votes

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?

2
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
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

2 Answers

4
votes

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

2
votes

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.