My cassandra cluster consists of three machine(A,B and C) and RF = 2
and Helenus client connect to cassandra such below way.
var hosts = ['A:9160', 'B:9170', 'C:9170'];
var helenus = require('helenus'), pool = new helenus.ConnectionPool({
hosts : hosts,
keyspace : 'test',
timeout : 3000,
hostPoolSize : 1
});
and get
pool.connect(function(err, keyspace){
keyspace.get('data', function(err, cf){
cf.get( key , {consistency : helenus.ConsistencyLevel.ONE }, function(err, row){
});
)};
});
When machine B or C is down, get method works well. But, machine 'A' is down, below message is comming.
"{ [HelenusNoAvailableNodesException: No Available Connections] name: 'HelenusNoAvailableNodesException' }
"
Is there any solution??
--