diff options
author | Jason Carey <jcarey@argv.me> | 2016-11-07 15:39:49 -0500 |
---|---|---|
committer | Matt Cotter <matt.cotter@mongodb.com> | 2016-11-14 17:16:22 -0500 |
commit | 54c96a778a051ebe0d1471475039205009908327 (patch) | |
tree | ab3fea49cd107f8b44d19ce3d3e3d40162e55c57 /src/mongo/executor/connection_pool.cpp | |
parent | be3535a26e9c0d09ccf3ec5de0fd26ac48a3a6ff (diff) | |
download | mongo-54c96a778a051ebe0d1471475039205009908327.tar.gz |
SERVER-25027 Configurable connpool in mongos
Export server parameters for sharding connection pool
(cherry picked from commit b6c29702d8dcadb6c1ee90a876fac4117e0ca062)
Diffstat (limited to 'src/mongo/executor/connection_pool.cpp')
-rw-r--r-- | src/mongo/executor/connection_pool.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/executor/connection_pool.cpp b/src/mongo/executor/connection_pool.cpp index 7b0e206469f..5f1b194dded 100644 --- a/src/mongo/executor/connection_pool.cpp +++ b/src/mongo/executor/connection_pool.cpp @@ -166,9 +166,11 @@ private: State _state; }; -Milliseconds const ConnectionPool::kDefaultRefreshTimeout = Seconds(20); -Milliseconds const ConnectionPool::kDefaultRefreshRequirement = Seconds(60); -Milliseconds const ConnectionPool::kDefaultHostTimeout = Minutes(5); +constexpr Milliseconds ConnectionPool::kDefaultHostTimeout; +size_t const ConnectionPool::kDefaultMaxConns = std::numeric_limits<size_t>::max(); +size_t const ConnectionPool::kDefaultMinConns = 1; +constexpr Milliseconds ConnectionPool::kDefaultRefreshRequirement; +constexpr Milliseconds ConnectionPool::kDefaultRefreshTimeout; const Status ConnectionPool::kConnectionStateUnknown = Status(ErrorCodes::InternalError, "Connection is in an unknown state"); |