Unable to connect to postgres Cloud SQL instance from app engine

401 views
Skip to first unread message

kishore k

unread,
Dec 17, 2017, 1:13:49 PM12/17/17
to Google Cloud SQL discuss
I am able to connect to Postgres Cloud SQL instancein my local but when i deploy it and accessing from app engine { Error: connect ETIMEDOUT 35.226.*.*:5432      at Object._errnoException (util.js:1024:11)      at _exceptionWithHostPort (util.js:1046:20)   at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)

Please suggest me how can I resolve it.

I have the Postgres instance in the same project

Jordan (Cloud Platform Support)

unread,
Dec 18, 2017, 3:28:28 PM12/18/17
to google-cloud...@googlegroups.com
Connections to your Cloud SQL instance from your App Engine application could be timing out due to a number of reasons. It is recommended to ensure that your App Engine application is properly authenticated, and that you are not running into any of the connection limits

You are allowed a maximum of 100 concurrent connections to your PostgreSQL instance, and limited to 12 concurrent connections from each App Engine instance. If your instance has hit its limit, App Engine will timeout if it attempts to make a new connection. It is recommended to reuse your open connections with a connection pool, and share them between App Engine requests. 

- Note that Google Groups is for general product discussions and is not for technical support. If you require further support connecting to your Cloud SQL instance it is recommended to ask your full detailed questions on Stack Overflow using the supported Cloud tags. 
Reply all
Reply to author
Forward
0 new messages