# Limits & quotas

Source: https://docs.apphaven.eu/reference/limits

Every platform boundary on one page. Where a limit is a default rather than a
hard ceiling, it says so; project quotas in particular are raised on request.

## Deployment size

Set per app in **Settings**; every deployment of the app runs at this size.
See [CPU, memory & storage](https://docs.apphaven.eu/resources.md).

| Resource | Values |
| -------- | ------ |
| CPU      | 0.25, 0.5, 1, 2, or 4 cores |
| Memory   | Steps from 0.5 to 16 GB, between 1× and 4× the CPU cores (see the [matrix](https://docs.apphaven.eu/resources.md#cpu-and-memory)) |
| Storage  | 5–100 GB, in 5 GB steps |
| Default size (new apps) | 0.5 CPU · 1 GB memory · 5 GB storage |

Storage is all-inclusive (volumes, database data, and
[backup history](https://docs.apphaven.eu/backups.md#how-backups-relate-to-your-storage-size) share the
one budget) and can grow but never shrink. Size changes apply on the next
deploy of a stopped deployment ([how to resize](https://docs.apphaven.eu/resources.md#changing-the-size)).

## Project quotas

Counted across a project's **running** deployments; enforced when a deploy is
submitted. Defaults shown; contact support to raise any of them.

| Quota | Default |
| ----- | ------- |
| Total CPU | 2 cores |
| Total memory | 4 GB |
| Total storage | 25 GB |
| Running deployments | 5 |

Stopping a deployment releases its CPU, memory, and deployment slot. Its
storage stays counted until the deployment is deleted.

## Manifest

| Rule | Limit |
| ---- | ----- |
| Services per app | 1–32 |
| Volumes per app | 32 |
| Ports | 4 per service, 4 per app; each unique within its service and in the range 1–65535. Each one is an [entry point](https://docs.apphaven.eu/manifest.md#ports-and-addresses) |
| Environment variables | 128 per service |
| Docker build arguments | 64 per service |
| Volume mounts | 32 per service |
| Service dependencies | 32 per service |
| Healthcheck command items | 16 |
| Managed database services per deployment | 4 |
| PostgreSQL versions | `"17"` |
| Service and volume names | 1–63 characters: letters, digits, `_`, `-`; must start with a letter or digit ([naming rule](https://docs.apphaven.eu/manifest.md#naming-rule)) |
| Public-path suggestions (`auth.public_paths`) | 10 per manifest ([suggestions only](https://docs.apphaven.eu/reference/manifest.md#authpublic_paths)) |

## Access

Set per entry point in the console; see [Access control](https://docs.apphaven.eu/access.md#public-paths).

| Rule | Limit |
| ---- | ----- |
| Public paths per entry point | 10 |
| Public path length | 128 characters |
| Public path form | An exact path (`/healthz`) or a prefix ending in `/*` (`/api/*`) |

## Healthchecks

Full field reference in
[Container services: healthchecks](https://docs.apphaven.eu/services/container.md#healthchecks).

| Field | Range | Default |
| ----- | ----- | ------- |
| `interval` | 1s–5m | 10s |
| `timeout` | 1s–5m | 3s |
| `retries` | 1–20 | 3 |
| `start_period` | 0s–5m | 0s |

## Backups & restore

See [Backups & recovery](https://docs.apphaven.eu/backups.md) and [Restoring your app](https://docs.apphaven.eu/restore.md).

| Rule | Limit |
| ---- | ----- |
| Retention window | 7, 14, or 30 days per app; 7 for new apps |
| Restore points | Daily, before each production deploy, and before each production restore; all kept for the retention window |
| Database change stream | From the daily restore point before last to now: one to two days. Up to a quarter of the storage size per managed database, or 2 GB if that is more, counted in your storage; starts afresh when production is restored or when the changes no longer fit |
| App versions | Every production version that ran within the retention window, billed as storage on top of the allocated storage |
| Production restores | 5 within the retention window |
| Restore previews | Always private; not counted towards the app's maximum previews; counted towards project quotas |

## Logs

| Log | Behaviour |
| --- | --------- |
| Build logs | Captured for every build, success or failure, and kept as the deployment's build history. Very long build output keeps its final portion: the end of the log, where errors live. |
| Container logs | Fetched on demand from the running containers, newest first, with paging back through history. |
| Crash output | When a deployment fails, the final output of its containers is captured and kept with the deployment. |

Logs belong to their deployment and are removed when the deployment is
deleted.

## Where to go next

- [CPU, memory & storage](https://docs.apphaven.eu/resources.md): choosing and changing sizes.
- [Manifest reference](https://docs.apphaven.eu/reference/manifest.md): every valid field.

## Configuration proposals

[Change proposals](https://docs.apphaven.eu/proposals.md) allow 50 items per batch or manifest, a 160-character batch title, 1000-character reasons, and 256 KiB CLI payloads. Each app can have 100 pending batches. The limit of 10 active public paths still applies.
