liveBook · Manning

Agent orchestration

As explained in Data Pipelines with Apache Airflow, Second Edition

A container orchestration system is software that coordinates the deployment, execution, scaling, and distribution of containers across multiple machines.

Container orchestration coordinates the deployment and scaling of containerized applications across a cluster of machines. Docker can run containerized tasks on one machine; Kubernetes distributes them across multiple worker nodes. section 11.5 section 11.5.1

Kubernetes schedules containers onto nodes while considering needs such as CPU, memory, storage, and specialized hardware. Its control plane manages the cluster; worker nodes run assigned applications. A pod is the smallest Kubernetes work unit, and an Airflow task can run as a container inside one. section 11.5.1

In an Airflow workflow, use orchestration to coordinate work, and offload substantial processing to systems suited to that work. For example, query databases where data resides or run big-data computations on an external Spark cluster rather than scaling Airflow workers to process everything. section 12.3.5 section 8.4

Figure 11.10 High-level overview of Kubernetes

A high-level diagram of Kubernetes components and how they relate to running applications across a cluster. section 11.5.1

How Data Pipelines with Apache Airflow, Second Edition covers it

How deep it goes
Explains Kubernetes components, scheduling considerations, and pods at a high level, but stops short of a full Kubernetes account.
Examples
Uses Airflow tasks running in Kubernetes pods and contrasts cluster execution with Docker on a single machine.
What you can do after
Apply Kubernetes to run containerized Airflow tasks across worker nodes.
How it connects
Connects Kubernetes with Docker, Apache Airflow, containers, pods, and Apache Spark.

Also explained in

Compare how 11 books explain agent orchestration →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Data Pipelines with Apache Airflow, Second Edition. The section links point to the parts of the book it draws on.