Configuring multiple data centers
Ensure the continuity of your online services by adding a secondary Cassandra data center.Configuring your application to take advantage of multiple data centers improves performance and prevents downtime, because you can have multiple copies of data saved across the separate physical locations that host your application servers.
- Disable decision services in the primary data center (DC1), and the secondary data center (DC2).
- Ensure that DC1 and DC2 communicate directly through ports 7000 and 9042.
Follow these steps to add a secondary data center in the active-active configuration. In the active-active configuration, both data centers run the same services simultaneously, to effectively manage the workload across all nodes and minimize application downtime.
- Configuring the primary data center nodes
Configure your Cassandra cluster for redundancy, failover, and disaster recovery by creating a multi-data center deployment. First, add nodes to the primary data center by configuring the prconfig.xmlfile and deploying the Cassandra database.
- Configuring the secondary data center nodes
Enable communication and data replication between the primary and secondary data centers by updating the prconfig.xml file for each node in the secondary data center, and starting the Decision Data Store service.