Layer 3 · self-hosting reality check
What it actually takes to self-host Prefect
The docs say 1 GB. In practice you want 4 GB server. Here is the honest version — real requirements, real monthly cost, what you will be maintaining, and the one thing that catches people out.
Usually reached from Astronomer (Astro) alternatives, where Prefect is one of the picks.
| RAM — documented minimum | 1 GB |
|---|---|
| RAM — what it really needs | 4 GB server |
| CPU | 2 vCPU |
| Disk | Modest |
| Monthly cost | $24–40/mo self-hosted, against Prefect Cloud's per-workspace pricing |
| Setup time | 2 hours |
| How you install it | container plus PostgreSQL; workers run wherever the work should happen |
| Ongoing maintenance | Low to moderate — considerably lighter than Airflow. |
| Where it stops scaling | Thousands of flow runs. Much lighter operationally than Airflow for comparable work. |
The thing that catches people out
Self-hosted Prefect Server does not include the features that make Prefect Cloud compelling — automations, events, RBAC and the managed work pools are cloud-only. Teams migrate off Cloud to save money, then discover the workflow they built depended on an automation that does not exist in the open-source server. Check your feature usage before moving, not after.
When not to self-host Prefect
You rely on Prefect Cloud's automations or RBAC. The self-hosted server is the orchestration core, not the whole product.
Every guide here carries this section. A site that only ever tells you to self-host is selling something — the useful answer is sometimes no.
Other Layer 3 self-hosting guides
Common questions
- How much RAM does Prefect actually need?
- 4 GB server in practice. The documented minimum is 1 GB, which is the figure at which the process starts rather than the figure at which it works under real use. 2 vCPU alongside it.
- What does self-hosting Prefect cost per month?
- $24–40/mo self-hosted, against Prefect Cloud's per-workspace pricing This is commodity VPS pricing and excludes your time, which is the larger cost for most people — budget for low to moderate — considerably lighter than Airflow.
- How long does it take to set up Prefect?
- 2 hours, via container plus PostgreSQL; workers run wherever the work should happen.
- When should I NOT self-host Prefect?
- You rely on Prefect Cloud's automations or RBAC. The self-hosted server is the orchestration core, not the whole product.
- What is the most common mistake when self-hosting Prefect?
- Self-hosted Prefect Server does not include the features that make Prefect Cloud compelling — automations, events, RBAC and the managed work pools are cloud-only. Teams migrate off Cloud to save money, then discover the workflow they built depended on an automation that does not exist in the open-source server. Check your feature usage before moving, not after.