python - Dealing with Concurrent Requests & Connections in Cloud SQL -
we have created app on app engine using datastore. have been led using cloud sql wanted use joins, nested queries , functions such average
, total
etc. data gets migrated datastore cloud sql daily cron jobs.
i going through below links know basic details related performance , limitations.
- https://cloud.google.com/sql/docs/diagnose-issues#data-issues
- https://cloud.google.com/sql/pricing#v1-pricing
- https://cloud.google.com/sql/faq#sizeqps
so far looks tier d0 or d1 serve purpose intended.
few things confusing me:
a) pending connection , how affect ? not sure if throws 1033 instance has many concurrent requests, when exceeds 100. how handle ? can create 250 connections use 100 @ time ?
b) 250 concurrent connections. should throw error many connections if exceeds 250
c) per app engine instance 12 concurrent connections per sql instance. how ensure no more 12 connections per app engine instance ?
i have gone through following forums:
what connection limits google cloud sql app engine, , how best reuse db connections?
what's approach managing db connection in google cloud sql (gae) python app?
but people face issues in that.
d) got operationalerror:
(2013, "lost connection mysql server @ 'reading initial communication packet', system error: 38") error when tried test 1000+ requests.
we have 1500+ people using our system concurrently , looks fail. confused if can use cloud sql due above mentioned issues. solutions should available though.
can help?
Comments
Post a Comment