How standby node work?

Posted December 17, 2020 1.5k views
DigitalOcean Managed MySQL DatabaseNeeds Product Answer

i want to ask when standby node work and how it mirror primary node?
is it mirrioring in real-time?

so the data itself will be exact same on real-time.

and what if the datacenter is down? is the standby database will go down too?

edited by bobbyiliev

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


In the event of a failure, Managed Databases will automatically switch data handling to a standby node to minimize downtime.

The data between the nodes is being replicated using SQL replication.

All database clusters have automated failover, meaning they automatically detect and replace degraded or failing nodes.

With one standby node, if the primary node fails, the service remains available. The standby node is immediately promoted to primary and begins serving requests while a replacement standby node is provisioned in the background.

If both nodes fail simultaneously, the service becomes unavailable until at least one of the nodes is reprovisioned.

To increase the stability further, you could have two standby nodes, that way the cluster would be highly available and very resilient against downtime.

Even if two nodes fail simultaneously, the service remains available while two replacements are provisioned in the background.

The service only becomes unavailable in the unlikely event of all three nodes failing at the same time.


  • Bobby, what is average managed database availability?
    How common is failure events? How soon does the database recover in such event?

    • Hi there,

      Regarding the failover timing, as far as I can see from the official documentation here, platform maintenance updates, node failover, or other brief outages (up to 5-10 seconds) can occur and cause your applications to disconnect from your database nodes.

      Regarding the availability, I don’t think that there is any official data about the exact numbers, but if you have a cluster without standby nodes, the primary node is a single point of failure, so the cluster is not highly available. So to prevent this, you could add 1 or 2 standby nodes.


  • I would like to know, If the primary node fails. And then the standby node already works, How does it affect read-only nodes?