Answer the question
In order to leave comments, you need to log in
How to limit the number of MongoDB workers?
Actually, the mongod process is very parallel, which is usually good, but in my case it starts to eat all the memory and sometimes crashes from a heavy load. It is necessary to somehow limit the number of workers (or the thread pool, whatever it has) so that, say, it never creates more than 5 and puts the rest in a queue. Can't find a setting option.
And it turns out like this and very gluttonous:
I would like to moderate the ardor.
Answer the question
In order to leave comments, you need to log in
Are you running mongo on separate servers? If not, then the problem is unlikely to be solved, mongo relies on the fact that he can eat all the memory and not give it away.
Trololo. There is 1 process that generates a thread for each connection.
There is no such thing, at least in the documentation.
Maybe you have some jambs with the basic settings, tweak them and it will become a little easier, well, or optimize requests.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question