-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release 2428
distribution
#1810
Labels
release 📦
Release
Comments
Here is the process to warm up the nodes and switch of the database: # Select the Mithril network
## Connect to pre-release-preview
export NETWORK=preview
export AGGREGATOR_ENDPOINT=https://aggregator.pre-release-preview.api.mithril.network/aggregator
export GENESIS_VERIFICATION_KEY=$(wget -q -O - https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/pre-release-preview/genesis.vkey)
### release-preprod
export NETWORK=preprod
export AGGREGATOR_ENDPOINT=https://aggregator.release-preprod.api.mithril.network/aggregator
export GENESIS_VERIFICATION_KEY=$(wget -q -O - https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/release-preprod/genesis.vkey)
### release-mainnet
export NETWORK=mainnet
export AGGREGATOR_ENDPOINT=https://aggregator.release-mainnet.api.mithril.network/aggregator
export GENESIS_VERIFICATION_KEY=$(wget -q -O - https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/release-mainnet/genesis.vkey)
# Phase 1: Warmup a temporary Cardano node from a Mithril snapshot
## Create temp dir
rm -rf /home/curry/data/temp
mkdir -p /home/curry/data/temp
cd /home/curry/data/temp
## Download Mithril client
wget https://github.com/input-output-hk/mithril/releases/download/2423.0/mithril-2423.0-linux-x64.tar.gz
tar xzf mithril-2423.0-linux-x64.tar.gz mithril-client
chmod u+x mithril-client
./mithril-client --version
## Download latest snapshot
./mithril-client cardano-db download latest
## Restore the Cardano node
docker run -d --name cardano-node-warmup -v cardano-node-ipc:/ipc -v cardano-node-data:/data --mount type=bind,source="/home/curry/data/temp/db",target=/data/db/ -e NETWORK=${NETWORK} ghcr.io/intersectmbo/cardano-node:9.0.0
docker logs -f --tail 100 cardano-node-warmup
# Phase 2: Switch Cardano database from the main node with the warmed-up one
## Copy Cardano database to aggregator
docker stop cardano-node-warmup
docker stop cardano-node-aggregator
mv /home/curry/data/$NETWORK/mithril-aggregator/cardano/db /home/curry/data/$NETWORK/mithril-aggregator/cardano/db.bak
mv /home/curry/data/temp/db /home/curry/data/$NETWORK/mithril-aggregator/cardano/db
sudo chown -R curry /home/curry/data/$NETWORK/mithril-aggregator/cardano/db
sudo chgrp -R curry /home/curry/data/$NETWORK/mithril-aggregator/cardano/db
docker start cardano-node-aggregator
docker logs -f --tail 100 cardano-node-aggregator
## Cleanup directory (when node is back up)
docker rm cardano-node-warmup
rm -rf /home/curry/data/$NETWORK/mithril-aggregator/cardano/db.bak
cd /home/curry/
rm -rf /home/curry/data/temp |
This was referenced Jul 10, 2024
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why
In order to deploy new features, improvements and bug fixes, we need to release a new distribution.
What
Create and release a new distribution
2428
How
Phase 1: Prepare distribution
crates.io
(mithril-common
,mithril-client
)networks.json
must be updated following the runbookCHANGELOG.md
(set the distribution version)9.0.0
onpre-release-preview
9.0.0
onrelease-preprod
9.0.0
onrelease-mainnet
Phase 2: Rollout pre-release distribution
2428.0-pre
pre-release distribution on thepre-release-preview
networkpre-release-preview
pre-release-preview
is working as expectednext
have been published on npm registryRun a Cardano transaction prover benchmark:Store results in the issueMake sure that there is no performance drop since last releaseAnnounce any breaking change in #cardano-scaling slack channel for pre-releaseAnnounce any breaking change in #mithril-lace slack channel for pre-release3
signers running the new version (could be more if era change is tested) over at least2
epochsPhase 3: Rollout release distribution
2428.0
release distribution on thepre-release-preview
networkpre-release-preview
is working as expected2428.0
distributionrelease-mainnet
release-mainnet
is working as expectedrelease-preprod
release-preprod
is working as expectedlatest
have been published on npm registryCHANGELOG.md
(release date of the distribution)Announce any breaking/new feature change in:#cardano-scaling slack channel for release#mithril-lace slack channel for releaseDev blog post:TBDThe text was updated successfully, but these errors were encountered: