Hello,Detailed information can be found here about pooling options and newConnectionThreshold.Your description of the behaviour looks a bit incomplete, as stated in the documentation : a new connection is created " if all but the last connection are full, and the last connection is above this threshold.". So before creating a new connection, the driver checks if it is possible to send the request on another connection not full (using maxRequestsPerConnection).Are you sure all connections are full in your case ?
On Thursday, July 30, 2015 at 1:46:00 PM UTC+1, folex wrote:I want to understand how PoolingOptions::ConnectionsPerHost and PoolingOptions::NewConnectionThreshold works.I expect them to add new connection when NewConnectionThreshold is reached, until MaxConnectionsPerHost reached, but looks like number of connections stays at coreConnectionsPerHost.I monitor number of connections viawatch -d -n0 "netstat -atnp | awk 'NR <= 2 || /9042/'"on cassandra side.Are my expectations correct? If not, is there anything except source code where behaviour is specified?If there is no doc/spec about that, where exactly (at least filename) should I look in source code? I've tried, but was unable to find queue implementation.Here is example scala project.Thanks in advance.
To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-us...@lists.datastax.com.
--
Olivier Michallat
Driver & tools engineer, DataStax
To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-us...@lists.datastax.com.