Why is my app's database connection timing out?

High CPU utilization can cause timeouts between your app and database. Check your app’s CPU utilization and, if your app is using most of its CPU, consider either scaling your app to have additional CPU resources or reducing concurrency in your app to reduce the CPU load.

If your app is not using most of its CPU, check your app’s connection configuration and ensure it is correct. If you’re using a DigitalOcean Managed Database, review your connection parameters.

If an app’s health check fails, the app currently does not restart. This is because App Platform does not currently support liveness probes. An app only automatically restarts if the app crashes or if its disk or RAM usage exceeds the its limits.
You can find the client IP address of a request connecting to your app in the do-connecting-ip HTTP header.
Dedicated egress IPs route egress (outbound) traffic from an app. To route ingress (inbound) traffic to an app, use one of App Platform’s public ingress IPs.
In this article...