diff options
author | Jonathan Reams <jbreams@mongodb.com> | 2018-06-22 15:15:12 -0400 |
---|---|---|
committer | Jonathan Reams <jbreams@mongodb.com> | 2018-08-16 16:45:00 -0400 |
commit | 1a643ba65b070c167cdfdd5056c7d2ac79dd5371 (patch) | |
tree | b284d5df88bfa8cd5d499e83de319ddd7055f00a /src/mongo/db/server_options.h | |
parent | 611460d96bf33a7654581ca23c4daad974b0ce45 (diff) | |
download | mongo-1a643ba65b070c167cdfdd5056c7d2ac79dd5371.tar.gz |
SERVER-34986 Allow connections to override maxConns based on CIDR range
Diffstat (limited to 'src/mongo/db/server_options.h')
-rw-r--r-- | src/mongo/db/server_options.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/server_options.h b/src/mongo/db/server_options.h index 25f7a7ccc42..1a3f3a96c3e 100644 --- a/src/mongo/db/server_options.h +++ b/src/mongo/db/server_options.h @@ -30,6 +30,8 @@ #include "mongo/db/jsobj.h" #include "mongo/platform/atomic_word.h" #include "mongo/platform/process_id.h" +#include "mongo/stdx/variant.h" +#include "mongo/util/net/cidr.h" namespace mongo { @@ -79,6 +81,8 @@ struct ServerGlobalParams { std::string serviceExecutor; size_t maxConns = DEFAULT_MAX_CONN; // Maximum number of simultaneous open connections. + std::vector<stdx::variant<CIDR, std::string>> maxConnsOverride; + int reservedAdminThreads = 0; int unixSocketPermissions = DEFAULT_UNIX_PERMS; // permissions for the UNIX domain socket |