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
| Executor | How it works | Use |
|---|---|---|
| LocalExecutor | Tasks run as processes on the scheduler machine | Single-server setups; simple and reliable |
| CeleryExecutor | Tasks are queued to Celery workers via Redis or RabbitMQ | Several worker servers, separate queues |
| KubernetesExecutor | Each task runs in its own pod | Teams 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
| Setup | Suggested plan |
|---|---|
| Small team, dozens of DAGs, LocalExecutor | 4 vCores / 16 GB |
| Hundreds of DAGs or heavier Python tasks | 8 vCores / 32 GB, or CeleryExecutor with workers |
| Large installations | Separate 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.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — AMD | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Websites, small APIs, bots, staging and VPN servers | Order |
| VPS 2 — AMD | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,299/month | WooCommerce, Node.js/Python backends, Docker Compose stacks, CI runners | Order |
| VPS 3 — AMD | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,499/month | Production databases, high-traffic sites, multi-container apps | Order |
| VPS 4 — AMD | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,899/month | Large production workloads, SaaS platforms, analytics, in-memory caches | Order |
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.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — Intel | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Business websites, small apps, scheduled jobs and bots | Order |
| VPS 2 — Intel | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,169/month | Business software, mid-size databases, several sites on one server | Check stock |
| VPS 3 — Intel | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,249/month | ERP/CRM stacks, heavier databases, multiple production apps | Check stock |
| VPS 4 — Intel | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,299/month | High-memory workloads and consolidated production servers | Check 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.