Skip to content

Legion 0.1.16

Choose a tag to compare

@grepjava grepjava released this 12 Nov 01:14
· 810 commits to main since this release

Recovery: data that moves between nodes survives interruption, and a whole cluster can be rebuilt from backups. The first GitHub release since 0.1.12: what 0.1.13 to 0.1.15 added is summed up at the end.

New in 0.1.16

  • Volume moves that are cut short lose nothing. A Volume moving to another node (a drain, legion volume move) can be interrupted at any stage, by a daemon killed on either side or a full disk on the receiving node. The move resumes or is held, saying why, and nothing is lost or left behind. Tested with Postgres on real ZFS.
  • A cluster rebuilt from its backups. The restore drill loses every host of a cluster running Postgres and rebuilds it on new disks from three backups kept apart: the control state (legion backup), the manager's keys, and the database's Volume (legion volume backup). The primary comes back with every row up to its backup, the replica copies it anew. 511 s on 2-CPU VMs, every stage timed. The order of a restore is in the design, under What to back up.

Since 0.1.12

  • legion doctor checks whether a host can run Legion and says how to fix what it can't (0.1.13).
  • Image identity: a deployment runs the digests its tags named when it was made, on every node, and a rollback runs the old ones (0.1.14).
  • Partitions: onPartition: stop for pods that must never run twice, a leader cut off from the majority stops answering heartbeats, and Volumes stay with tasks cut off until their node says they stopped (docs/PARTITIONS.md). legion node drain --wait follows a drain to the end (0.1.15).
  • Versions: builds that can't work together refuse each other, saying which to upgrade first (0.1.15).
  • legion volume backup and legion volume restore: crash-consistent snapshots of a Volume's data (0.1.15).

Install

On FreeBSD 15 for amd64, as root:

tar -xf legion-0.1.16-freebsd15-amd64.tar.xz --strip-components 1 -C /usr/local

then follow Install in the README. To upgrade: service legion stop, unpack as above, service legion start; running containers are adopted. Upgrade managers one at a time, then workers (see Versions in the design); the upgrade path from the release before is tested on every release.

Check the download with sha256 -c $(cat legion-0.1.16-freebsd15-amd64.tar.xz.sha256 | cut -d ' ' -f 1) legion-0.1.16-freebsd15-amd64.tar.xz.