Saturday, September 24, 2016

Re: [google-cloud-sql-discuss] A GCE instance connecting to two (or more) Cloud SQL databases via multiple cloud-sql-proxy-instances?

You don't need to run multiple instances of the proxy. You can specify multiple instances in the instances parameter (comma separated).

On Sat, Sep 24, 2016 at 10:25 AM Roshan Dawrani <roshandawrani@gmail.com> wrote:
Hi,

My app on a GCE instance needs to connect to two Cloud SQL databases.

Can I run two instances of cloud_sql_proxy and point use different "local port + cloud instance name" combinations for them?

I gave it a quick try and was able to put data in both the DBs through different port-based proxies, but I just want to be sure that it's something that's officially supported and expected to cleanly work.

Could someone please confirm?

Thanks,
Roshan

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/e67be789-a6a9-4bed-b487-e3ed9470cf2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/CABDU3p01ut8bccN8mV3%2B54vB-ofanLOtiK83ORcYebcaf3QnHA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment