For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

Enable binary-donor

With asynchronous replication, the primary MySQL instance streams binary log events to replicas in the background. When the primary instance unexpectedly fails or restarts, it may happen that recently committed transactions exist only in the primary's binary logs on disk. A standard failover would promote the replica as a new primary, losing those transactions.

binary-donor is a lightweight MySQL binary log server that runs with each MySQL instance and serves its binary logs when the MySQL server instance goes down. This allows replicas to catch up to the primary's last committed transaction before promotion, ensuring zero data loss during failover.

Each binary-donor pod reads the binary logs directly from the data volume of its MySQL instance. To do that, it must run on the same node as that MySQL instance and mount the same volume.

The storage class specified in spec.storage.className of the DBInstance CR must support mounting the same volume by two pods on the same node. Node-local volumes and storage classes created by the Cennso Database Operator support this by default.

Some storage drivers attach a volume to only one pod by default. In this case, you must enable shared access in the StorageClass. For example, the OpenEBS LVM LocalPVOpens in a new tab driver requires the shared: "yes" parameter:

yaml

If the storage class does not allow this, the binary-donor pods cannot mount the volume and do not start.

Enable binary-donor in the DBInstance CR

Important

Enabling binary-donor adds the following changes to the configruation of the XDBInstance composition:

  • Activates the binary-donor pre-failover hooks bundled in the default Orchestrator image (registry.cennso.com/cennso/mysql-orchestrator:v3.2.6-19-cennso-0.3). When binary-donor is disabled, the same image runs with the default Orchestrator configuration.
  • Always disables the MySQL CLONEOpens in a new tab operation, even if spec.mysql.cloneRequiredOnAsyncCluster is set to true. For more information, see the Cloning database instances section.

To enable binary-donor, set the spec.binaryDonor.enabled configuration option to true in your DBInstance CR. The following example shows a minimal DBInstance CR with binary-donor enabled:

yaml

Note

For more information about configuration options not related to binary-donor, such as spec.storage and spec.instances, see the Deploy Cennso Database Instance document.

After you have prepared the DBInstance CR with binary-donor enabled, apply it to your Management Cluster:

bash

Verify that the binary-donor pods are running alongside the MySQL instances:

bash

For more information about the available configuration options for binary-donor, see the Cennso Database Instance document.

MySQL requirements

Important

A primary instance with more than one replica is not supported yet. If your deployment has more than one replica, do not enable binary-donor, but use the spec.mysql.cloneRequiredOnAsyncCluster instead.

The source MySQL instance must be configured with the following settings for binary-donor to function correctly:

These settings are configured by default in the MySQL instances deployed by the Cennso Database extension.