What is cloud compute?

Video 001 of 140 in Virtualization Foundations, in the unit “The whole stack in one picture”. 4:54, with English and Hindi audio.

Every app you use runs on a computer somewhere. In a cloud, that computer is rented, not bought, and it is usually a virtual machine: a slice of a larger physical server. This article explains what a cloud rents out, how one server is shared safely between many customers, and what that sharing costs. These ideas are the base for everything an engineer does when running virtual machines.

What you will learn

Why companies stopped buying servers for their busiest day

Think of a small online shop. Most of the year its website runs on one modest server, which is a computer that serves pages to visitors. Then a festival sale arrives. Thousands of shoppers come at the same time, and the site slows down or stops answering.

The old answer was to buy a much bigger server, sized for that one busy week, and to pay for it all year. Buying also means a large payment before the first visitor arrives, and weeks of waiting for delivery and installation.

Renting works the other way. You start a machine from a web page in a minute or two, and you pay only for the time you use it. When the sale ends, the shop gives the extra machines back and stops paying for them. The provider owns the building, the power and the cooling. That is why many companies now rent, although some still run their own servers.

How virtual machines made renting possible

At first, every company bought its own servers, and for most of the year many of them sat idle. Around the year 2000, VMware made it practical to run several virtual machines on one ordinary server, so idle capacity could finally be shared. In August 2006 one public cloud opened a service that let any customer sign up and rent a virtual machine by the hour. Cloud compute, as we know it, had begun.

What a virtual machine is, from the bottom up

Look at one server in layers. Each layer sits on the one below it.

One physical server can carry many virtual machines. In the shop's case, the website, the billing system and a test copy can each live in their own VM on the same hardware.

This gives the word its meaning. In a cloud, compute means processor power and memory, rented out as virtual machines. The CPU does the calculations, and memory holds what a program is working on. Every provider has its own product name for this, but the idea is the same everywhere.

Compute, storage and networking work together

Compute never works alone. It runs the programs, but it needs two partners.

What sharing costs: noisy neighbours and shared failures

Sharing has a price. Picture three virtual machines on one server. If the test copy starts a heavy job and takes most of the CPU, the server has nothing more to give, and the shop website slows down. Engineers call this a noisy neighbour.

The second cost is failure. If that one physical server fails, every virtual machine on it goes down at the same moment.

Note: You notice these problems as slow pages, long waits, or a machine that stops answering. Keeping them from happening is the daily work of a cloud engineer.

Terms

Compute
Processor power and memory, rented out as virtual machines.
Virtual machine (VM)
A software slice of a physical server that behaves like a complete computer with its own operating system.
Hypervisor
The program that cuts a physical server into virtual machines, shares out CPU and memory, and keeps the machines apart.
Data centre
A building full of servers, with the power and cooling they need.
Noisy neighbour
A virtual machine that takes so much of a shared server that the other machines on it slow down.

Check yourself

Why is renting compute cheaper for a shop with one very busy week?

The shop pays for extra machines only during the busy week and gives them back afterwards, instead of paying all year for a server sized for that week.

What does a hypervisor do?

It cuts a physical server into virtual machines, gives each one a share of the CPU and memory, and keeps them apart.

What happens to the virtual machines when their physical server fails?

All of them go down at the same moment, because they share that one server.

Next: The layers of a cloud server.