nitinitt opened a new pull request, #1896: URL: https://github.com/apache/cassandra-java-driver/pull/1896
Ability to specify ordering of remote dc's via new configuration for deterministic failovers. https://datastax-oss.atlassian.net/browse/JAVA-3142 **Motivation** The driver uses the remote contact points(in no particular order) when a Query plan is built if max-nodes-per-remote-dc is used. Explicitly specifying the remote dc’s in order will help in more deterministic failovers in case of outages/degradation with ring experienced with ring associated with: basic.load-balancing-policy.local-datacenter. There could also be cases where more than 1 ring is present in DC, and in case of any issues with one ring associated with basic.load-balancing-policy.local-datacenter(localDc), the driver can failover to other rings present in same DC via this new feature. In case of 1 ring per DC, applications can choose remote dc's deterministically when query plan is built. **Modifications** Added a new configuration: advanced.load-balancing-policy.dc-failover.preferred-remote-dcs which optionally takes a list of preferred remote-dcs(in order) used in building the query plan. Backward compatibility is maintained, if the config is not present. **Result** If this configuration is enabled, the order specified in the config will be used in building query plan. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org