Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Availability of Cassandra

I am running into an issue "me.prettyprint.hector.api.exceptions.HUnavailableException: : May not be enough replicas present to handle consistency level." when I have RF=1, Read Consistency Level = 1 and one of the nodes in 6 node ring/ cluster is down. All of my reads are failing with this exception. Any idea? Ideally only reads that are looking for data in the node which is down should fail and all other reads should be successful?

like image 645
Vinay Kumar Chella Avatar asked Sep 05 '12 19:09

Vinay Kumar Chella


People also ask

Is Cassandra highly available?

In Cassandra it is one of the important aspects for high availability mechanism . It help to Reduce restoration time of a failed node rejoining the cluster and to ensure absolute write availability by tolerating inconsistent reads.

What is a consequence of Cassandra's availability?

If one of the replicas is down or unreachable, the write operation will fail since Cassandra cannot meet the required consistency level. In this case, Cassandra sacrifices availability to guarantee consistency.

Does Netflix still use Cassandra?

Cassandra, with its distributed architecture, was a natural choice, and by 2013, most of Netflix's data was housed there, and Netflix still uses Cassandra today.

Who has the biggest Cassandra instance?

Apple has the biggest Cassandra instance How scalable is Cassandra? In 2014, Apple announced its Cassandra instance had more than 75,000 nodes and stored more than 10 petabytes of data. What's more, a single cluster was over 1,000 nodes.


1 Answers

There could be a few possibilities:

  • You're running a multi-row query (get_range, get_indexed_slices, multiget, or the cql equivalents) that requires multiple nodes to be up
  • Your cluster is unbalanced, with the down node owning most of the ring; a bad multi-dc configuration could also produce something similar
  • Your cluster wasn't in a good state to begin with, where some nodes don't see others. Make sure nodetool ring shows the same output when run against each node in the cluster

If none of those are the cause, double check that you're specifying the consistency level correctly with Hector and cqlsh.

like image 82
Tyler Hobbs Avatar answered Oct 02 '22 19:10

Tyler Hobbs