#include <userver/storages/mongo/pool_config.hpp>
Mongo connection pool options.
Dynamic option MONGO_CONNECTION_POOL_SETTINGS
Definition at line 27 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 44 of file pool_config.hpp.
size_t storages::mongo::PoolSettings::idle_limit = kDefaultIdleLimit |
Idle connections limit.
Definition at line 42 of file pool_config.hpp.
size_t storages::mongo::PoolSettings::initial_size = kDefaultInitialSize |
Initial connection count.
Definition at line 38 of file pool_config.hpp.
|
staticconstexpr |
Default establishing connections limit.
Definition at line 35 of file pool_config.hpp.
|
staticconstexpr |
Default idle connections limit.
Definition at line 33 of file pool_config.hpp.
|
staticconstexpr |
Default initial connection count.
Definition at line 29 of file pool_config.hpp.
|
staticconstexpr |
Default total connections limit.
Definition at line 31 of file pool_config.hpp.
size_t storages::mongo::PoolSettings::max_size = kDefaultMaxSize |
Total connections limit.
Definition at line 40 of file pool_config.hpp.