Cassandra\Cluster\Builder::withConnectionsPerHost PHP Method

withConnectionsPerHost() public method

Set the size of connection pools used by the driver. Pools are fixed when only $core is given, when a $max is specified as well, additional connections will be created automatically based on current load until the maximum number of connection has been reached. When request load goes down, extra connections are automatically cleaned up until only the core number of connections is left.
public withConnectionsPerHost ( integer $core = 1, integer $max = 2 ) : Builder
$core integer minimum connections to keep open to any given host
$max integer maximum connections to keep open to any given host
return Builder self
    public function withConnectionsPerHost($core = 1, $max = 2)
    {
    }