Improve instance reliability by enabling high availability
Stay organized with collectionsSave and categorize content based on your preferences.
The AlloyDB enable-high-availabilityrecommenderproactively generates recommendations that help you bring your important
instances within a service-level agreement (SLA) by providing data redundancy. This might
be helpful during a zonal outage or when an instance runs out of memory.
This page describes the AlloyDB enable-high-availability recommender, how this
recommender works, and how to use it.
How it works
The AlloyDB enable-high-availability recommender analyzes the instance metadata. If the instance
doesn't have high availability enabled, then AlloyDB recommends that you enable high
availability for 99.99% (*) availability.
The AlloyDB enable-high-availability recommender
is available free of cost to all Google Cloud customers.
For more information, seeRecommender pricing.
Before you begin
Before you can view recommendations and insights, you must do the following:
In theAvailability configurationcard, clickNot failover protected.
A list of clusters to which theNot failover protectedrecommendation applies is displayed.
GET https://recommender.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/recommenders/google.alloydb.cluster.ReliabilityRecommender/recommendations?filter=recommenderSubtype=ENABLE_INSTANCE_HIGH_AVAILABILITY
Replace the following:
PROJECT_ID: your project ID.
LOCATION: a region where your instances are located, such asus-central1.
View insights and detailed recommendations
You can view insights and detailed recommendations about instances
that require enabling high availability using the Google Cloud console,gcloud CLI, or the Recommender API.
To view insights and detailed recommendations, follow these steps:
Console
On theClusterspage, click theNot failover protectedrecommendation for an instance in theIssuescolumn.
The recommendation panel appears, which contains insights and detailed recommendations.
GET https://recommender.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/insightTypes/google.alloydb.cluster.ReliabilityInsight/insights?filter=insightSubtype=INSTANCE_HIGH_AVAILABILITY_NOT_ENABLED
Replace the following:
PROJECT_ID: Your project ID.
LOCATION: A region where your instances are located, such asus-central1.
Apply the recommendation
Evaluate the recommendation carefully and do any of the following:
Console
To implement the recommendation, do the following:
ClickEditon your cluster.
In theEdit primary instancepane, underZonal availability, selectMultiple zones (Highly available).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Improve instance reliability by enabling high availability\n\nThe AlloyDB enable-high-availability [recommender](/recommender/docs/overview)\nproactively generates recommendations that help you bring your important\ninstances within a service-level agreement (SLA) by providing data redundancy. This might\nbe helpful during a zonal outage or when an instance runs out of memory.\n\nThis page describes the AlloyDB enable-high-availability recommender, how this\nrecommender works, and how to use it.\n\nHow it works\n------------\n\nThe AlloyDB enable-high-availability recommender analyzes the instance metadata. If the instance\ndoesn't have high availability enabled, then AlloyDB recommends that you enable high\navailability for 99.99% (\\*) availability.\n\n(\\*) See [AlloyDB Service Level Agreement (SLA)](/alloydb/sla) for more information.\n| **Note:** Recommendations are generated daily.\n\nPricing\n-------\n\nThe AlloyDB enable-high-availability recommender\nis available free of cost to all Google Cloud customers.\nFor more information, see [Recommender pricing](/recommender/pricing).\n\nBefore you begin\n----------------\n\nBefore you can view recommendations and insights, you must do the following:\n\n- Ensure that you [enable the Recommender API](/recommender/docs/enabling).\n\n- To get the permissions to view and work with insights and recommendations,\n ensure that you have the required [Identity and Access Management (IAM) roles](/alloydb/docs/reference/iam-roles-permissions).\n\n \u003cbr /\u003e\n\nSee [Grant access to other users](/alloydb/docs/user-grant-access) for more information.\n\nList enable-high-availability recommendations\n---------------------------------------------\n\nYou can list the enable-high-availability recommendations\nusing the Google Cloud console, `gcloud CLI`, or the Recommender API. \n\n### Console\n\nTo list enable-high-availability recommendations by using the\nGoogle Cloud console, follow these steps:\n\n1. In the Google Cloud console, go to the **Clusters** page.\n\n [Go to Clusters](https://console.cloud.google.com/alloydb/clusters)\n\n For more information, see\n [Getting started with Recommendation Hub](/recommender/docs/recommendation-hub/identify-configuration-problems).\n2. In the **Availability configuration** card, click **Not failover protected** .\n A list of clusters to which the **Not failover protected** recommendation applies is displayed.\n\n### gcloud\n\nTo list enable-high-availability recommendations using gcloud CLI, run the\n[`gcloud recommender recommendations list`](/sdk/gcloud/reference/recommender/recommendations/list)\ncommand as follows: \n\n```\ngcloud recommender recommendations list \\\n--project=PROJECT_ID \\\n--location=LOCATION \\\n--recommender=google.alloydb.cluster.ReliabilityRecommender \\\n--filter=recommenderSubtype=ENABLE_INSTANCE_HIGH_AVAILABILITY\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: your project ID.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e: a [region](/docs/geography-and-regions) where your instances are located, such as `us-central1`.\n\n### API\n\nTo list enable-high-availability recommendations using the\n[Recommendations API](/recommender/docs/using-api), call the\n[`recommendations.list`](/recommender/docs/reference/rest/v1/projects.locations.recommenders.recommendations/list)\nmethod as follows: \n\n```\nGET https://recommender.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/recommenders/google.alloydb.cluster.ReliabilityRecommender/recommendations?filter=recommenderSubtype=ENABLE_INSTANCE_HIGH_AVAILABILITY\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: your project ID.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e: a region where your instances are located, such as `us-central1`.\n\nView insights and detailed recommendations\n------------------------------------------\n\nYou can view insights and detailed recommendations about instances\nthat require enabling high availability using the Google Cloud console,\n`gcloud CLI`, or the Recommender API.\n\nTo view insights and detailed recommendations, follow these steps: \n\n### Console\n\nOn the **Clusters** page, click the **Not failover protected** recommendation for an instance in the **Issues** column.\nThe recommendation panel appears, which contains insights and detailed recommendations.\n\n### gcloud\n\nRun the\n[`gcloud recommender insights list`](/sdk/gcloud/reference/recommender/insights/list)\ncommand as follows: \n\n```\ngcloud recommender insights list \\\n--project=PROJECT_ID \\\n--location=LOCATION \\\n--insight-type=google.alloydb.cluster.ReliabilityInsight \\\n\n--filter=insightSubtype=INSTANCE_HIGH_AVAILABILITY_NOT_ENABLED\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: Your project ID.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e: A region where your instances are located, such as `us-central1`.\n\n### API\n\nCall the [`insights.list`](/recommender/docs/reference/rest/v1beta1/projects.locations.insightTypes.insights/list) method as follows: \n\n```\nGET https://recommender.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/insightTypes/google.alloydb.cluster.ReliabilityInsight/insights?filter=insightSubtype=INSTANCE_HIGH_AVAILABILITY_NOT_ENABLED\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: Your project ID.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e: A region where your instances are located, such as `us-central1`.\n\nApply the recommendation\n------------------------\n\nEvaluate the recommendation carefully and do any of the following: \n\n### Console\n\nTo implement the recommendation, do the following:\n\n1. Click **Edit** on your cluster.\n2. In the **Edit primary instance** pane, under **Zonal availability** , select **Multiple zones (Highly available)**.\n3. Click **Update instance**.\n\n### gcloud CLI\n\nTo implement the recommendation, follow the instructions in [Upgrade a basic instance to an HA instance](/alloydb/docs/basic-instance#gcloud_2).\n| **Note:** You must carefully evaluate before you update the instance. Applying recommendations impacts your pricing.\n\nWhat's next\n-----------\n\n- [Google Cloud recommenders](/recommender/docs/recommenders)"]]