workflow-core
workflow-core copied to clipboard
Load test throws Connection errors with MongoDB
Describe the bug
I tried to load test workflow core with a simple hello world program with 5000 requests and 5 pods.

To Reproduce load test workflow core with a simple hello world program with 5000 requests and 5 pods. Used RabbitMQ, Redis, MongoDB
Expected behavior Should not have thrown errors (It was 20% errors and throughput went from 200/sec to 13/sec after 1300 requests.
Additional context
Error: Thread pool starvation
What I Tried: I created a singleton class of MongoDBClient and sent it as a param in UseMongoDB().

Am I missing something here? It seems to be working great initially but stops with thread starvation error.