I am using hector 1.05 client with spring integration. I am able to connect to the cassandra cluster and able to pool the connections. But in spring configuration i am specifying one node IP and PORT to connect to the cluster.
My Spring config is:
<bean id="cassandraHostConfigurator" class="me.prettyprint.cassandra.service.CassandraHostConfigurator" scope="singleton">
<property name="hosts" value="<b>192.168.21.1:9160" />
<property name="maxActive" value="5" />
<property name="runAutoDiscoveryAtStartup" value="true" />
<property name="cassandraThriftSocketTimeout" value="25000" />
<property name="retryDownedHosts" value="true" />
<property name="autoDiscoverHosts" value="true" />
But in this case if the node which I am using to connect to cluster (192.168.21.1) goes down then my application will be down. But the main feature of cassandra is Fail safe which we are not achieving here. Is their any way to specify all the hosts spring config file so that even if one node goes down in the cluster, the app which uses this cluster will not be down. I tried searched some blogs but no luck.