public int getMaxConnPerHost ( int numHosts ) { int maxConns = config . getIntegerProperty ( CoreConfig . MAX_CASSANDRA_CONNECTIONS ) ; return maxConns / numHosts + ( maxConns % numHosts == 0 ? 0 : 1 ) ; }
Calculates the number of max connections per Cassandra hosts