Every command
oas standby serve
Run a standby: keep checked copies of swarms, cosign their checkpoints, and host them after an exit.
$ oas standby serve --url <url> [flags]
Its name is fixed once set and is part of the key it cosigns with. The witness flags are for the swarms it takes over after an exit, so members keep counting only witnessed checkpoints.
With --hosts it asks each host every minute, signing with its key, for the swarms whose policy names it, and keeps a copy of each. Without it, it keeps what oas standby add gives it.
Flags
Each takes one dash or two, and its value after a space or =. A switch is on by itself, or =false.
- --url <string>required
the URL members reach this standby at
data folder
Default
oas-standbywhere to read the drand beacon, for swarms it takes over
Default
https://api.drand.sh/52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971hosts you trust, comma-separated: keep a copy of every swarm on them that names this standby
listen address
Default
:8092standby name (fixed once set; part of the key it cosigns with)
how often to tick a swarm it has taken over
Default
30sthe witness that cosigns checkpoints of swarms it takes over
that witness's verifier key
Examples
$ oas standby serve --dir /var/lib/oas/standby --name team-standby --url http://standby.example:8092 --listen :8092 --witness-url http://witness.example:8091 --witness-vkey "$(cat /var/lib/oas/witness/vkey)"
Copy every swarm on a host that names this standby.
$ oas standby serve --dir /var/lib/oas/standby --name team-standby --url http://standby.example:8092 --hosts https://swarms.example
See also
- oas standby add
Have the standby in a folder start keeping a copy of a swarm.
- oas standby info
See what a standby keeps: each swarm, the host it follows, how far behind it is, and its alarms.
- oas propose-standby
Propose naming a standby in the swarm's policy, or dropping one with
--remove. - oas witness(runs until stopped)
Run a witness: cosign the checkpoints of the logs its lists name, so no host can show two histories.
Read from the CLI: each flag's type, default and usage are its flag set's own, and a test fails when this page and the code disagree.