updated the way we instance keyspace, now it is much more efficent

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/social-networking-library@121706 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2015-12-09 11:13:58 +00:00
parent eda8fce8f6
commit 3fc0ad9310
2 changed files with 2 additions and 4 deletions

View File

@ -45,7 +45,6 @@
<dependency>
<groupId>com.netflix.astyanax</groupId>
<artifactId>astyanax</artifactId>
<version>1.56.26</version>
</dependency>
<dependency>
<groupId>org.gcube.resources.discovery</groupId>

View File

@ -27,8 +27,7 @@ import com.netflix.astyanax.thrift.ddl.ThriftColumnFamilyDefinitionImpl;
/**
* @author Massimiliano Assante ISTI-CNR
*
* @version 1.0 July 17th 2012
* @author Costantino Perciante ISTI-CNR
*
*/
public class CassandraClusterConnection {
@ -95,7 +94,7 @@ public class CassandraClusterConnection {
.withConnectionPoolConfiguration(
new ConnectionPoolConfigurationImpl("MyConnectionPool")
.setMaxConnsPerHost(3) // for each seed(host)
//.setSocketTimeout(1000) -> default: 11 seconds
.setSocketTimeout(2000) //-> default: 11 seconds
//.setConnectTimeout(1000) -> default: 2 seconds
.setSeeds(host)
)