mongodb not apporave more connections than 208
up vote
0
down vote
favorite
I want to load test mongodb.
the result of command db.serverStatus().connections
is
{
"current" : 208,
"available" : 50992,
"totalCreated" : 12643
}
but I cannot open more connections if current connections are 208. Can anyone explain me why there is 50k available connections but more than 208 are refused
I am using python module locust
to test and pymongo
for client.
this is errors. Simulated 1000 users.
There is 4% failures.
I try to write a script and do not use locust
but the same problem here.
mongodb pymongo load-testing locust
|
show 1 more comment
up vote
0
down vote
favorite
I want to load test mongodb.
the result of command db.serverStatus().connections
is
{
"current" : 208,
"available" : 50992,
"totalCreated" : 12643
}
but I cannot open more connections if current connections are 208. Can anyone explain me why there is 50k available connections but more than 208 are refused
I am using python module locust
to test and pymongo
for client.
this is errors. Simulated 1000 users.
There is 4% failures.
I try to write a script and do not use locust
but the same problem here.
mongodb pymongo load-testing locust
How do you test, and how they are refused?
– Alex Blex
Nov 21 at 12:32
I will update now
– Gor
Nov 21 at 12:34
There are too many moving parts between locust and mongodb. Especially without details of locust and mongo setup. IIRC pymongo connection pool is 100, so 208 can be 2x100 from 2 test runners + 8 internal connections between nodes.
– Alex Blex
Nov 21 at 13:01
Can I increase pymongo connection pool size ?
– Gor
Nov 21 at 14:07
also I run 100 threads and every thread creates MongoClient instance
– Gor
Nov 21 at 14:13
|
show 1 more comment
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I want to load test mongodb.
the result of command db.serverStatus().connections
is
{
"current" : 208,
"available" : 50992,
"totalCreated" : 12643
}
but I cannot open more connections if current connections are 208. Can anyone explain me why there is 50k available connections but more than 208 are refused
I am using python module locust
to test and pymongo
for client.
this is errors. Simulated 1000 users.
There is 4% failures.
I try to write a script and do not use locust
but the same problem here.
mongodb pymongo load-testing locust
I want to load test mongodb.
the result of command db.serverStatus().connections
is
{
"current" : 208,
"available" : 50992,
"totalCreated" : 12643
}
but I cannot open more connections if current connections are 208. Can anyone explain me why there is 50k available connections but more than 208 are refused
I am using python module locust
to test and pymongo
for client.
this is errors. Simulated 1000 users.
There is 4% failures.
I try to write a script and do not use locust
but the same problem here.
mongodb pymongo load-testing locust
mongodb pymongo load-testing locust
edited Nov 21 at 12:36
asked Nov 21 at 12:30
Gor
1,31911028
1,31911028
How do you test, and how they are refused?
– Alex Blex
Nov 21 at 12:32
I will update now
– Gor
Nov 21 at 12:34
There are too many moving parts between locust and mongodb. Especially without details of locust and mongo setup. IIRC pymongo connection pool is 100, so 208 can be 2x100 from 2 test runners + 8 internal connections between nodes.
– Alex Blex
Nov 21 at 13:01
Can I increase pymongo connection pool size ?
– Gor
Nov 21 at 14:07
also I run 100 threads and every thread creates MongoClient instance
– Gor
Nov 21 at 14:13
|
show 1 more comment
How do you test, and how they are refused?
– Alex Blex
Nov 21 at 12:32
I will update now
– Gor
Nov 21 at 12:34
There are too many moving parts between locust and mongodb. Especially without details of locust and mongo setup. IIRC pymongo connection pool is 100, so 208 can be 2x100 from 2 test runners + 8 internal connections between nodes.
– Alex Blex
Nov 21 at 13:01
Can I increase pymongo connection pool size ?
– Gor
Nov 21 at 14:07
also I run 100 threads and every thread creates MongoClient instance
– Gor
Nov 21 at 14:13
How do you test, and how they are refused?
– Alex Blex
Nov 21 at 12:32
How do you test, and how they are refused?
– Alex Blex
Nov 21 at 12:32
I will update now
– Gor
Nov 21 at 12:34
I will update now
– Gor
Nov 21 at 12:34
There are too many moving parts between locust and mongodb. Especially without details of locust and mongo setup. IIRC pymongo connection pool is 100, so 208 can be 2x100 from 2 test runners + 8 internal connections between nodes.
– Alex Blex
Nov 21 at 13:01
There are too many moving parts between locust and mongodb. Especially without details of locust and mongo setup. IIRC pymongo connection pool is 100, so 208 can be 2x100 from 2 test runners + 8 internal connections between nodes.
– Alex Blex
Nov 21 at 13:01
Can I increase pymongo connection pool size ?
– Gor
Nov 21 at 14:07
Can I increase pymongo connection pool size ?
– Gor
Nov 21 at 14:07
also I run 100 threads and every thread creates MongoClient instance
– Gor
Nov 21 at 14:13
also I run 100 threads and every thread creates MongoClient instance
– Gor
Nov 21 at 14:13
|
show 1 more comment
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53412079%2fmongodb-not-apporave-more-connections-than-208%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
How do you test, and how they are refused?
– Alex Blex
Nov 21 at 12:32
I will update now
– Gor
Nov 21 at 12:34
There are too many moving parts between locust and mongodb. Especially without details of locust and mongo setup. IIRC pymongo connection pool is 100, so 208 can be 2x100 from 2 test runners + 8 internal connections between nodes.
– Alex Blex
Nov 21 at 13:01
Can I increase pymongo connection pool size ?
– Gor
Nov 21 at 14:07
also I run 100 threads and every thread creates MongoClient instance
– Gor
Nov 21 at 14:13