#include <userver/storages/mongo/pool_config.hpp>
Mongo connection pool options.
Dynamic option MONGO_CONNECTION_POOL_SETTINGS
Definition at line 26 of file pool_config.hpp.
Public Member Functions | |
void | Validate (const std::string &pool_id) const |
Public Attributes | |
size_t | initial_size = kDefaultInitialSize |
Initial connection count. | |
size_t | max_size = kDefaultMaxSize |
Total connections limit. | |
size_t | idle_limit = kDefaultIdleLimit |
Idle connections limit. | |
size_t | connecting_limit = kDefaultConnectingLimit |
Establishing connections limit. | |
Static Public Attributes | |
static constexpr size_t | kDefaultInitialSize = 16 |
Default initial connection count. | |
static constexpr size_t | kDefaultMaxSize = 128 |
Default total connections limit. | |
static constexpr size_t | kDefaultIdleLimit = 64 |
Default idle connections limit. | |
static constexpr size_t | kDefaultConnectingLimit = 8 |
Default establishing connections limit. | |
void storages::mongo::PoolSettings::Validate | ( | const std::string & | pool_id | ) | const |
InvalidConfigException | if pool settings are invalid |
size_t storages::mongo::PoolSettings::connecting_limit = kDefaultConnectingLimit |
Establishing connections limit.
Definition at line 43 of file pool_config.hpp.
size_t storages::mongo::PoolSettings::idle_limit = kDefaultIdleLimit |
Idle connections limit.
Definition at line 41 of file pool_config.hpp.
size_t storages::mongo::PoolSettings::initial_size = kDefaultInitialSize |
Initial connection count.
Definition at line 37 of file pool_config.hpp.
|
staticconstexpr |
Default establishing connections limit.
Definition at line 34 of file pool_config.hpp.
|
staticconstexpr |
Default idle connections limit.
Definition at line 32 of file pool_config.hpp.
|
staticconstexpr |
Default initial connection count.
Definition at line 28 of file pool_config.hpp.
|
staticconstexpr |
Default total connections limit.
Definition at line 30 of file pool_config.hpp.
size_t storages::mongo::PoolSettings::max_size = kDefaultMaxSize |
Total connections limit.
Definition at line 39 of file pool_config.hpp.