0

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

2
  • On a tangential note, neither the old (ext-mongo) nor new (ext-mongodb) PHP driver uses a connection pool, so the maxIdleTimeMS 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 the maxIdleTimeMS option at all (see: CDRIVER-278).
    – jmikola
    Commented Aug 15, 2016 at 7:08
  • @jmikola Thank you so much for this useful notes. I didn't know that. As you are the main maintainer of PHP Mongodb Client that info it's so helpful. Thanks! Commented Aug 15, 2016 at 13:35

1 Answer 1

2

maxIdleTimeMS is applicable to MongoDB drivers and is managed on client side. It has nothing to do with MongoDB server so can't be set inside shell

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.