Cassandra Best Practices
When you create a Cassandra client, the software creates a default subclient that contains all the data centers and Simple Strategy keyspaces.
Use the following guidelines when you want to manage Cassandra subclients:
- A data center or Simple Strategy keyspace can only be in one subclient.
- Have separate subclients for each data center so that you can take advantage of the storage targets (MediaAgents) that are close to the data center so that you can have better network performance.
- If you have a subclient that contains both the data centers, then the backup does not include the Simple Strategy keyspaces. Create a separate subclient for the Simple Strategy keyspaces.
- When you create a subclient for keyspaces that have the Simple Strategy replication factor, use a Geo MediaAgent, LAN-free or GridStor configuration for the storage. for more information, see GridStor®.
- To make sure that your data centers are regularly backed up, create a subclient for each data center, and then schedule a backup. For information on configuring a backup schedule, see Schedule Backups.
- Leave the default subclient intact so that it can be a catch-all for the following data:
- Data center that are not part of any other subclient
- Keyspaces that have the Simple Strategy replication factor and are not part of any other subclient
- New auto-discovered data centers and Simple Strategy keyspaces
Keyspace Additions to Existing Clusters
When you add keyspaces that have the Simple Strategy replication factor to an existing Cassandra cluster, then the following rules apply to backups:
- If you have a user-defined subclient that contains Simple Strategy keyspaces, then the you need to add the keyspace to the subclient (Subclient Properties dialog box, Cassandra Contents tab). For more information, see Adding Simple Strategy Keyspaces to a Cassandra Subclient.
- If you do not have a user-defined subclient for the Simple Strategy keyspaces, then the keyspaces are added to the default subclient.
When you add a keyspace that has the network topology replication factor to an existing cluster, the Commvault software automatically adds the keyspace to the subclient that contains the data center that the keyspace is associated with.
If you have a Cassandra configuration that has datacenters or nodes in different network locations, then you can configure the Commvault software to use the MediaAgent that is geographically closest to the datacenter or node. For more information, see Using a Geolocation Based MediaAgent for Cassandra Protection.
If the Cassandra nodes are behind a firewall, configure the network topology on your CommCell as follows:
- Create a client group and add the Cassandra coordinator node to the client group.
- Create another client group and add all the remaining Cassandra nodes to the client group.
- Open port 8403 on all the nodes.
- On the coordinator client group, add a firewall rule stating blocked to the Cassandra client group.
- On the Cassandra client group, add a firewall rule stating restricted to the Cassandra coordinator client group.
- Push the network configurations on each client group (right-click the client group, point to All Tasks, and then click Push Network Configuration).
Last modified: 6/6/2019 5:41:35 PM