I am using mongodb replicaiton with PHP on the production. I want to manage connection pool in mongodb. I have tried many options like MongoPool::size() and other options which were there in the PHP manaul. There are not working for me. I am stressing my system and i need to increase connection pool to handle the load.
Is there any way that i can manage number of connections in mongodb or by passing parameters in connection string. Currently i have connection timeout, socket timeout, wtimeout parameters in the mongodb connection string.
I have also found that connections are managed by PHP-Mongo drivers.
Also refered this for connection pooling http://docs.mongodb.org/manual/reference/connection-string/
Any idea, How to implement this in PHP?