Cluster Recovery Add-On
Database Cluster Recovery Add-On
The Database Cluster Recovery add-on provides free diagnostic and automated recovery tools for supported MariaDB, MySQL, and Percona database clusters. It helps identify replication, cluster-health, and service issues and can attempt to restore cluster operability automatically.
Supported Database Clusters
- Primary-Secondary Cluster based on MySQL, MariaDB, or Percona.
- Primary-Primary Cluster based on MySQL, MariaDB, or Percona.
- Galera Cluster based on MariaDB.
- XtraDB Cluster based on Percona.
Add-On Specifics
The add-on operates in two modes:
During diagnostics, the add-on checks:
- Replication for Primary-Secondary and Primary-Primary topologies.
- Cluster size for Galera and XtraDB clusters.
- Galera and XtraDB cluster status.
- Database cluster services status.
During installation, the add-on applies several changes required for validation and recovery operations.
Replica User
A dedicated replica user is added for cluster validation and is also used in the ProxySQL configuration. Its credentials are available through environment variables:
REPLICA_USER: repl-xxxxxx REPLICA_PSWD: xxxxxxxxxxxx

SSH Access Between Database Nodes
The add-on also configures SSH access between database nodes using a dedicated set of SSH keys. This connection is used to copy data with rsync during the restoration procedure.
Add-On Installation
The add-on is available through the platform Marketplace. The corresponding Database Cluster Recovery package can also be imported from its GitHub repository.

Open the add-on installation
Launch the Database Cluster Recovery package from Marketplace.
Provide installation parameters
In the confirmation window, provide:
- User and Password: database administrator credentials.
- Environment name: select the environment containing the required database cluster.
- Nodes: choose the layer that contains the database cluster.

Install the add-on
Click Install and wait a few minutes. After installation, the recovery package appears in the add-ons list for the selected database layer.

Add-On Usage
The installed add-on provides two main actions:
Run Cluster Diagnostic
Click Cluster Diagnostic. The dashboard returns one of two results:
- Cluster is OK
- Errors discovered

Review Recovery Logs
For detailed diagnostic information, click Show Logs. The add-on opens:
/var/log/db_recovery.log

Run Cluster Recovery
If diagnostic errors are detected, click Cluster Recovery. The add-on attempts to resolve common cluster issues and restore operability automatically.
Create a backup first
The source documentation recommends creating a database backup before running the recovery operation.

If recovery fails or more detail is required, review db_recovery.log. The source documentation also points to the Manual Recovery guide for cases that are not resolved automatically.
Expected Result
The add-on diagnoses the supported database cluster, reports whether the cluster is healthy or contains errors, and can attempt an automated repair. Successful recovery returns the cluster to an operable state, while detailed actions and failures remain available in the recovery log.
Important Notes
- The add-on supports Primary-Secondary, Primary-Primary, MariaDB Galera, and Percona XtraDB clusters.
- Diagnostic checks differ according to cluster topology.
- A dedicated replica user is created during installation.
- SSH keys are configured between database nodes for
rsync-based restoration operations. - Database administrator credentials are required during add-on installation.
- Back up the database before starting Cluster Recovery.
- Use
/var/log/db_recovery.logfor detailed diagnostics and recovery information.
