# 🔀 On-Demand Standby (/on-demand-standby/overview)







On-Demand Standby (ods) gives a single Solana validator, Agave or Firedancer, maintenance without downtime. Before you take your validator down, it rents a bare-metal standby server by the hour, moves your staked identity to it, and moves it back when your validator is ready again. It is an open-source community tool from Rockooor and The Vault, available on [GitHub](https://github.com/SolanaVault/on-demand-standby).

<img alt="Banner: A guardian takes the watch at a standby relay as an engineer opens the main unit for service." src="__img0" />

<Callout type="warn">
  During maintenance, a copy of your staked identity key sits on a rented server that the provider can physically access. ods never writes it to that server's disk and shreds it afterwards, but it is early, unaudited software: read its [safety model](https://github.com/SolanaVault/on-demand-standby/blob/main/SAFETY.md) before you use it on a staked validator.
</Callout>

## How It Works [#how-it-works]

A maintenance window has three parts: `ods failover`, your own work on the validator, and `ods failback` (Figure 15.1).

<img alt="A maintenance window in three parts: ods failover rents a qualified server that is in stock, sets it up with your client, binary and configuration, catches up and rehearses a swap with throwaway keys, then moves your staked identity with a fresh vote history; during your maintenance the standby votes with your staked identity while you upgrade, reboot or change the configuration and your validator restarts on its junk identity and catches up; ods failback checks that your validator is ready, moves the staked identity back, shreds the key copy on the standby and deletes the rented server, all in about one hour of a rented server." src="__img1" />

Figure 15.1: One maintenance window

`ods failover` rents a qualified server type that is in stock, sets it up as a node of your client with your exact binary and configuration on a throwaway identity, waits until it has caught up, and rehearses a swap with throwaway keys. Only then does it move your staked identity, with a fresh vote history, to the standby.

While the standby votes, ods doesn't touch your validator: you upgrade, reboot or change the configuration as you need. When your validator runs again on its junk identity and has caught up, `ods failback` moves the staked identity back, shreds the key copy on the standby and deletes the rented server.

Each swap leaves a short gap in voting, measured on mainnet in November 2026 at 0.6 to 1.1 seconds with Agave and 2.8 to 3.3 seconds with Firedancer. A typical maintenance window uses about one hour of a rented server, which cost one to two euros in November 2026.

## Supported Clients [#supported-clients]

The standby runs the same client as your validator, with your binary. As of November 2026:

* Agave validator with an Agave standby: proven on mainnet with the staked key.
* Firedancer validator with a Firedancer standby: proven on mainnet with the staked key.
* Agave validator with a Firedancer standby: works in principle. The failover has been used on mainnet, the failback has not, so prove it on testnet first.
* Firedancer validator with an Agave standby: not supported.

Whatever block-building setup your validator runs, the standby runs the same; ods adds and removes nothing except multicast destinations such as DoubleZero. The standby measures which region is closest to it and points those services' regional endpoints there.

## Before You Begin [#before-you-begin]

You need:

* One Agave or Firedancer validator that starts on a junk, unstaked identity. The staked keypair lives in a separate root-only file and is applied at runtime with `set-identity`, so every restart comes back unstaked. After a restart outside ods, you switch to the staked key yourself.
* A service manager that restarts the validator on failure, so that it comes back by itself after your maintenance.
* Python 3.11 or later, `curl`, `ssh` and `tar`.
* An API token for a supported hourly bare-metal provider. The [README](https://github.com/SolanaVault/on-demand-standby#providers) lists the providers and the server types qualified for each client.

## Run a Maintenance Window [#run-a-maintenance-window]

<Steps>
  <Step>
    ### Install the Tool [#install-the-tool]

    On your validator, clone the repository and run the installer. It installs the code to `/opt/ods`, a configuration skeleton, an SSH key and the watchdog timer.

    ```bash
    git clone https://github.com/SolanaVault/on-demand-standby /opt/src/ods && cd /opt/src/ods
    sudo ./install.sh
    ```
  </Step>

  <Step>
    ### Configure It [#configure-it]

    In `/etc/ods/ods.conf`, set `PRIMARY_CLIENT` to `agave` or `firedancer` and fill in that client's settings. Save your provider's API token as the [README](https://github.com/SolanaVault/on-demand-standby#quick-start) describes.
  </Step>

  <Step>
    ### Check Your Setup [#check-your-setup]

    Run `sudo ods doctor`. It checks everything and changes nothing, so it costs nothing. Run `sudo ods stock` to see which qualified server types are in stock right now, cheapest first.
  </Step>

  <Step>
    ### Fail Over to the Standby [#fail-over-to-the-standby]

    In `tmux` or `screen`, run `sudo ods failover`. It asks once, before it rents a server, and reports FAILED OVER when the standby votes with your staked identity.
  </Step>

  <Step>
    ### Do Your Maintenance [#do-your-maintenance]

    Upgrade, reboot or change the configuration. Your validator must come back by itself, on its junk identity, and catch up. If the work takes longer than three hours, the watchdog alerts you, but it never deletes a standby that votes.
  </Step>

  <Step>
    ### Fail Back to Your Validator [#fail-back-to-your-validator]

    Run `sudo ods failback --wait`. It waits until your validator has caught up, moves the staked identity back and deletes the standby.
  </Step>
</Steps>

## Safety [#safety]

ods is built so that two machines never vote with the same identity at the same time:

* Both machines always start unstaked. The staked identity is applied only at runtime.
* The old voter switches to its junk identity before the new one switches to the staked identity, and the other machine must positively report its junk identity first.
* A swap counts as done only when votes are seen on chain.
* The staked key reaches the standby only after its firewall is verified, is never written to the standby's disk, and is shredded afterwards.
* The watchdog alerts on standbys older than three hours, deletes unstaked ones after six hours and never deletes one that votes.

For every invariant, the failure cases and manual recovery, see the [safety model](https://github.com/SolanaVault/on-demand-standby/blob/main/SAFETY.md).

## What It Doesn't Cover [#what-it-doesnt-cover]

ods is for planned maintenance. It doesn't cover:

* Unplanned crashes: renting and syncing a standby takes 20 minutes or more, and a crashed validator restarts faster on its own.
* Loss of your validator's hardware: the same tooling can help build a replacement, but that is a manual decision.
* Moving to a new server: failback always returns to the machine you failed over from.

## Contribute [#contribute]

The more server types are qualified, the more likely one is in stock when you need it. Run `ods qualify` to test a server type with throwaway keys only, then open a pull request with the evidence; see [CONTRIBUTING.md](https://github.com/SolanaVault/on-demand-standby/blob/main/CONTRIBUTING.md). Report security issues privately with the Report a vulnerability button on the repository's Security tab.
