Maximizing Cloud SQL database availability

Google Cloud Tech · Intermediate ·🏗️ Systems Design & Architecture ·2y ago

Key Takeaways

The video discusses how Cloud SQL achieves near-zero downtime and provides best practices for maximizing business continuity, including the use of shadow replicas and cross-region replication.

Full Transcript

[Music] hi everyone I'm here at next24 with Rahul and we're going to talk about availability in Cloud SQL and you're giving a talk yes I am going to talk about how our customers can maximize the availability of their Cloud SQL instances wonderful okay and so you mentioned maximize availability and downtime so what are some of the most common causes of downtime in Cloud SQL yeah so uh again Cloud SQL is a managed database service we offer a 99.99% uptime SLA so we hold a very high bar for ensuring that your instance is available but typically what we see is that a lot of day two operations like instance maintenance customer when customers needs to scale up their instances that typically results in a downtime and then of course there is the you know issues with the infrastructure or the D itself that can also cause some downtime right right makes sense and so I recently heard a little birdie told me that we're at what's considered no downtime now less than 1 second amazing how how can gen apps really benefit from this new capability of almost no downtime or no down time actually yeah so yeah uh so uh last year when we introduced Enterprise Plus for cloud SQL we introduced what we call as a near zero downtime plan maintenance and at that time we said that we are reducing the downtime to less than 10 seconds and I'm very happy to say that we have made so many improvements since then that we have been able to reduce that downtime now to less than 1 second and we technically calling it subc downtime but you know you can call it you can call it zero downtime if you really want right yes um and then uh to your question about how gen applications can benefit you know a lot of our customers are using generative AI to build applications for critical Industries like healthcare where the only acceptable downtime is zero so Cloud SQL can really help them you know where they can do their Vector search and Vector embeddings within say cloud SQL for post SQL using PG vector and they can do that confidently knowing that when maintenance happens they won't even see it happening amazing so going off of that a little bit can you give me a little bit of behind the scenes of how are we able to achieve this subc downtime so the way that we do it is uh what we are what we're doing in under the hood is we are creating what we call as a shadow replica and we make sure that the replica is fully caught up with the primary instance and as soon as that happens we just do a quick cut over and you know the we start redirecting the traffic to the new primary instance and to the application and to the user it seems like nothing really happened there was a quick blip and the application is back talking to the database again wow that's so cool um in terms of making sure that we follow best practices could you highlight some of those that are often maybe overlooked but are really significant for high availability yeah so uh you know availability within a region is really well understood at this point and a lot of our customers take the advantage of the cloudsql high availability solution where they just check a box and they get the protection from any kind of a failure within a Zone but what we have seen is customers still struggle with you know setting themselves up for Disaster Recovery where they are ensuring that if uh something happens to a region that they cloudsql instance can they can they're able to start it quickly in the other region and for that what we introduced in public preview this week is something that we are calling as advanced Disaster Recovery with Advanced Disaster Recovery what happens is is you can create a cross region replica and if there is a disaster if there is an issue with the primary region you can quickly go and promote your cross region replica and then when the original region comes back up we Cloud SQL automatically take care of recreating your old instances and then when you need to go back to your old region because that's where your users are we offer you a simple operation called a switch over where you can go back to your original region with zero data L wow okay that is amazing um where can people find additional resources on all of this awesome information so the cloud SQL documentation is perhaps the best place to find all of these details where you know where we talk about how you can uh what how these features work and how you can leverage them we have other resources in the making but right now docs is the best place for you to go wonderful thank you so much for being here with us today Rahul and have a great of the time at the conference thank you it was great to be here and I'll see you all [Music] soon

Original Description

How does Cloud SQL achieve near-zero downtime? Join Debi Cabrera as she interviews Product Manager, Rahul Deshmukh. Rahul discusses the various capabilities of Cloud SQL and the best practices to maximize business continuity for applications. Watch along and hear firsthand from the session speaker about configuring and monitoring Cloud SQL for maximum availability. Chapters: 0:00 - Meet Rahul 0:22 - Common causes of downtime in Cloud SQL 1:16 - How does zero downtime affect gen AI apps? 2:25 - How is zero downtime achieved for Cloud SQL? 3:06 - Cloud SQL high availability best practices 4:30 - How to learn more & wrap up Resources: Cloud SQL documentation → https://goo.gle/4cV6NVn Watch more Cloud Next 2024 → https://goo.gle/Next-24 Subscribe to Google Cloud Tech → https://goo.gle/GoogleCloudTech #GoogleCloudNext Event: Google Cloud Next 2024 Speaker: Debi Cabrera, Rahul Deshmukh Products Mentioned: Cloud SQL
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Google Cloud Tech · Google Cloud Tech · 0 of 60

← Previous Next →
1 I’m going for it #GoogleCloudCertified
I’m going for it #GoogleCloudCertified
Google Cloud Tech
2 I had to get #GoogleCloudCertified
I had to get #GoogleCloudCertified
Google Cloud Tech
3 Be better overall at what you do #GoogleCloudCertified
Be better overall at what you do #GoogleCloudCertified
Google Cloud Tech
4 Cloud Monitoring on our radar #Analysis #Uptime
Cloud Monitoring on our radar #Analysis #Uptime
Google Cloud Tech
5 Introduction to Generative AI Studio
Introduction to Generative AI Studio
Google Cloud Tech
6 How to use Github Actions with Google's Workload Identity Federation
How to use Github Actions with Google's Workload Identity Federation
Google Cloud Tech
7 Introduction to Responsible AI
Introduction to Responsible AI
Google Cloud Tech
8 Networking updates and CDMC-certified architecture
Networking updates and CDMC-certified architecture
Google Cloud Tech
9 Create and use a Cloud Storage bucket
Create and use a Cloud Storage bucket
Google Cloud Tech
10 How to digitize text from documents
How to digitize text from documents
Google Cloud Tech
11 Faster analytical queries with AlloyDB
Faster analytical queries with AlloyDB
Google Cloud Tech
12 Next ‘23 sessions and FaaS Wave
Next ‘23 sessions and FaaS Wave
Google Cloud Tech
13 Introduction to Assured Open Source Software
Introduction to Assured Open Source Software
Google Cloud Tech
14 BigQuery Cost Optimization: Storage
BigQuery Cost Optimization: Storage
Google Cloud Tech
15 BigQuery Cost Optimization: Compute
BigQuery Cost Optimization: Compute
Google Cloud Tech
16 BigQuery Cost Optimization: Select Queries
BigQuery Cost Optimization: Select Queries
Google Cloud Tech
17 Remote Field Equipment Management with Manufacturing Data Engine
Remote Field Equipment Management with Manufacturing Data Engine
Google Cloud Tech
18 Supercharging your applications with Cloud SQL Enterprise Plus
Supercharging your applications with Cloud SQL Enterprise Plus
Google Cloud Tech
19 Vector Support on our radar #GenAI
Vector Support on our radar #GenAI
Google Cloud Tech
20 Architecting a blockchain startup with Google Cloud
Architecting a blockchain startup with Google Cloud
Google Cloud Tech
21 Kubernetes and multitasking updates!
Kubernetes and multitasking updates!
Google Cloud Tech
22 GKE: Using Kubernetes Events
GKE: Using Kubernetes Events
Google Cloud Tech
23 How to configure firewall rules for Cloud Composer
How to configure firewall rules for Cloud Composer
Google Cloud Tech
24 Vertex AI Embeddings API + Matching Engine: Grounding LLMs made easy
Vertex AI Embeddings API + Matching Engine: Grounding LLMs made easy
Google Cloud Tech
25 Geospatial analytics on our radar #EarthEngine #BigQuery
Geospatial analytics on our radar #EarthEngine #BigQuery
Google Cloud Tech
26 Ensuring requests are set in Kubernetes
Ensuring requests are set in Kubernetes
Google Cloud Tech
27 Cloud Next 2023, Google research program, and more!
Cloud Next 2023, Google research program, and more!
Google Cloud Tech
28 How to migrate projects between organizations with Resource Manager
How to migrate projects between organizations with Resource Manager
Google Cloud Tech
29 How to run #MySQL in Google Cloud
How to run #MySQL in Google Cloud
Google Cloud Tech
30 #GenerativeAI for enterprises and #Next2023
#GenerativeAI for enterprises and #Next2023
Google Cloud Tech
31 How Google Photos scales to store 4 trillion photos and videos
How Google Photos scales to store 4 trillion photos and videos
Google Cloud Tech
32 Google Cross-Cloud Interconnect (Demo 2)
Google Cross-Cloud Interconnect (Demo 2)
Google Cloud Tech
33 GKE Cost Optimization Golden Signals: Introduction
GKE Cost Optimization Golden Signals: Introduction
Google Cloud Tech
34 GKE Cost Optimization Golden Signals: Workload Rightsizing
GKE Cost Optimization Golden Signals: Workload Rightsizing
Google Cloud Tech
35 GKE Load Balancing: Overview
GKE Load Balancing: Overview
Google Cloud Tech
36 GKE Load Balancing: Best Practices
GKE Load Balancing: Best Practices
Google Cloud Tech
37 Disaster Recovery in GKE
Disaster Recovery in GKE
Google Cloud Tech
38 How to configure IP masquerade agent in GKE Standard clusters
How to configure IP masquerade agent in GKE Standard clusters
Google Cloud Tech
39 Enable and use GKE Control plane logs
Enable and use GKE Control plane logs
Google Cloud Tech
40 Compliance in Australia with Assured Workloads
Compliance in Australia with Assured Workloads
Google Cloud Tech
41 Creating budgets and budget alerts in Google Cloud #FinOps
Creating budgets and budget alerts in Google Cloud #FinOps
Google Cloud Tech
42 Cloud SQL Enterprise Plus on our radar #mySQL
Cloud SQL Enterprise Plus on our radar #mySQL
Google Cloud Tech
43 What's Next for Google Cloud?
What's Next for Google Cloud?
Google Cloud Tech
44 How Loveholidays scaled with Contact Center AI
How Loveholidays scaled with Contact Center AI
Google Cloud Tech
45 What is fleet team management in GKE?
What is fleet team management in GKE?
Google Cloud Tech
46 Troubleshoot VPC Network Peering
Troubleshoot VPC Network Peering
Google Cloud Tech
47 Introduction to DocAI and Contact Center AI
Introduction to DocAI and Contact Center AI
Google Cloud Tech
48 Cloud Run Direct VPC egress explained
Cloud Run Direct VPC egress explained
Google Cloud Tech
49 Database deployment options in GKE
Database deployment options in GKE
Google Cloud Tech
50 Analyze cloud billing data with #BigQuery
Analyze cloud billing data with #BigQuery
Google Cloud Tech
51 Tips to becoming a world-class Prompt Engineer
Tips to becoming a world-class Prompt Engineer
Google Cloud Tech
52 Serverless is simple. Do I need CI/CD?
Serverless is simple. Do I need CI/CD?
Google Cloud Tech
53 Accelerating model deployment with MLOps
Accelerating model deployment with MLOps
Google Cloud Tech
54 How Hawaii's Department of Human Services scaled with CCAI
How Hawaii's Department of Human Services scaled with CCAI
Google Cloud Tech
55 Pricing API on our #Radar
Pricing API on our #Radar
Google Cloud Tech
56 How Recommendations AI for Media can boost customer retention
How Recommendations AI for Media can boost customer retention
Google Cloud Tech
57 Troubleshooting: Node Not Ready Status
Troubleshooting: Node Not Ready Status
Google Cloud Tech
58 One weekend until Cloud Next 2023!
One weekend until Cloud Next 2023!
Google Cloud Tech
59 #GoogleCloudNext starts tomorrow!
#GoogleCloudNext starts tomorrow!
Google Cloud Tech
60 #GoogleCloudNext will be demand!
#GoogleCloudNext will be demand!
Google Cloud Tech

This video teaches how to maximize Cloud SQL database availability and achieve near-zero downtime, with best practices for high availability and disaster recovery.

Key Takeaways
  1. Create a shadow replica to ensure minimal downtime during maintenance
  2. Implement cross-region replication for disaster recovery
  3. Use Cloud SQL's high availability solution to protect against zone failures
  4. Set up advanced disaster recovery with cross-region replicas
💡 Cloud SQL's near-zero downtime capability is achieved through the use of shadow replicas and cross-region replication, allowing for minimal disruption to applications.

Related AI Lessons

Monolith vs Microservices: A Real-World Architectural Autopsy
Learn to decide between monolith and microservices architectures for your project and why it matters for scalability and maintainability
Dev.to · Erwin Wilson Ceniza2
How I Structured My Next.js 14 App Router Project — And Why It Scales
Learn how to structure a scalable Next.js 14 App Router project for better organization and maintainability
Dev.to · Mbanefo Emmanuel Ifechukwu
Let’s write a simple Lexer in Go
Learn to build a simple lexer in Go to understand source code tokenization
Medium · Programming
The Hardest Part Of Microservices Is Undoing What Already Succeeded
Learn how to refactor monolithic ERP systems into microservices, focusing on undoing existing successful implementations
Medium · Programming

Chapters (6)

Meet Rahul
0:22 Common causes of downtime in Cloud SQL
1:16 How does zero downtime affect gen AI apps?
2:25 How is zero downtime achieved for Cloud SQL?
3:06 Cloud SQL high availability best practices
4:30 How to learn more & wrap up
Up next
Retracing It All With My Son
Ginny Clarke
Watch →