Kassandra nodes ownership is 0.00%

I have a Cassandra cluster with two nodes. I use NetworkTopologyStrategy I tried to increase the keypace replication coefficient in Cassandra to 2. I did the following steps: UPDATE KEYSPACE demo WITH strategy_options = {DC1: 2, DC2: 2}; on both nodes Then I started repairing the node on both nodes Then I ran my Hector code to count the number of rows and columns in the database. I get the following error message: Unavailable Exception Also, when I run the command. / nodetool -h ip_address ring I found that the ownership of both nodes is 0%. Please tell me how to fix this.

+4
source share
1 answer

You mentioned β€œboth sites,” which means that you have two common sites, not two data centers, as suggested by your strategy options. To determine {DC1: 2, DC2: 2}, you need a minimum of four nodes (two in each DC to meet the replication coefficient), although this is not recommended, since essentially all your nodes will be points of failure.

A minimum Cassandra cluster must have at least three nodes, in which case the RF of two can allow one node to go down without knocking down the system. It looks like you have one cluster (and not two data centers), so you really need one more node (total 3), RF = 2, using SimpleStrategy instead of NetworkTopologyStrategy.

+1
source

All Articles