Improve instance reliability by enabling high availability

MySQL  |  PostgreSQL  |  SQL Server

Preview

This feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of theService Specific Terms. Pre-GA features are available "as is" and might have limited support. For more information, see thelaunch stage descriptions.

The Cloud SQL enable-high-availabilityrecommenderproactively generates recommendations that help you bring your importantinstances within SLA by providing data redundancy. This mightbe helpful during a zonal outage or when an instance runs out of memory.

This page describes the Cloud SQL enable-high-availability recommender, how thisrecommender works, and how to use it.

How it works

The Cloud SQL enable-high-availability recommender analyzes the instance metadata. If the instanceis configured similar to instances that support important workloads but doesn'thave high availability enabled, then Cloud SQL recommends that you enable highavailability for 99.95% availability SLA, or migrate to Cloud SQL Enterprise Plus edition with highavailability for 99.99% availability SLA.

Note: Recommendations are generated daily.

Pricing

The Cloud SQL enable-high-availability recommenderis available free of cost to all Google Cloud customers.For more information, seeRecommender pricing.

Before you begin

Before you can view recommendations and insights, do the following:

List enable-high-availability recommendations

Console

To list enable-high-availability recommendations by using theGoogle Cloud console, follow these steps:

  1. Go to theActive Assist.

    Go to the Active Assist

    For more information, seeGetting started with Recommendation Hub.

  2. In theImprove reliability on Cloud SQL instances card, clickView all.

gcloud

To list enable-high-availability recommendations by using gcloud CLI, run thegcloud recommender recommendations listcommand as follows:

gcloud recommender recommendations list \--project=PROJECT_ID \--location=LOCATION \--recommender=google.cloudsql.instance.ReliabilityRecommender \--filter=recommenderSubtype=ENABLE_HIGH_AVAILABILITY

Replace the following:

  • PROJECT_ID: Your project ID.
  • LOCATION: Aregion where your instances are located, such asus-central1.

API

To list enable-high-availability recommendations by using theRecommendations API, call therecommendations.listmethod as follows:

GET https://recommender.googleapis.com/v1beta1/projects/PROJECT-ID/locations/LOCATION/recommenders/google.cloudsql.instance.ReliabilityRecommender/recommendations

Replace the following:

  • PROJECT_ID: Your project ID.
  • LOCATION: A region where your instances are located, such asus-central1.

View insights and detailed recommendations

Console

To view insights and detailed recommendations about instances that areconfigured similar to instances that support important workloads butdon't havehigh availability enabled, click the recommendation link in the list ofinstances.

gcloud

To view insights and detailed recommendations about instances that are configured similar to instances that support important workloads but don't havehigh availability enabled, run thegcloud recommender insights listcommand as follows:

gcloud recommender insights list \--project=PROJECT_ID \--location=LOCATION \--insight-type=google.cloudsql.instance.ReliabilityInsight \--filter=insightSubtype=CRITICAL_INSTANCE_HIGH_AVAILABILITY_NOT_ENABLED

Replace the following:

  • PROJECT_ID: Your project ID.
  • LOCATION: A region where your instances are located, such asus-central1.

API

To view insights and detailed recommendations about instances that are configured similar to instances that support important workloads but don't havehigh availability enabled by using theRecommendations API, call theinsights.listmethod as follows:

GET https://recommender.googleapis.com/v1beta1/projects/PROJECT-ID/locations/LOCATION/insightTypes/google.cloudsql.instance.ReliabilityInsight/insights

Replace the following:

  • PROJECT_ID: Your project ID.
  • LOCATION: A region where your instances are located, such asus-central1.

The following table lists the insight and recommendation that the Cloud SQLenable-high-availability recommender generates. The subtypesare visible in the gcloud CLI and API results.

InsightRecommendation
This instance isn't highly available, even though it's configured similarly to instances that support important workloads. Single zone instances are more susceptible to downtime.
Subtype:CRITICAL_INSTANCE_HIGH_AVAILABILITY_NOT_ENABLED
Enable high availability for 99.95% availability SLA, or migrate to Cloud SQL Enterprise Plus edition with high availability for even higher 99.99% availability SLA. Enabling high availability will make your instance multi-zonal, which replicates your data within a region to protect against zonal outages, limit downtime and improve recovery time.
Subtype:ENABLE_HIGH_AVAILABILITY

Apply the recommendation

Evaluate the recommendation carefully and do any of the following:

What's next

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-17 UTC.