Skip to content

Commit 89739a5

Browse files
cosmovisor v1.1 udpates (cosmos#11160)
1 parent 43b7e83 commit 89739a5

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

cosmovisor/CHANGELOG.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,19 @@ Ref: https://keepachangelog.com/en/1.0.0/
3535
# Changelog
3636

3737
## [Unreleased]
38+
<!-- NOTE: when creating a new release, update cosmovisor/cmd/cosmovisor/cmd/version.go:Version -->
39+
40+
## v1.1.0 2022-10-02
3841

3942
### Features
4043

41-
* [\#10285](https://github.com/cosmos/cosmos-sdk/pull/10316) Added `run` action.
44+
* [\#10285](https://github.com/cosmos/cosmos-sdk/pull/10316) Added `run` command to run the associated app.
4245
* [\#10533](https://github.com/cosmos/cosmos-sdk/pull/10649) Added environmental variable `DAEMON_BACKUP_DIR` to allow node to set a custom backup directory.
4346

47+
### Features
48+
49+
* [\#10649](https://github.com/cosmos/cosmos-sdk/pull/10649) Customize backup directory. When `DAEMON_BACKUP_DIR` env variable is set, cosmovisor will backup the app data directory in that directory before running the update.
50+
4451
### Deprecated
4552

4653
* [\#10285](https://github.com/cosmos/cosmos-sdk/pull/10316) Running `cosmovisor` without the `run` argument.

cosmovisor/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ All arguments passed to `cosmovisor run` will be passed to the application binar
7575
* `DAEMON_ALLOW_DOWNLOAD_BINARIES` (*optional*), if set to `true`, will enable auto-downloading of new binaries (for security reasons, this is intended for full nodes rather than validators). By default, `cosmovisor` will not auto-download new binaries.
7676
* `DAEMON_RESTART_AFTER_UPGRADE` (*optional*, default = `true`), if `true`, restarts the subprocess with the same command-line arguments and flags (but with the new binary) after a successful upgrade. Otherwise (`false`), `cosmovisor` stops running after an upgrade and requires the system administrator to manually restart it. Note restart is only after the upgrade and does not auto-restart the subprocess after an error occurs.
7777
* `DAEMON_POLL_INTERVAL` is the interval length for polling the upgrade plan file. The value can either be a number (in milliseconds) or a duration (e.g. `1s`). Default: 300 milliseconds.
78+
* `DAEMON_BACKUP_DIR` option to set a custom backup directory. If not set, `DAEMON_HOME` is used.
7879
* `UNSAFE_SKIP_BACKUP` (defaults to `false`), if set to `true`, upgrades directly without performing a backup. Otherwise (`false`, default) backs up the data before trying the upgrade. The default value of false is useful and recommended in case of failures and when a backup needed to rollback. We recommend using the default backup option `UNSAFE_SKIP_BACKUP=false`.
7980
* `DAEMON_PREUPGRADE_MAX_RETRIES` (defaults to `0`). The maximum number of times to call `pre-upgrade` in the application after exit status of `31`. After the maximum number of retries, cosmovisor fails the upgrade.
8081

cosmovisor/cmd/cosmovisor/cmd/version.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"github.com/rs/zerolog"
1010
)
1111

12-
// Version represents Cosmovisor version value. Set during build
13-
var Version = "1.0.0"
12+
// Version represents Cosmovisor version value. Overwritten during build
13+
var Version = "1.1.0"
1414

1515
// VersionArgs is the strings that indicate a cosmovisor version command.
1616
var VersionArgs = []string{"version", "--version"}

0 commit comments

Comments
 (0)