1

I have a 4 node Cassandra Cluster and have KairosDB running on all of those 4 nodes. The default value of kairosdb.datastore.cassandra.host_list is localhost. Should I be specifying all the Cassandra nodes here? If so, how can I be sure the load is balancing between all 4 nodes?

Drewness
  • 5,004
  • 4
  • 32
  • 50
user1191140
  • 1,559
  • 3
  • 18
  • 37

1 Answers1

4

From their code it seems they use Hector to talk to Cassandra. In that case the connection pooling of Cassandra and loadbalancing is done automatically by hector implementation and you don't have to worry about it. So, give it the listen address of all Cassandra nodes that you have for each kairosdb instance and you should be good to go.

Code: https://github.com/proofpoint/kairosdb/blob/master/src/main/java/org/kairosdb/datastore/cassandra/HectorConfiguration.java

Arya
  • 2,135
  • 15
  • 13
  • 1
    Also had to set kairosdb.datastore.cassandra.hector.loadBalancingPolicy in kairodb.properties. Else it was picking up the first node in the list. – user1191140 Mar 01 '14 at 16:13