Commit a2d3c499 authored by Sonja Happ's avatar Sonja Happ

set number of cassandra IO threads per process in model.props (default is 10)

parent 8ecdd090
......@@ -155,6 +155,7 @@ db.user = postgres
db.pass = postgres
db.dbname = swarmgrid
cassandra.hosts = 137.226.248.96,137.226.248.86,137.226.248.89
cassandra.iothreads = 10
########################################
############## VILLAS ##################
......
......@@ -155,7 +155,8 @@ void ModelIO::init_db() {
MPI_Bcast(&simId, 1, MPI_INT, 0, MPI_COMM_WORLD);
d_props.result.dbconn->setSimId(simId);
d_props.result.dbconn->setCassandraConfig(props->getProperty("cassandra.hosts"),"swarmgrid", world_size);
int iothreads = repast::strToInt(props->getProperty("cassandra.iothreads"));
d_props.result.dbconn->setCassandraConfig(props->getProperty("cassandra.hosts"),"swarmgrid", iothreads);
d_props.result.dbconn->createCassandraSession();
if(rank == 0){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment