Skip to content

No maxPoolSize setting? #874

Answered by hasezoey
gterras asked this question in Q&A
May 22, 2024 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

According to the mongodb documentation maxPoolSize is a driver setting not a server setting, so you need to set in mongodb / mongoose connection, not mongodb-memory-server.

see driver options

limit seems to be quite low (~15?)

The docs say that the default is 100


I'm running into ECONNRESET Error in my test, which according to mongo docs is a matter of increasing the maxPoolSize setting.

ECONNRESET can also have different causes which i would need more context of, like situation it happens in and server logs. A example being is that the mongodb server may not be running anymore (for whatever reason).

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@gterras
Comment options

@hasezoey
Comment options

@gterras
Comment options

@gterras
Comment options

Answer selected by gterras
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants