A GCE instance connecting to two (or more) Cloud SQL databases via multiple cloud-sql-proxy-instances?

265 vistas
Ir al primer mensaje no leído

Roshan Dawrani

no leída,
24 sept 2016, 1:25:00 p.m.24/9/2016
para Google Cloud SQL discuss
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

Vadim Berezniker

no leída,
24 sept 2016, 3:24:56 p.m.24/9/2016
para Google Cloud SQL discuss
You don't need to run multiple instances of the proxy. You can specify multiple instances in the instances parameter (comma separated).

--
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-d...@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.

Roshan Dawrani

no leída,
24 sept 2016, 9:19:49 p.m.24/9/2016
para Google Cloud SQL discuss
On Sunday, 25 September 2016 00:54:56 UTC+5:30, Vadim Berezniker wrote:
You don't need to run multiple instances of the proxy. You can specify multiple instances in the instances parameter (comma separated).

Thanks again, Vadim. Tried the same and ran into no issues. 


On Sat, Sep 24, 2016 at 10:25 AM Roshan Dawrani <roshan...@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+unsub...@googlegroups.com.
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos