Consistency QUORUM
As discussed earlier, consistency QUORUM means that a majority of replicas need to acknowledge a write for the write request to succeed. In the case of keyspace3 with replication factor 3, this majority turns out to be two replicas. However, in case of keyspace2 with replication factor 2, this majority still turns out to be replicas.
To better understand how consistency works, let's bring a node down within the cluster. Go to the Terminal where you started Cassandra 3 (Cassandra with listen address 127.0.0.3), and simply press Ctrl + C on the keyboard in case you started Cassandra in the foreground mode with option -f. If you started Cassandra in the background mode, get the process ID of Cassandra, and simply kill it. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access