DEV Community

Discussion on: Setup Hasura at Google Cloud Run

Collapse
 
clementac profile image
clementAC

Hi,
Nice and simple tutorial thank you. What about scaling?
Cloud run is by nature autoscalable but the cloud sql database is not.
I tried to make lots of request at the same time and everything went down 😕.
There is a max connection we can't outpass. It seems the pooling in hasura is not effective. I have either messages that indicates me 'server error try in 30 seconds' or 'too many connections'.
Reducing the number of concurrency and container make the 'too many connections' disapear but not the 'try in 30 seconds' one.

Do you face the same problem as me?

Collapse
 
davidoliveira profile image
David Oliveira

Hi,
Google Cloud SQL has enough power for my use cases, but maybe this article could help you: cloud.google.com/community/tutoria...
The example is with MySQL but I am pretty sure the same could be applied to Postgres at Goolgle Cloud.