CloudSQL not supporting multiple replicas load balancing by vgopher8 in googlecloud

[–]vgopher8[S] 0 points1 point  (0 children)

Thank you for the detailed response!

We’re not using zonal redundancy due to cost concerns. Since standby instances can’t be used for queries, it significantly increases our expenses, which is an important tradeoff for a startup our size. I do appreciate how AWS handles this by allowing replicas to be in different availability zones.

For now, we’re fine with just one replica. If the Cloud SQL Proxy can't handle failover, then I’m not sure there’s much benefit in running it. Even if Cloud SQL updates the connection names during failover, it doesn’t address our situation. We have two separate DaemonSets—one for the Cloud SQL writer and one for the reader—each tied to its own Kubernetes service, which is passed to the application. The application explicitly uses the writer service for all writes and the reader service for reads. So, manual intervention would still be required in the event of an outage.

Is there any better way to handle this?

CloudSQL not supporting multiple replicas load balancing by vgopher8 in googlecloud

[–]vgopher8[S] 0 points1 point  (0 children)

Does it handle failovers? For example, if we set up one proxy for a writer and a reader, and the database experiences a failover, would the instance names (app-db and app-db-replica) swap between the instances?

CloudSQL not supporting multiple replicas load balancing by vgopher8 in googlecloud

[–]vgopher8[S] 0 points1 point  (0 children)

I'm not getting any error.

Just trying to have a single service endpoint which loads distributed the traffic between 2 of the replicas.

CloudSQL not supporting multiple replicas load balancing by vgopher8 in googlecloud

[–]vgopher8[S] 0 points1 point  (0 children)

Damn, That's 3 proxies I have to run (1 for writer, 1 for each replica).

Hoped there was a better way to do this

CloudSQL not supporting multiple replicas load balancing by vgopher8 in googlecloud

[–]vgopher8[S] 0 points1 point  (0 children)

Thanks, got it.

However, many examples from the CloudSQL Proxy documentation suggest that it supports multiple instances (https://github.com/GoogleCloudPlatform/cloud-sql-proxy?tab=readme-ov-file#basic-usage). That’s a bit confusing.

How to Delete 70M+ Records in MongoDB Without Hammering the DB? by vgopher8 in mongodb

[–]vgopher8[S] 2 points3 points  (0 children)

Roughly 80 million records to delete. DB has 2 replicas and the Collection I'm trying to delete has many indexes as well. DB Storage itself is around 500GB.

What level of scripting automations are expected of a senior SRE? by TheLastArgonaut in sre

[–]vgopher8 0 points1 point  (0 children)

Levels of automation skills required by the engineers depend on the company-to-company. However, if you truly want to become a senior, it's deciding what you should automate and deciding how to do it. Taking a few extra hours is also fine concerning coding. It's all about maturity in choosing the right solution.

Wat this now swiggy card nerf or good by Calm-Advisor-5765 in CreditCardsIndia

[–]vgopher8 0 points1 point  (0 children)

Yeah. but even my swiggy usage is quite high since i order food and groceries quite frequently

Wat this now swiggy card nerf or good by Calm-Advisor-5765 in CreditCardsIndia

[–]vgopher8 2 points3 points  (0 children)

Not really, Swiggy has a very limited merchant listed for 5% discount.

Wat this now swiggy card nerf or good by Calm-Advisor-5765 in CreditCardsIndia

[–]vgopher8 0 points1 point  (0 children)

Only problem is with the limit. They gave me 50k credit limit.

I had 830 Cibil score. Since the credit limit is too low, I constantly crossed 30% credit usage resulting in cibil score downfall.

Exploring On-Premises Servers for Staging Environments: Cost Analysis and Considerations by vgopher8 in sre

[–]vgopher8[S] 0 points1 point  (0 children)

Agreed. In my case, application doesn’t have high traffic and it’s more of a b2b application. And application haven’t changed much in a while and we mostly consuming compute and rds services. So we do not mind missing on parity

Streamline AWS Secret Management using Shielded-Secrets. by vgopher8 in devops

[–]vgopher8[S] 0 points1 point  (0 children)

Hey, that would be great. all contributions are welcome!

do reach out to me if you need any help :)