EACH_QUORUM With List Of DataCenters

5 views
Skip to first unread message

Bharat Kondeti

unread,
Sep 6, 2016, 7:28:01 PM9/6/16
to DataStax Java Driver for Apache Cassandra User Mailing List

Hi,

 

I am looking for some ideas on achieving a consistency of EACH_QUORUM on a 3 datacenter scenario, with a tolerance for 1 data center loss for writes.

 

Based on my understanding, EACH_QUORUM does not tolerate a data center loss. All my writes will fail as long as the data center is down. One option, is to retry the request with lower consistency level like 'QUORUM'.

 

Assuming that my client application knows that a datacenter is down, is there a way from Cassandra client driver to pass in a list of live/up datacenters, so the coordinator node tries to achieve EACH_QUORUM only on those datacenters.

 

Would appreciate any insight on this.

 

Thanks
Bharat

Alexandre Dutra

unread,
Sep 7, 2016, 11:49:24 AM9/7/16
to DataStax Java Driver for Apache Cassandra User Mailing List
Hello Bharat,

EACH_QUORUM is a very strong consistency level that does not tolerate datacenter failures. Furthermore, you cannot tell the coordinator to "ignore" a specified datacenter when trying to achieve EACH_QUORUM. There are actually few use cases that really require such a strong commitment.

Lowering your consistency requirements to QUORUM or LOCAL_QUORUM might be a reasonable choice; you might also want to have a look at DowngradingConsistencyRetryPolicy and the discussion around JAVA-1005.

Regards,
Alexandre

--
You received this message because you are subscribed to the Google Groups "DataStax Java Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-us...@lists.datastax.com.
--
Alexandre Dutra
Driver & Tools Engineer @ DataStax
Reply all
Reply to author
Forward
0 new messages