# Cosmovisor
Cosmovisor is a process manager for Cosmos-SDK application binaries that monitors the governance module for incoming chain upgrade proposals.
If cosmovisor
sees a proposal get approved, it can automatically download the
new binary, stop the currently running binary, switch from the old binary to
the new one, and finally restart the node with the new binary.
Cosmovisor allows you to download binaries ahead of time for chain upgrades, meaning that you can do zero (or close to zero) downtime chain upgrades. It's also useful if your timezone doesn't align well with a chain upgrade.
It's recommended to use either Cosmovisor or systemd
to run your node.
Rather than having to do stressful DevOps tasks late at night, it's better if
you can automate them away, and that's what Cosmovisor tries to do. It's wise
to go through the cosmovisor
setup instructions on testnet before running a
full-node on mainnet.
# Cosmovisor Setup
If you have not installed nibid
, please install the corresponding version:
When using Cosmovisor, make sure that you do not have auto download of binaries on.
Install Cosmovisor Follow these instructions (opens new window) to install Cosmovisor.
Set up enviroment variables
Create required directories
Add the genesis version of the binary (currently it is
v1.0.0
both fornibiru-testnet-1
andcataclysm-1
networks) to thecosmovisor
directory. You can verify your binary location withwhich nibid
command. For example:Create the service for Cosmovisor
Enable the service:
You can inspect the logs using journalctl.