Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google App Engine logs a mess of New connection for ... and Client closed local connection on

Checking out my logs on my App Engine. I get A LOT of

New connection for "<project_id>-central1:<project_name>"
Client closed local connection on /cloudsql/<project_id>-central1:<project_name>/.s.PGSQL.5432 

Like happening multiple times a second and just floods my logs.

I was unable to find any information relating to this and maybe this is just a non-issue.

  • Is there any way to prevent this? (excluding filtering)

  • Is this inadvertently driving up the cost of operation of opening and closing?

I am using Django on the app engine.

like image 463
zyeek Avatar asked May 31 '18 20:05

zyeek


People also ask

Can App Engine Standard connect to on Prem database?

On premises Because App Engine and Compute Engine use the same networking infrastructure, you can use the VPN connection to establish a connection between the App Engine app and your on-premises database using the database server's internal IP address.

How do I connect to Cloudsql?

In the Google Cloud console, go to the Cloud SQL Instances page. To open the Overview page of an instance, click the instance name. Select Connections from the SQL navigation menu. In the Authorized networks section, click Add network and enter the IP address of the machine where the client is installed.


1 Answers

I found this post where it's mentioned that setting -verbose=false will turn off the new/closed connection logs.

like image 190
Federico Panunzio Avatar answered Oct 06 '22 05:10

Federico Panunzio