Skip to content

Commit

Permalink
Increase default pool limits
Browse files Browse the repository at this point in the history
Summary:
Increase them to keep in line with 2019
demand

Reviewed By: jkedgar

Differential Revision: D17879172

fbshipit-source-id: b1d177ec07142b46e88e168fc76bd9709bc1657b
  • Loading branch information
abal147 authored and facebook-github-bot committed Oct 16, 2019
1 parent 7f95598 commit b5859e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions squangle/mysql_client/AsyncConnectionPool.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class PoolKey;

// In order to keep always healthy connections avoid and avoid holding one
// connection for way too long, we have the options:
// Age: Connection will be closed when reaches a limit from the tie it
// Age: Connection will be closed when reaches a limit from the time it
// was opened. With this option the connections also get killed by idle time.
// IdleTime: Doesn't close a connection due the total time it has been opened,
// only closes a connection due being idle for a given amount of time.
Expand All @@ -72,7 +72,7 @@ class PoolOptions {
static constexpr Duration kDefaultMaxIdleTime = std::chrono::seconds(4);
static constexpr std::chrono::milliseconds kCleanUpTimeout =
std::chrono::milliseconds(300);
static const int kDefaultMaxOpenConn = 50;
static const int kDefaultMaxOpenConn = 100;

PoolOptions()
: per_key_limit_(kDefaultMaxOpenConn),
Expand Down

0 comments on commit b5859e2

Please sign in to comment.