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.

Members can save this page, take notes and track progress. See membership · Sign in

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.

See plans Sign in

Reference for this lesson

Free pages on the services and comparisons in this lesson.

Open in the app to mark lessons complete, take notes and track your progress.

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake