Decrease performance when conecting to Cloud SQL via proxy

45 views
Skip to first unread message

Phongthorn Khamkankaew

unread,
Oct 16, 2019, 10:16:43 AM10/16/19
to Google Cloud SQL discuss
I have to migrate from old infrastructure and use Cloud SQL in my first choice.
So I found my application performance decreasing when connecting to Cloud SQL from GKE.

So anyone can suggest or help me to configure this issue?

FYI, application uses PHP and database uses Postgres.

George (Cloud Platform Support)

unread,
Oct 16, 2019, 12:51:22 PM10/16/19
to Google Cloud SQL discuss
How did you establish that application performance is decreasing when connecting to Cloud SQL from GKE? What did you compare your measurement data to? More details are needed for a proper investigation. 

To move forward with such an investigation, following information is needed, and has to be verified: 

1. Project-id.
2. Name of the Cloud SQL instance and VM instances.
3. Verify the Cloud SQL connection latency directly from GKE instances using IP address.
3. Verify the network latency directly from both GKE instances (as you mentioned above) to Cloud SQL instance using ping.
4. Verify if you experience same latency when you connect to the Cloud SQL using the Cloud SQL Proxy.

Information and verification implied at the 4 points above requires a high level of privacy in exchanging messages. This is not possible in publicly visible forums as here in Groups. In Public Issue Tracker you may opt for "private issue", and maintain desired level of privacy. You are encouraged to open a new private issue in Tracker, with information described at the 4 points above.  

Phongthorn Khamkankaew

unread,
Oct 17, 2019, 8:51:28 AM10/17/19
to Google Cloud SQL discuss
Thanks for your reply. I compare with response time when I call an API from my application between new and old infrastructure and see connect to Cloud SQL slower
than manual Postgres installation in GCE.

I already try 3 and 4 I got the same response time.

Other information looks like response time increases when it has low traffic at midnight.

How can I improve this? 

เมื่อ วันพุธที่ 16 ตุลาคม ค.ศ. 2019 23 นาฬิกา 51 นาที 22 วินาที UTC+7, George (Cloud Platform Support) เขียนว่า:

George (Cloud Platform Support)

unread,
Oct 18, 2019, 12:36:19 PM10/18/19
to Google Cloud SQL discuss
Further investigating this latency issue, more in depth, requires communicating of private information such as project names. Publicly postings in Groups are not suitable for this level of information exchange. You are encouraged to open a private issue of similar content in Public Issue Tracker. You should choose a PIT component marked as „private”, to secure appropriate levels of privacy for your data. 
Reply all
Reply to author
Forward
0 new messages