By default Pelops will have 20 connections per node-
I was thinking to modify that to 40 connections per node. So how can I do that in Pelops? Currently, I am creating pool like this-
private void createPool() {
Pelops.addPool(getPoolName(), getCluster(), getKeyspace());
}
/**
* Gets the cluster information
*
* @return
*/
private Cluster getCluster() {
Config casconf = new Config(ModelConstants.CASSANDRA_PORT, true, 0);
Cluster cluster= new Cluster(nodes, casconf, ModelConstants.NODE_DISCOVERY);
return cluster;
}
/**
* Get the keyspace name
*
* @return
*/
public String getKeyspace() {
return keyspace;
}
/**
* Get the pool name
*
* @return
*/
public String getPoolName() {
return poolName;
}
Can anyone provide an example for that? Thanks for the help.