Wednesday, September 6, 2017

Re: [google-cloud-sql-discuss] Issues with Cloud SQL + App Engine

Are you connecting by IP? You should be connecting via a special UNIX sockets to avoid dealing with IP whitelisting: https://cloud.google.com/sql/docs/mysql/connect-app-engine

On Wed, Sep 6, 2017 at 5:03 PM, Mike Hardy <mhardy@localinsights.io> wrote:
Hi, we have a web app that runs on GAE and Cloud SQL. GAE fails to communicate with postgres Cloud SQL unless we manually whitelist the GAE IP addresses. Once we whitelist the IP, voila, GAE, Cloud SQL, and our app all work well. However, this process is not scalable. The app will scale up and down and will generate new instances with new IP addresses. It will be impossible to whitelist these IP addresses. Our understanding was that GAE and Cloud SQL are already integrated and dont need this setup but clearly something is going. We're using GAE Flex and Cloud SQL Postgres. How do we try to fix this?

--
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/021e00a1-d8e4-4841-a3b6-669bae879cfb%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/CABDU3p164h%3DET7PQEaAYDWv8OuCeTsR8%3DwaxEhbMAecH10MTGA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment