I am running mongodb version 4.2.9 (same issue was there in 4.2.1) as well.
When we are doing testing with sustained load on mongodb, suddenly latencies start spiking and instance goes in bad state. This is happening at ~5k read qps and 50 write qps (these are get by primay key queries so access pattern for sure is not an issue). The active data set for read qps is <1 gb. And the wired tiger cache size if more than 30gb. Same question is asked on mongodb forum as well but there are no answer yet.
Looking at PMM dasbhaord i can see that there is a huge spike in number of forked process just before cluster goes in degraded state.
a. Can someone please help me understand when,how mongodb forks a child process?
b. Can we limit the number of child process creation rate?
c. is there any doc around mongodb process management?
d. Is this fork cause or side effect of some other issue?
In our mongodb config we have set processManagement.fork: true if that matters.
Apparantly as par this question there is no way to limit the number of child process as well.