I ran some load tests on my Azure Functions, which talk to a MongoDb dedicated M10 cluster. I have the cluster set to autoscale.
After trying to run 1000 concurrent users reading and writing to the database, I quickly started getting WaitForQueueTimeout exceptions. I fixed this by increasing the settings.MaxConnecting and settings.MaxConnectionPoolSize values on the driver settings.
But now what happens when my game has 5000, 10000, 1 million users? How am I supposed to scale my game confidently when the driver settings are imposing limitations on my game’s ability to scale?
I want my infrastructure (Azure Functions and MongoDb Cluster) to set the limits, not some arbitrary value on the driver settings.
Please advise which settings I should use on the driver for this case.