我已经开始使用我正在使用的项目Cassandra database
。两个集群,每个集群都有12个节点 - Cassandra数据库
我们的生产DBA的设置two cluster
和每个群集将有12 nodes
。
我将使用Pelops client
从Cassandra数据库读取数据。现在我正在考虑使用Pelops client
创建Cluster
类的最佳方法,比如在创建群集时应该将多少个节点添加到Pelops
?
我的理解是使用pelops client
和24 nodes
创建集群,因为我将有两个集群,每个集群都有12个节点?这是正确的方法?
如果不是,那么我们如何决定在使用Pelops客户端创建集群时应该添加哪些节点(来自每个集群)?
String[] nodes = what nodes I should use from two clusters? And how many nodes I should add?;
int port = cfg.getInt("cassandra.port");
boolean dynamicND = true; // dynamic node discovery
Config casconf = new Config(port, true, 0);
Cluster cluster = new Cluster(nodes, casconf, dynamicND);
Pelops.addPool(Const.CASSANDRA_POOL, cluster, Const.CASSANDRA_KS);
任何人都可以帮我解决这个问题吗?
任何帮助将不胜感激。