Guides for operators

Availability and drain

When a server fails: availability policies per app and host pool, draining a server for maintenance, live migration.
Available at launch
Available at launch
This page describes a part of Velrix that is being finished now and ships with the first public release. Until then, details may still change.

A realm with three servers or more keeps running when one of them fails or is taken down for maintenance. This page is what decides where workloads go then, and how you take a server out of service without stopping what runs on it.

When a server is lost

Velrix notices a lost server over every channel the servers share. What happens to its workloads is each app’s policy:

  • Apps without a volume on that server start again on another server, after the time their policy says.
  • Machines and apps with data on that server’s own disk wait. Their owners decide whether to start them elsewhere from a backup, or to wait for the server to come back.
  • Where a server’s management controller is set, Velrix powers the lost server off through it first, and confirms it is off, before anything of it starts elsewhere. A server that is only cut off can then never run a second copy.

Host pools

Servers are grouped in host pools. Each server is in one pool, default until you move it. A pool has its own failover settings, a CPU model every server in it can run (live migration needs one), how many of its servers may be in maintenance at once, how much memory and CPU may be overcommitted, and who may place workloads there. A pool for one customer, or for licences bound to hosts, keeps those workloads apart.

An app’s availability policy

Each app says, within what the pool and the realm allow: how it restarts, its health checks, what happens when its server is lost or drained, how many of its copies may be down at once, and where it may run (pools, labels, spread over servers, pinned to one).

Draining a server

To take a server down for maintenance, cordon it: nothing new is placed there. Drain moves its workloads away, within each app’s disruption budget, and shows its progress per app. Virtual machines move live: their memory and disk are copied while they run, then they pause for a moment on the new server. Uncordon puts the server back into service.

A server that predicts a disk failure or overheats is cordoned by itself (Hardware), and rolling restarts for an operating system update drain each server first (Updates).

Next