Steadybit logoReliability Hub
GitHubGitHub iconStart Free Trial
Steadybit logoReliability Hub

Trigger Cloud SQL Failover

AttackAttack
Fails over a REGIONAL Cloud SQL HA instance to its standby. Not reversible.
Targets:
Cloud SQL instances
Install now

Trigger Cloud SQL Failover

Fails over a REGIONAL Cloud SQL HA instance to its standby. Not reversible.
AttackAttack
Install now

Trigger Cloud SQL Failover

AttackAttack
Fails over a REGIONAL Cloud SQL HA instance to its standby. Not reversible.
Install now

Trigger Cloud SQL Failover

Fails over a REGIONAL Cloud SQL HA instance to its standby. Not reversible.
AttackAttack
Install now
Go back to list

Introduction

This action triggers a failover of a REGIONAL (high-availability) Cloud SQL instance. Cloud SQL promotes the standby to primary and provisions a new standby behind it — exercising the same code path a real zonal outage would.

The extension fetches the instance's current settingsVersion and passes it in the FailoverContext, so Cloud SQL will reject the failover if the instance configuration was mutated between our read and our write (optimistic-concurrency safety).

Use Cases

  • Verify that connection pools reconnect cleanly when the database endpoint's underlying zone changes.
  • Measure end-to-end downtime seen by the application during a failover.
  • Validate that read-replica-aware clients handle the primary/standby role swap correctly.

Rollback

This attack does not support rollback. Cloud SQL manages the promotion and rebuilds the new standby automatically. Cancellation is a no-op.

Parameters

No parameters.

Notes

Failover requires REGIONAL availability type. The target discovery exposes gcp.cloudsql.availability-type — use it in your selector to keep this attack from matching ZONAL instances (Prepare will error out otherwise).

Start Using Steadybit Today

Get started with Steadybit, and you’ll get access to all of our features to discover the full power of Steadybit. Available for SaaS and on-prem!

Are you unsure where to begin?

No worries, our reliability experts are here to help: book a demo with them!

Statistics
-Stars
Tags
GCP
GCP Cloud SQL
Cloud
Database
State
Homepage
hub.steadybit.com/extension/com.steadybit.extension_gcp
License
MIT
MaintainerSteadybit
Install now
Steadybit logoReliability Hub
Start Free Trial
© 2026 Steadybit GmbH. All rights reserved.
Twitter iconLinkedIn iconGitHub icon