Friday, October 30, 2015

Re: [google-cloud-sql-discuss] Loosing connections and temporary slowness in Cloud SQL

There are several possible causes for the "Lost connection to MySQL server at 'reading initial communication packet'" error:
  • This occurs if your GCE instance's IP address is not authorized to access the Cloud SQL instance. I doubt this is the case because it would not be an intermittent error.
  • This error also occurs if your instance is unavailable, for example because it is taking a long time to restart or start. If you instance has "on demand" activation, you might want to try "always on" mode and see if that helps. Long restart times can also be caused by a large general log; If you have ever had it enabled try truncating the general log.
  • This message might occur if you are hitting one of the connection limits. Take a look at the "active connections" graph for your instance on the developers console, does it show a lot of connections when you get the error?
  • Do you open and close connections extremely frequently? This can cause you to hit a connection limit even if the total number of concurrent connections does not increase too far.
Also remember the occasional error connection to Cloud SQL is expected. Please review the Cloud SQL SLA to get an idea of the error rate we aim for.

Yours,
David

On Fri, Oct 30, 2015 at 1:54 AM, Joakim <joakim@biddl.com> wrote:
We have a Django Application (hosted on Compute Engine), that uses Cloud SQL. We've set up really frequent monitoring of it in the Load Balancers health checks. We do however about once per day get a bunch of the following errors: django.db.utils:OperationalError: (2013, 'Lost connection to MySQL server at \'reading initial communication packet\', system error: 0 "Internal error/check (Not system error)"').

Typically the MySQL/Cloud SQL interaction of the health checks takes less than 20ms, however a few times a day the it can suddenly take 500-1200 ms. 

The database is really lightly loaded (health checks count for > 95% of the requests to the system) and we've not seen any similar issues during heavy load testing. There just seems to be something randomly causing Cloud SQL to perform really slowly for a request or two or drop the connections and then continue to work normally. 

What could be the reason to both loosing the connection and to the random, but extreme slowness? Any ideas on how to possibly fix both issues?

--
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/21b7c9b2-eee6-459c-9b69-ba7d2fcbd740%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/CAJZK_bbbHc2dPjmbDZ9rOZW8v9ROrwFER180g%2Byb%2BuTLGRF65A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

[google-cloud-sql-discuss] Loosing connections and temporary slowness in Cloud SQL

We have a Django Application (hosted on Compute Engine), that uses Cloud SQL. We've set up really frequent monitoring of it in the Load Balancers health checks. We do however about once per day get a bunch of the following errors: django.db.utils:OperationalError: (2013, 'Lost connection to MySQL server at \'reading initial communication packet\', system error: 0 "Internal error/check (Not system error)"').

Typically the MySQL/Cloud SQL interaction of the health checks takes less than 20ms, however a few times a day the it can suddenly take 500-1200 ms. 

The database is really lightly loaded (health checks count for > 95% of the requests to the system) and we've not seen any similar issues during heavy load testing. There just seems to be something randomly causing Cloud SQL to perform really slowly for a request or two or drop the connections and then continue to work normally. 

What could be the reason to both loosing the connection and to the random, but extreme slowness? Any ideas on how to possibly fix both issues?

--
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/21b7c9b2-eee6-459c-9b69-ba7d2fcbd740%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thursday, October 29, 2015

[google-cloud-sql-discuss] Re: How to increase Google Cloud Sql instance storage size

Hi again Ramesh,

Apologies, this document does show how to change your size, but I didn't click that, without support, you cannot go over 250 GBs for your cloudSQL instance, as explained here.

There is a reason as to why we limit customers without support, and it's simply because restoring a backup of more than 250 GB can take a long time. We have this 250 GB limit to make sure that, if something goes wrong, there is a recourse for the customer to reach someone in support.

So, while the first doc I linked explains how to change your instance size, you will require support to enable that increased limit for you.

Cheers!

On Thursday, October 29, 2015 at 10:54:02 AM UTC-4, Patrice (Cloud Platform Support) wrote:
Hi Ramesh,

I believe this document explains how to do it :). It should let you increase your size. It will need a restart, but this will increase your size.

Cheers!

On Thursday, October 29, 2015 at 6:13:33 AM UTC-4, ramesh...@gmail.com wrote:

Hi


We are a google cloud sql paid customer.


We are having default 250 GB storage space instance, we want to increase it up to 500 GB (The maximum limit).


How to do it?


As of now we are in Bronze support plan



Thanks

--
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/1bc0c64a-29b9-4ebe-b61f-b6fff59b282b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[google-cloud-sql-discuss] Re: How to increase Google Cloud Sql instance storage size

Hi Ramesh,

I believe this document explains how to do it :). It should let you increase your size. It will need a restart, but this will increase your size.

Cheers!

On Thursday, October 29, 2015 at 6:13:33 AM UTC-4, ramesh...@gmail.com wrote:

Hi


We are a google cloud sql paid customer.


We are having default 250 GB storage space instance, we want to increase it up to 500 GB (The maximum limit).


How to do it?


As of now we are in Bronze support plan



Thanks

--
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/369e607b-fd10-40da-ab2d-b192e125389b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[google-cloud-sql-discuss] How to increase Google Cloud Sql instance storage size

Hi


We are a google cloud sql paid customer.


We are having default 250 GB storage space instance, we want to increase it up to 500 GB (The maximum limit).


How to do it?


As of now we are in Bronze support plan



Thanks

--
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/23982a36-305c-4124-a016-e2adc741bbf7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Wednesday, October 21, 2015

[google-cloud-sql-discuss] Re: Ipv6 connectivity from Sequel Pro

Salutations,

This is generally seen when you are trying to connect to the instance from a IPv4 address. If you want to use the IPv6 address you must connect with a device that has IPv6 as well.

The screenshot you sent does not work.

On Wednesday, October 21, 2015 at 4:30:39 AM UTC-4, lanzalibre wrote:
Hi,

I am having issues in connecting to my database from sequel Pro, Mysqlworkbench or even the mysql prompt. I am using ssh connection. It works with the ipv4 address but not with the ipv6 address.

Here is a link so you can see that the single difference is the ip address I am using and according to google both point to the same mysql database.

Regards,

--
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/820d4c32-aa71-4679-8447-6360081498a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[google-cloud-sql-discuss] Ipv6 connectivity from Sequel Pro

Hi,

I am having issues in connecting to my database from sequel Pro, Mysqlworkbench or even the mysql prompt. I am using ssh connection. It works with the ipv4 address but not with the ipv6 address.

Here is a link so you can see that the single difference is the ip address I am using and according to google both point to the same mysql database.

Regards,

--
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/724bf54f-9d76-4cd6-8161-44fb0a1b1e5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.