From 7a6ec712feac798d6a3b80cb4295d52bc8e354c5 Mon Sep 17 00:00:00 2001 From: yaruwangway <69694322+yaruwangway@users.noreply.github.com> Date: Mon, 13 Dec 2021 19:01:12 +0100 Subject: [PATCH 1/3] Update cosmoshub-4-vega-upgrade.md update the upgrade time --- docs/migration/cosmoshub-4-vega-upgrade.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/migration/cosmoshub-4-vega-upgrade.md b/docs/migration/cosmoshub-4-vega-upgrade.md index dcceefa3cba..3c2a4b23710 100644 --- a/docs/migration/cosmoshub-4-vega-upgrade.md +++ b/docs/migration/cosmoshub-4-vega-upgrade.md @@ -32,7 +32,7 @@ TOC: ## Upgrade will take place December 14, 2021 -The upgrade will take place at a block height of `8695000`. At current block times (around 7s/block), this block height corresponds approximately to `Tuesday, 14-Dec-21 6:00:00 UTC`. This date/time is approximate as blocks are not generated at a constant interval. +The upgrade will take place at a block height of `8695000`. At current block times (around 7s/block), this block height corresponds approximately to `Tuesday, 14-Dec-21 14:49:50 UTC`. This date/time is approximate as blocks are not generated at a constant interval. ## Chain-id will remain the same From f2097f4c3ae0cbe5a456ba62af3a394ce4527147 Mon Sep 17 00:00:00 2001 From: yaruwangway <69694322+yaruwangway@users.noreply.github.com> Date: Tue, 14 Dec 2021 20:42:56 +0100 Subject: [PATCH 2/3] Update docs/migration/cosmoshub-4-vega-upgrade.md Co-authored-by: Noam <81436914+nooomski@users.noreply.github.com> --- docs/migration/cosmoshub-4-vega-upgrade.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/migration/cosmoshub-4-vega-upgrade.md b/docs/migration/cosmoshub-4-vega-upgrade.md index 3c2a4b23710..6bf31ef4758 100644 --- a/docs/migration/cosmoshub-4-vega-upgrade.md +++ b/docs/migration/cosmoshub-4-vega-upgrade.md @@ -32,7 +32,7 @@ TOC: ## Upgrade will take place December 14, 2021 -The upgrade will take place at a block height of `8695000`. At current block times (around 7s/block), this block height corresponds approximately to `Tuesday, 14-Dec-21 14:49:50 UTC`. This date/time is approximate as blocks are not generated at a constant interval. +The upgrade will take place at a block height of `8695000`. At the time of writing, and at current block times (around 7s/block), this block height corresponds approximately to `Tuesday, 14-Dec-21 14:49:50 UTC`. This date/time is approximate as blocks are not generated at a constant interval. You can stay up-to-date using this [live countdown](https://chain-monitor.cros-nest.com/d/Upgrades/upgrades?var-chain_id=cosmoshub-4&orgId=1&refresh=1m) page. ## Chain-id will remain the same From 8a5fc23ca7515b82c7e96e17b639922288627759 Mon Sep 17 00:00:00 2001 From: Yaru Wang Date: Thu, 16 Dec 2021 13:11:49 +0100 Subject: [PATCH 3/3] docs: add system requirement --- docs/migration/cosmoshub-4-vega-upgrade.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/docs/migration/cosmoshub-4-vega-upgrade.md b/docs/migration/cosmoshub-4-vega-upgrade.md index 6bf31ef4758..40088bd4922 100644 --- a/docs/migration/cosmoshub-4-vega-upgrade.md +++ b/docs/migration/cosmoshub-4-vega-upgrade.md @@ -11,6 +11,7 @@ TOC: - [Upgrade will take place December 14, 2021](#upgrade-will-take-place-december-14-2021) - [Chain-id will remain the same](#chain-id-will-remain-the-same) - [Preparing for the upgrade](#preparing-for-the-upgrade) + - [System requirement](#system-requirement) - [Backups](#backups) - [Testing](#testing) - [Current runtime, cosmoshub-4 (pre-Vega upgrade) is running Gaia v5.0.0](#current-runtime-cosmoshub-4-pre-vega-upgrade-is-running-gaia-v500) @@ -40,6 +41,19 @@ The chain-id of the network will remain the same, `cosmoshub-4`. This is because ## Preparing for the upgrade +### System requirement +32GB RAM is recommended to ensure a smooth upgrade. + +If you have less than 32GB RAM, you might try creating a swapfile to swap an idle program onto the hard disk to free up memory. This can +allow your machine to run the binary than it could run in RAM alone. + +```shell +sudo fallocate -l 16G /swapfile +sudo chmod 600 /swapfile +sudo mkswap /swapfile +sudo swapon /swapfile +``` + ### Backups Prior to the upgrade, validators are encouraged to take a full data snapshot. Snapshotting depends heavily on infrastructure, but generally this can be done by backing up the `.gaia` directory. @@ -106,11 +120,11 @@ Then you should get the following structure: ├── current -> genesis or upgrades/ ├── genesis │ └── bin -│ └── gaiadv5.0.0 +│ └── gaiad #v5.0.x └── upgrades └── Vega └── bin - └── gaiadv6.0.0 + └── gaiad #v6.0.0 ``` Export the environmental variables: ```shell @@ -153,7 +167,7 @@ cp $(which gaiad) $GAIA_HOME/cosmovisor/genesis/bin ├── current -> genesis or upgrades/ └── genesis └── bin - └── gaiadv5.0.0 + └── gaiad #v5.0.x ``` Export the environmental variables: ```shell