简体   繁体   中英

Correct value of kairosdb.datastore.cassandra.host_list

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM