cosmos/advocates

cosmovisor demo tutorial

Opened this issue · 0 comments

okwme commented

I'd like to see cosmovisor widely adopted by validators. In order to gain their trust in using the codebase features like making backups to the data directory are under way. In order to further demonstrate that it is safe and easy to use I would like to have validators try it out before the next upgrade. Typically validators would participate in a testnet in order to test out new features. However it's traditionally been hard to get validators to participate in these. As an alternative I'd like to create the following user story:

  • I'm a validator who doesn't have the capacity to coordinate participating in the next hub upgrade testnet but I want to understand how cosmovisor works so I can evaluate whether I will configure my infrastructure to use it.
  • I go to github.com/cosmos/cosmovisor-demo and read the README.md
  • I learn that I should be able to run the following commands:
    • git clone github.com/cosmos/cosmovisor-demo
    • make install
    • demogaiad init test --chain-id test
    • demogaiad keys add my-val-key
    • demogaiad add-genesis-account my-val-key 1000000000stake
    • demogaiad gentx my-val-key 1000000000stake --chain-id test
    • demogaiad collect-gentxs
    • demogaiad start
  • in another terminal window i should be able to do the following actions
    • make a gov proposal for an upgrade that references another release of the same repo
    • have the gov module configured so that the vote only takes 5 minutes
    • make sure cosmovisor is enabled and set to autoupdate
    • wait the 5 minutes and watch the upgrade take place
  • it should work with a variety of common validator settings and configurations
    • get feedback from some validators about this
  • as much as possible should be pre-configured and/or put inside of a bash script or make file
    • we want the user to understand what's happening and why but not be too tedious