I want to have persistent connection active by default on my Mongodb HTTPS server.
What is the right set of configuration to achieve it?
Example: max connection lifetime, max number of persistent connections…
Is there a chance to optimise these settings or at least see their values?
phpinfo() does not tell me anything.
It does not seem to be possible to configure the settings of the connections in that manner only to be able to set timeouts for certain connect actions: http://www.php.net/manual/en/mongoclient.construct.php
As for max number of persistent connections ( http://www.php.net/manual/en/mongo.connecting.pools.php ) the PHP MongoDB driver actually holds the number of connections it creates very stringently, as noted:
So obviously the amount of connections depends on the amount of type of connections you are using and how many PHP processes have been spun up, not some value in the configuration.