The control plane, in one picture
Video 004 of 140 in Virtualization Foundations, in the unit “The whole stack in one picture”. 2:45, with English and Hindi audio.
When you click start on a cloud virtual machine, several programs respond in turn. Together they form the cloud's control plane. This article explains the two kinds of work in a cloud, the control plane that decides and records and the data plane that does the work. It follows one start request step by step, then shows what goes wrong when parts of the control plane fail and how to notice it.
What you will learn
- The control plane decides and records what should exist. The data plane does the actual work.
- A start request is checked, placed on a host with room, and then booted by that host.
- Agents on the hosts carry out orders and report back, so the record stays accurate.
- If the control plane fails, running machines usually keep running, but new changes must wait.
Two planes with two jobs
A cloud has two kinds of work. The control plane is the set of programs that decide and record what should happen. It answers questions such as what should exist, who may change it, and where it runs.
The data plane does the actual work. It runs the virtual machines, carries their traffic, and reads and writes their disks. The two planes depend on each other, but each one has a different job.
One start request, travelling through the control plane
Follow one request. You click start on a web page, and the page sends the request to the control plane API. The API checks the request. Is the user allowed, and is the request complete?
Next, the scheduler picks a host with enough free CPU and memory, and passes the job on. The host's agent asks the hypervisor to boot the virtual machine, and the machine starts. Finally, the host reports back, and the control plane shows the machine as running.
The picture from the bottom up
- Physical servers: the hardware where the real work happens.
- Host agent and hypervisor: on each server, they carry out the orders they receive, and report what they did.
- Control plane: the API, the scheduler and the record. It holds the record of what should exist, and it sends orders down to the hosts.
Orders go down, and reports come back up. The record is only accurate when the hosts report back honestly and on time.
What goes wrong, and how you notice it
- API slow or down: your requests time out, or they are not accepted. Machines that are already running usually keep working.
- No room on any host: the request waits, or fails with a message about capacity. Then the cloud team has to add capacity.
- A host not reporting: the status you see may be old, or the host is marked unreachable.
Note: If a host stops reporting, check the host itself, not only the web page. The page shows what the record says, which may be out of date.
Terms
- Control plane
- The programs that decide and record what should exist in a cloud, who may change it, and where it runs.
- Data plane
- The part of a cloud that does the work: it runs virtual machines, carries their traffic, and reads and writes their disks.
- Scheduler
- The control plane program that picks a host with enough free CPU and memory for a new machine.
- Agent
- A program on each host that carries out orders from the control plane and reports back.
Check yourself
What is the difference between the control plane and the data plane?
The control plane decides and records what should happen. The data plane does the actual work, such as running virtual machines and carrying their traffic.
What does the scheduler do when you start a machine?
It picks a host with enough free CPU and memory, and passes the job on to that host.
What usually happens to running machines if the control plane fails?
They usually keep running, but you cannot start new machines or make new changes until the control plane recovers.
Previous: Where storage and networking sit. Next: A cloud operations engineer's day.