Restoring database data (OCP)
You can restore existing topology data for the Agile Service Manager OCP installation, if backed up earlier. This can be helpful when updating your system, or for maintenance reasons.
Before you begin
About this task
- Backup
- The backup procedure documented here performs a backup of all the keyspaces in the Cassandra database, including those not specific to Agile Service Manager.
- Restore
- The restore procedures focus on restoring only the keyspace that is relevant to Agile Service Manager (that is, 'janusgraph').
During Agile Service Manager deployment, a secret called
{release}-topology-cassandra-auth-secret
is generated, if none already exists with
that name. Cassandra is protected with the user and password of that secret, which will be used by
the Agile Service Manager services to connect to the database.
In the restore scenarios described, it is assumed that Agile Service Manager is deployed in a
standard way, meaning that the connection to Cassandra is set with the described secret. If you were
to restore the system_auth
keyspace (instead of just the
janusgraph
keyspace), you would have to make sure the user and password in the
mentioned secret matches the credentials contained in the keyspace for the version being
restored.
kubectl get secret noi-cassandra-auth-secret -o yaml
- Same cluster data restore (rollback)
- This scenario covers the restore of a database backup to the same cluster from where it was taken, as documented in the procedure; essentially rolling back your deployment to a previous state.
- Restoring to a different cluster
- In this scenario you recreate your Agile Service Manager deployment data in a different cluster from the one from which you have taken a backup.
- Losing a Cassandra node in your OCP cluster
- This scenario describes the steps to perform should you lose a worker node in your OCP cluster where one of the Agile Service Manager Cassandra pods is running, thereby effectively losing one of your Cassandra replica nodes.
Procedure
Preparing your system for data restoration
Restore data
Restore services
Replacing a Cassandra node in your OCP cluster
Agile Service Manager configuration for Cassandra sets a three-node cluster with a replication factor of three, which means your deployment would still be fully functional should you lose one node. To mitigate the risk of a second node failing, however, you would perform the steps documented here to restore the level of service to a three node Cassandra cluster.
About this task
Procedure
Verify the state of your Cassandra cluster
Restore a three-node Cassandra cluster