How can I set maxIdleTimeMS by command line or mongo-shell?

Viewed 2996

I have deployed my PHP application (Just out of curiosity, we're using Laravel) and we're using MongoDB in the persistence layer. However , I've noticed a high connection number in connection pool. It strikes me that connections remain opened for many minutes before it be closed.
The maxIdleTimeMS parameter seems like what I looking for (even though I'm not sure...).

That said, I would like to know how could I to set the maxIdleTimeMS parameter through MongoDB Shell or command line (or even via configuration file). Is it possible?

Thanks in advance!

UPDATE

Please, see the important note on below comment from @jmikola

0 Answers
Related