Resources and health checks
Limit CPU and memory, watch usage, and restart apps that stop answering.
On this page
The Overview tab of an application shows its live CPU and memory use, and a history over the last hour, 24 hours, 7 days or 30 days.
For a compose stack, Stack containers lists each container with its own figures and logs.
Limits keep one application from starving the server:
- over its CPU limit, an app is slowed down;
- at its memory limit, the kernel kills it instead of letting it take the whole server down.
Set them in Overview → Container resources, in cores and MB. Empty or 0 means unlimited.
| Change | When it applies |
|---|---|
| Setting or changing a limit | Immediately, on the running container. |
| Removing a limit | At the next deployment. Docker can’t lift a limit from a running container. |
The panel says when a redeploy is still needed.
A health check regularly requests a path of your app over HTTP, and restarts the app when it stops answering.
- On the application’s page, open Settings → Health check.
- Enter a path, such as
/health. - Save.
The path is checked every 30 seconds. After 3 failures in a row, the container is restarted, and a notification is sent.
Leave the path empty to turn the check off.
The Overview tab shows the share of health checks that answered, for today, the last 7, 30 and 90 days, and one bar per day for the last 90 days (30 on a phone). Hover a bar to see its date and how many checks failed.
| Colour | Checks answered that day |
|---|---|
| Green | 99.5% or more |
| Amber | 95% to 99.5% |
| Red | Less than 95% |
| Grey | No check ran |
Only the health checks count: an app without a health path has no uptime, and a stopped app is not checked, so its days stay grey. Days are in UTC.
Checks are kept one by one for 7 days, then counted per day for 90 days. To show the uptime to people who can’t sign in, see Status.