I wanted to know how we can achieve automatic failover to second region with Astra DB multi region set up in case primary region cluster is not available? I know we can configure this in DSE, looking at similar configuration or approach in Astra DB.
I wanted to know how we can achieve automatic failover to second region with Astra DB multi region set up in case primary region cluster is not available? I know we can configure this in DSE, looking at similar configuration or approach in Astra DB.
@praveenkg it can be achieved using the same fashion how you're achieving it today with DataStax Enterprise (DSE) cluster.
I am assuming your app is deployed similar to the below with DC1 and DC2 being Astra DB regions.
Other useful resources are available here,
I hope that helps!
It is not possible to do an automatic failover at the application layer. It requires manual intervention since you need to use a different secure connect bundle -- each bundle is encoded with a specific region's contact points.
In any case, most production environments deploy app instances in the same regions as the Cassandra cluster for lowest latency and maximum performance. Our recommendation is to perform the failover at the infrastructure layer meaning that you should divert users to the other region. The simple reason for this is that if the database cluster is unavailable in one region, it is almost always due to a region-wide service disruption/outage which means that the app instances hosted in the same region would be unavailable as well.
For example if "Region1" is unavailable for whatever reason, your front-end web load balancers should divert all users to "Region2". Cheers!
7 People are following this question.
How do I configure one IP to be used by my application to connect to the Cassandra cluster?
How does Astra DB ensure high availability for the compute services?
Java driver has high CPU usage when making parallel calls
How can I send timestamp or date type with Pulsar schema and consume it in Astra sink?
DataStax Enterprise is powered by the best distribution of Apache Cassandra ™
© 2023 DataStax, Titan, and TitanDB are registered trademarks of DataStax, Inc. and its subsidiaries in the United States and/or other countries.
Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.
Privacy Policy Terms of Use