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?
Atlas reserves 10 connections per node. If you set your read preference to secondary, Atlas can read from the two secondary nodes for a combined 980 connection limit.
Check that you are using the correct username and password for your database user, and that you are connecting to the correct database deployment. Check that you are specifying the correct authSource database in your connection string.
In general, we recommend limiting collections to 10,000 per replica set. When users begin exceeding 10,000 collections, they typically see decreases in performance.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With