Skip to content

5. The shared fields

The terraces of the compute workshops.

LUMO and Neri stand above terraces where people work at shared workshops spread across the village.

Below the town hall, on wide terraces, stand the workshops. Each one is a solid building full of tools: processors, memory, local disk. LUMO walks from one to the next. In each, several small houses are being built at the same time, side by side, sharing the same tools.

"Which workshop is mine?" asks Neri. "None of them, and all of them," LUMO says. "Your houses will go wherever there is room, like everyone else's. When a workshop is busy, the next house goes elsewhere."

LUMO, chin in hand, studies a metal cabinet of servers on a workbench in one of the workshops.

Rami, who runs the workshops, adds one thing: inside each workshop a foreman keeps the houses apart, so that what happens in one does not spill into its neighbour.

LUMO raises the lantern over a square where several small houses are being built side by side in the same workshop yard.

Important

Where the picture stops. A project does not own a host. Its instances land wherever the scheduler finds a fit, and they share each host with other projects' instances. Free capacity and usage change all the time across the cloud.

What it is in OpenStack

  • A compute host (or compute node) is a physical server that runs virtual machines for the cloud.
  • On it, a hypervisor (in most OpenStack clouds KVM, driven through libvirt and QEMU) runs each instance as an isolated virtual machine with its own virtual CPUs, memory and disks: the foreman.
  • The nova-compute service on each host receives instructions from the control plane and drives the hypervisor.
  • The capacity of a host is shared: several instances, from any project, can run on it at once.

From the village to OpenStack

flowchart TB
    subgraph H1["Compute host 1"]
        NC1["nova-compute"] --> HV1["Hypervisor (KVM/libvirt)"]
        HV1 --> V1["VM (project A)"]
        HV1 --> V2["VM (project B)"]
    end
    subgraph H2["Compute host 2"]
        NC2["nova-compute"] --> HV2["Hypervisor (KVM/libvirt)"]
        HV2 --> V3["VM (project A)"]
    end

See it for real

Operator rights are needed:

openstack hypervisor list
openstack compute service list --service nova-compute

The first lists the hypervisors the cloud knows; the second shows whether nova-compute is up and enabled on each host.

The lantern: the beam spreads over several workshops instead of a single plot.

Next: before asking for anything, LUMO wants to know what is actually available. 6. The resource register and the choice of a host →

To remember

Lumo: if you keep only 3 things from this page, keep these.

  • A compute host is a physical server whose hypervisor (usually KVM through libvirt) runs virtual machines.
  • nova-compute on each host receives instructions from the control plane and drives the hypervisor.
  • Hosts are shared: instances of many projects can run on the same host, and a project does not own a host.

Check yourself

Lumo: 2 quick questions to check the main ideas of this page. Choose an answer to see the explanation and the section that gives the evidence. Your score counts your first choices and stays in this browser only.

1. What runs on a compute host to drive the hypervisor for OpenStack?
Show the answer

Answer: nova-compute. nova-compute receives instructions from the control plane and creates, stops and deletes VMs through the hypervisor. Read the section.

2. Do Neri's instances always land on the same host?
Show the answer

Answer: No, the scheduler places each instance where it fits. Hosts are shared between projects; each request is scheduled on a host that fits. Read the section.