を使用しているプロジェクトに取り組み始めましたCassandra database。
本番 DBA にはセットアップがtwo clusterあり、各クラスターには12 nodes.
Pelops clientCassandra データベースからデータを読み取るために使用します。今、クラスターの作成中に追加する必要があるノードの数などClusterを使用してクラスを作成する最良の方法は何ですか?Pelops clientPelops
私の理解では、それぞれ 12 ノードの 2 つのクラスターを使用pelops clientするので、すべてを使用してクラスターを作成することでした。24 nodesこれは正しいアプローチですか?
そうでない場合、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);
誰でもこれで私を助けることができますか?
どんな助けでも大歓迎です。