Google Cloud in Production · Running Workloads: Cloud Run and GKE
Cloud Run Scaled; the Database Didn't
A traffic spike scaled Cloud Run to hundreds of instances, each opening database connections, and Cloud SQL ran out of connections. Cap instances, size pools against the database, and connect through the Cloud SQL connectors.
Scenario
Example team: the orders API runs on Cloud Run with default settings and a connection pool of 10 per instance to a
Cloud SQL for PostgreSQL instance with max_connections of 400.
Premium course
Keep reading with a membership
The rest of this lesson, its practice questions and the whole Google Cloud in Production course are part of the membership.
Reference for this lesson
Free pages on the services and comparisons in this lesson.
- Cloud Run vs GKE vs Compute Engine · Comparison
- Cloud Run · Service
- Cloud SQL · Service
Open in the app to mark lessons complete, take notes and track your progress.