I am running a MongoDb atlas M20 instance which should have a maximum of 1500 connections in its pool. It has 1 primary and two secondaries. If I look at the server stats I can see the connections are maxing out at 160 as you can see in the diagram below. If I check the logs I see the following errors:
Timed out waiting for a connection and The connection pool is in paused state for server
I have set the connection string to include:
mongodb+srv://bb-live-user:@myserver.mongodb.net/Live?retryWrites=true&w=majority&connect=replicaSet&maxPoolSize=1000
How can I increase the number of connections available and reduce the number of errors?
