Diagram
A four-step process flow showing Cloud SQL regional high availability: a primary and standby in two zones with synchronous replication, failure detection after about 60 seconds, automatic promotion of the standby with traffic rerouted via the shared static IP, and the old primary rebuilt as the new standby.
Automatic Failover and Cross-Region Replicas in Cloud SQL
Automatic failover in Cloud SQL is the process where the standby becomes the new primary and client traffic is rerouted after an instance or zone failure. The failed primary does not automatically take over when it recovers, so applications stay on the promoted instance until a planned failback moves traffic back. The lifecycle runs in order: first failure detection, then promotion of the standby, then rerouting of user traffic, and finally rebuilding the old primary as the new standby.
Cross-region replicas extend protection beyond one region. Data flows from the regional primary to a readable replica in a different region, and promotion makes that replica the new primary if the whole primary region is lost. Cascading replicas add a second hop, so data flows from the primary region to the first replica region and then to a second replica region. Because a read replica can be configured for HA in advance, the promoted replica already has its own primary and standby across zones.
Domain 1 of 1
95 practice questions
Practice this DomainLast updated