Relationship between Poolsize and Max Connections in Atlas Mongodb

Hi, right now I ´m using in my project a m-30 cluster. The specs says that this cluster have 3000 max connections. However, I´m using Mongoose driver with a Node.js App, and the poolsize is 5. I want to know if there is a relation between this two concepts.
Thanks in advance!

Hi @Roberto_Gutierrez,

Welcome to MongoDB community.

There is a dependency between the 2 concepts. The Atlas limitations is the total connections the deployment can accept.

If your client application has a max pool size of 5 it means to reach 3000 you need 600 client/app instances to exhaust connections. (Little less as each driver holds a monitoring thread to the Atlas members).

Hope this helps.