How do I manage the total number of connections with the datastax/php-driver
?
We're running into an issue with excessive TCP connections, and we suspect it's related to how this driver works.
We've moved off YACassandra
PDO driver onto this one. One of the biggest issues I'm discovering is the connection pool will connect to all servers within a cluster for each HTTP thread.
We have 4 boxes in our cluster. That's 4 open persistent connections, per Apache child. I suspect this is a culprit to our troubles.
Historically, we've used YACassandra PDO, which only used 1 connection per thread.
How do we optimize this? Is there anyway to stop datastax/php-drive
from doing cluster discovery?