So, I have deployed my PHP application (using Laravel). However , I've noticed a high connection number in connection pool.
I would like to know how could I to set the maxIdleTimeMS parameter through MongoDB Shell or command line (or even via configuration file)?
Thanks in advance!
UPDATE
Please, see the important note on below comment from @jmikola
ext-mongo
) nor new (ext-mongodb
) PHP driver uses a connection pool, so themaxIdleTimeMS
option is ignored. libmongoc, which is used by the new driver and happens to support connection pools for multi-threaded applications (PHP does not use that mode) also does not support themaxIdleTimeMS
option at all (see: CDRIVER-278).