Tuesday, July 23, 2019

[google-cloud-sql-discuss] Re: Console output

You can get a JSON/CSV log output from Stackdriver logs but it the message would likely only occur when the client is closed as that is when it is logged so it may not be possible to export a log before the client is closed. Stackdriver monitoring also provides details on viewing Cloud SQL metrics, including instance summary information, usage data, operation logs, and database logs. 

A small number of those errors may be expected but if it is frequent and/or causing latency it may be an issue with connection management, this document provides details on best practices suggestions. If you are implementing the best practices, please specify your use case (what service(s) are connecting with the proxy, the frequency of the connection issues etc.) as there are many causes of these connection issues or if it is expected. 

Please note that if the proxy process is terminated, all existing connections through it are dropped so making Cloud SQL proxy a persistent service is suggested. Simply restarting the proxy whenever the error occurs is likely not the solution as it would cause all existing connections to end which can cause issues for users. 

--
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/ee1549be-1984-4962-b48b-707846b5ff15%40googlegroups.com.

No comments:

Post a Comment