Concepts

Instances and hosts

How the servers of a realm are named, what each one runs and what happens when one of them stops.

An instance is one server of a realm. Instances are named a, b, c and so on; the first server you install is a. Each one has its own identity, signed with the realm key, valid for a year.

What runs on an instance

Every instance runs Velrix OS and two kinds of things:

  • Platform modules: the parts of Velrix itself, each in its own rootless container. Which modules run on which instance is the realm’s choice; a module may run on several instances at once, as copies.
  • Workloads: your apps, machines, jobs and sites. The host module on each instance starts them, and Velrix places each one on the instance with room for it.

Instances are installed to their own disks, or boot diskless over the network from the realm (Ways to run).

How instances agree

The realm’s settings and records are kept on every instance. A write counts only once a majority of instances have confirmed it, so:

  • Three instances or more keep working when any one of them is lost.
  • One instance works, but has nothing to fail over to.
  • Two instances have no majority when one is lost: they are not high availability.

All instances of a realm share one network, a LAN, VLAN or VXLAN, and find each other on it.

When an instance stops

  • Platform modules keep answering from their copies on the other instances. Operators are told.
  • Workloads that keep nothing on that server are started on another instance with room.
  • Workloads with a disk there (a volume on that server, or a machine’s disk) wait for it to come back instead of starting without their data. The app’s page says so, and Start it elsewhere lets you decide.
  • When the instance comes back, it rejoins on its own.

Telling hosts apart

Velrix reads what each server is: processor and its flags, cores, memory, disks, network ports and GPUs. Operators add labels of their own, such as zone=sto1, in Manager › Hardware. Sizes, blueprints and apps can then say what they need (arch = amd64, gpu.count >= 1) or prefer (spread over zones), and Velrix places them only where that holds. When nothing fits, the app waits and says why.

For maintenance, an operator cordons a server so nothing new is placed there, and drains it so what can move does. A server that is gone for good is retired in Manager › Hardware.