Data13 min read•Updated November 2026

VPS Hosting for Apache Airflow

Quick answer

To run Apache Airflow on a VPS, install a supported Airflow version with the official constraints file or use the official Docker image, and use PostgreSQL (or MySQL) as the metadata database rather than SQLite. Start with LocalExecutor on a single server, and move to CeleryExecutor with workers when tasks outgrow one machine. Run the scheduler, DAG processor and API server or webserver as supervised services behind Nginx with HTTPS and authentication, keep DAG top-level code light, store credentials in connections or a secrets backend, ship task logs to durable storage, and monitor scheduler health and task failures.

Airflow is the most widely used open-source platform for scheduling and monitoring data pipelines written in Python. Teams use it for ETL jobs, reporting, machine learning pipelines and any scheduled work with dependencies between steps. A VPS is a good home for small and medium Airflow installations: predictable cost, private access to databases and enough resources if you size for the actual task workload.

Components

  • Scheduler: decides which tasks should run and queues them.
  • DAG processor: parses DAG files (a separate component in Airflow 3).
  • API server / webserver: the UI and API.
  • Executor: how tasks run (locally, on Celery workers, or as Kubernetes pods).
  • Metadata database: PostgreSQL or MySQL storing DAG runs, task states and configuration.
  • Triggerer: runs deferrable operators efficiently (optional).

Airflow 3 changed several components and APIs compared with Airflow 2; follow the documentation for the version you install, and the upgrade guide if migrating.

Choosing an Executor

ExecutorHow it worksUse
LocalExecutorTasks run as processes on the scheduler machineSingle-server setups; simple and reliable
CeleryExecutorTasks are queued to Celery workers via Redis or RabbitMQSeveral worker servers, separate queues
KubernetesExecutorEach task runs in its own podTeams already running Kubernetes

Start with LocalExecutor; most small teams never need more. For Celery details, see our Celery guide.

Installation

Install Airflow with pip using the official constraints file for your Airflow and Python versions, which pins compatible dependencies, or build on the official Docker image. The project's sample Docker Compose file is intended for learning and testing; for production, adapt it carefully or use your own deployment with proper secrets, persistence and monitoring. Use PostgreSQL for the metadata database (see our database tuning guide) and set a strong secret key and Fernet key for encrypting connection passwords.

DAG Best Practices

  • Keep top-level DAG code fast: no database queries or API calls when the file is parsed.
  • Make tasks idempotent so reruns and backfills produce the same result.
  • Push heavy processing to the systems built for it (databases, Spark, external services) and use Airflow to orchestrate.
  • Pass small values between tasks; store large data in object storage or databases.
  • Set retries, retry delays and execution timeouts per task.
  • Store DAGs in Git and deploy them through CI, with tests that import every DAG.

Connections and Secrets

Store credentials as Airflow connections (encrypted with the Fernet key) or, better, in a secrets backend such as HashiCorp Vault or a cloud secret manager. Never hard-code passwords in DAG files. Limit who can view and edit connections in the UI.

Logs

Task logs are written locally by default. On a single server that is fine with rotation and cleanup; with multiple workers, configure remote logging to object storage so logs survive and are visible in the UI. Clean old logs on a schedule; they grow quickly with frequent DAGs.

Security

  • Serve the UI over HTTPS behind Nginx, with authentication (and SSO where possible).
  • Use role-based access so only admins edit connections and variables.
  • Keep the metadata database and any Celery broker on private networks.
  • Remember that anyone who can deploy DAGs can run arbitrary code on your workers; protect the DAG repository.

Monitoring

Airflow can emit metrics through StatsD or OpenTelemetry. Track scheduler heartbeat, DAG parsing time, task queue length, task durations and failures, and SLA-style alerts on critical pipelines finishing late. Configure failure callbacks or notifications so the team knows when important pipelines fail (see our monitoring guide).

Maintenance

Use Airflow's database cleanup command to remove old task instances and logs from the metadata database, upgrade one version at a time following the upgrade notes and running database migrations, and test DAGs against the new version in staging first.

Sizing

SetupSuggested plan
Small team, dozens of DAGs, LocalExecutor4 vCores / 16 GB
Hundreds of DAGs or heavier Python tasks8 vCores / 32 GB, or CeleryExecutor with workers
Large installationsSeparate database, scheduler and multiple worker servers

Airflow itself is moderate; tasks that process data inside Python operators drive CPU and memory.

Airflow, Prefect or Temporal?

Airflow is mature, with a huge provider ecosystem for data tools. Prefect offers a more Pythonic, dynamic style (see our Prefect guide). Temporal targets long-running business processes rather than scheduled data pipelines (see our Temporal guide).

Example: A Reporting Pipeline

A retail analytics team runs Airflow with LocalExecutor and PostgreSQL on a 4 vCore / 16 GB VPS. Nightly DAGs pull sales data from the store database, load it into an analytics database, run SQL transformations there, and email dashboards to managers. Tasks retry twice, failures alert a Slack channel, and DAGs deploy from Git after CI checks.

Common Mistakes

  • SQLite metadata database in production.
  • Heavy work at DAG parse time, slowing the scheduler.
  • Processing large data inside Airflow workers instead of pushing it down.
  • Credentials hard-coded in DAG files.
  • Never cleaning logs and old metadata.

In Short

Install Airflow with constraints or official images, use PostgreSQL, start with LocalExecutor, keep DAGs light and idempotent, protect secrets and the UI, manage logs and metadata, and monitor scheduler health.

SkyRainCloud Plans for This Workload

Airflow's scheduler and database are moderate; task work decides the size. 4 vCores / 16 GB runs Airflow with LocalExecutor and PostgreSQL for many DAGs; heavy tasks belong on workers or external systems.

AMD EPYC 7C13 VPS

Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — AMD28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthWebsites, small APIs, bots, staging and VPN serversOrder
VPS 2 — AMD416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,299/monthWooCommerce, Node.js/Python backends, Docker Compose stacks, CI runnersOrder
VPS 3 — AMD832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,499/monthProduction databases, high-traffic sites, multi-container appsOrder
VPS 4 — AMD1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,899/monthLarge production workloads, SaaS platforms, analytics, in-memory cachesOrder

Intel Xeon Platinum 8269CY VPS

KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — Intel28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthBusiness websites, small apps, scheduled jobs and botsOrder
VPS 2 — Intel416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,169/monthBusiness software, mid-size databases, several sites on one serverCheck stock
VPS 3 — Intel832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,249/monthERP/CRM stacks, heavier databases, multiple production appsCheck stock
VPS 4 — Intel1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,299/monthHigh-memory workloads and consolidated production serversCheck stock

Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.

Frequently Asked Questions

Can Apache Airflow run on a single VPS?
Yes. LocalExecutor with PostgreSQL on one server suits many small and medium teams.
Which database should Airflow use?
PostgreSQL or MySQL for the metadata database; SQLite is only for testing.
LocalExecutor or CeleryExecutor?
Start with LocalExecutor; move to CeleryExecutor when tasks need several worker servers.
Is the official Docker Compose file production-ready?
It is meant for learning and testing; adapt it carefully with proper secrets, persistence and monitoring.
Why is my Airflow scheduler slow?
Often heavy top-level code in DAG files; keep parsing fast and move work into tasks.
How should credentials be stored?
As encrypted connections or in a secrets backend, never in DAG code.
Where should task logs go?
Local storage with cleanup on one server, or remote logging to object storage with multiple workers.
How do I monitor Airflow?
With StatsD or OpenTelemetry metrics, failure notifications and alerts for late critical pipelines.
Airflow or Prefect?
Airflow for maturity and providers; Prefect for a more Pythonic, dynamic workflow style.
Which plan suits Airflow?
4 vCores / 16 GB for LocalExecutor with dozens of DAGs; 8 vCores / 32 GB or workers for more.
Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning