Re:Google Cloud vs. AWS Onboarding Comparison
by cbushko on Wednesday February 24, 2021 @02:10PM
(#26254185)
Ours cloudsql-proxies were on running on GKE so they were not "that bad".
Switching to private ip definitely had the largest impact by far on performance.
Re:Google Cloud vs. AWS Onboarding Comparison
by DangitBobby on Wednesday February 24, 2021 @07:07PM
(#26258017)
If you need very high throughput I can appreciate this advice. Generally though, cloudsql-proxy is fast enough for most use-cases.
Re:Google Cloud vs. AWS Onboarding Comparison
by nlightcho on Wednesday February 24, 2021 @07:37PM
(#26258287)
What about running it as a sidecar in the backend pods?
Re:Google Cloud vs. AWS Onboarding Comparison
by lukeschlather on Wednesday February 24, 2021 @09:04PM
(#26258862)
This causes some other problems... Kubernetes doesn't do a very good job of treating the sidecar as part of the main container so you will get random disconnects in your app when the proxy is restarted unexpectedly. This is actually why we abandoned it, just to deal with the random hiccups. Hadn't even benchmarked it.
^ Do not use cloudsql-proxy ever. GCP docs are wrong. DO NOT proxy all your db requests through a single VM.