Can someone from the MongoDB team please explain on how to figure out a good value for this parameter so that we can reduce the ASIO / NETWORK errors in mongos logs.
Hi Darshan,
It’s been a while since you posted this question, have you found a solution yet ?
Could you elaborate what kind of ASIO/NETWORK
errors you’re seeing in the mongos
logs ?
What led you to believe this has something to do with the connection pool ?
ShardingTaskExecutorPoolMaxConnecting is the maximum number of simultaneous initiating connections (including pending connections in setup/refresh state) each TaskExecutor connection pool can have to a mongod instance. You can set this parameter to control the rate at which mongos adds connections to a mongod instance.
The default value is 2, and I’m not sure what do you mean by proper
value.
Regards,
Wan.