Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Google Cloud SQL high availability really improving reliability?

I want to create a Google Cloud SQL instance but I am not sure about choosing high availability or not.

From what I understand the failover switch can take a few minutes, it is not instantly done, and the cost is roughly 2x the cost of a regular instance.

The failover is triggered only in case of zone outage, not in case of db issues. Since the monthly uptime is 99.95 at least, that makes an outage possibility of 21mins per month maximum. A failover can take up to 5 mins, and we can suppose the 21minutes downtime is not happening on a single event, therefore is there a real need to subscribe to High Availability?

like image 418
Vincent Teyssier Avatar asked Jan 27 '17 10:01

Vincent Teyssier


People also ask

Which Google cloud service is highly available and fault tolerant?

At Google, our Cloud SQL managed database service offers three fault tolerance mechanisms —backup, high availability, and replication—and there are three major factors to consider for each of them: RTO (recovery time objective): When a failure happens, how much time can be lost before significant harm occurs?

Is Google Cloud SQL good?

Highly scalable and secure cloud SQL Google Cloud SQL is easy to set up. Migration is also simple and is extremely scalable based on needs. It offers a good level of security from Google and data transfer take minimal time in comparison to other such service providers.

What option does Cloud SQL offer to help with high availability?

The high availability configuration allows data redundancy in multiple zones inside the region you choose while deploying your DB instance. If you decide to enable high availability, Cloud SQL will set up two DB instances in two different locations with the same region.

What is high availability in GCP?

High availability (HA) is a system feature designed to provide a consistent level of uptime for prolonged periods. Google Cloud offers a robust and highly available architecture based on 24 regions and 73 availability zones.


1 Answers

A full zone outage is probably quite rare, so if you don't care about it, an HA instance might indeed not be needed.

One advantage of HA is that failover can be faster than restart. We've experienced cases when the primary instance gets "stuck" and a restart would take up to 30 minutes (GCP ticket). In such cases it's faster to failover to an HA instance.

(Before October 2019, HA failover instances could also be used for read queries, and thus avoid the need for an additional read replica. With the change from binlog-based replication to disk-based replication this is not the case anymore.)

like image 51
njam Avatar answered Sep 25 '22 21:09

njam