Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 1.23 KB

ARCHITECTURE.md

File metadata and controls

28 lines (21 loc) · 1.23 KB

Unionvisor Architecture

Unionvisor is an optional (and recommended) supervisor for uniond. It is a systemd service that manages the lifecycle of uniond by managing a symlink called current, and swapping this symlink to the newer uniond version when an upgrade signal occurs.

Union Bundles are directories of static binaries containing each version of uniond for a specific network (union-testnet-2, for example). They also contain a meta.json describing the bundle's structure.

Unionvisor consumes Union Bundles. When configuring Unionvisor, you provide a Union Bundle such as the bundle-testnet that is defined on our flake. When an upgrade signal occurs, Unionvisor will swap the current symlink to the newer version of uniond in the bundle.

Unionvisor and Union Bundles

graph
    subgraph "Unionvisor (systemd service)"
        home["uniond home directory"]
        current[current uniond symlink]
    end

    subgraph "Union Testnet Bundle"
        subgraph "Versions (static binaries)"
            uniond-v0.8.1[uniond-v0.8.1]
            uniond-v0.9.1[uniond-v0.9.1]
            uniond-v0.10.1[uniond-v0.10.1]
        end
        meta.json[meta.json]
    end

    current --> uniond-v0.10.1
Loading