.Net MongeDb 创建客户端 并配置连接池参数
MongoClientSettings settings = MongoClientSettings.FromConnectionString("ConnectionString");
// change some fields based on your needs
settings.WaitQueueTimeout = TimeSpan.FromMinutes(1);
settings.MinConnectionPoolSize = 100;
settings.MaxConnectionPoolSize = 500;
settings.MaxConnectionLifeTime = TimeSpan.FromSeconds(dbInfo.TimeOut);
var client = new MongoClient(settings);