oursky / likecoin-chain

LikeCoin chain node
https://likecoin.bigdipper.live
GNU General Public License v3.0
1 stars 2 forks source link

[Starferry] Migration test #286

Open mitchellchou opened 2 years ago

mitchellchou commented 2 years ago
elise-ng commented 2 years ago

we might want to manually test the upgrade with a testnetified snapshot as well, ref https://www.notion.so/oursky/LikeCoin-Mainnet-Migration-Test-3445bad868fe41829f9ececf81fa7952

hochiw commented 1 year ago

Tested migration with a testnetified chain using nnkken's mainnet snapshot at block 4591886, with the upgrade scheduled at 4592300

The node was running stable at 16gb ram consumption pre-upgrade, dropped to 400mb for the backup then back to 11-15gb during upgrade then went to 17gb post-upgrade as observed with htop. Will quick test another round with a 32gb+32gb swap machine

As for the upgrade itself there were no errors observed, so smooth I thought the upgrade proposal didn't pass

Log for record

Jul 07 16:04:18 starferry-mainnet-test cosmovisor[6102]: 4:04PM INF Daemon shutting down in an attempt to restart module=cosmovisor
Jul 07 16:04:18 starferry-mainnet-test cosmovisor[6102]: 4:04PM INF starting to take backup of data directory backup start time=2022-07-07T16:04:18Z module=cosmovisor
Jul 07 16:04:18 starferry-mainnet-test cosmovisor[6102]: 4:04PM INF backup completed backup completion time=2022-07-07T16:04:18Z backup saved at=/home/mnt/.liked/data-backup-2022-7-7 module=cosmovisor time taken to complete backup=91.908479
Jul 07 16:04:18 starferry-mainnet-test cosmovisor[6102]: 4:04PM INF pre-upgrade command does not exist. continuing the upgrade. module=cosmovisor
Jul 07 16:04:18 starferry-mainnet-test cosmovisor[6102]: 4:04PM INF No upgrade binary found, beginning to download it module=cosmovisor
Jul 07 16:04:25 starferry-mainnet-test cosmovisor[6102]: 4:04PM INF Downloading binary complete module=cosmovisor
Jul 07 16:04:25 starferry-mainnet-test cosmovisor[6102]: 4:04PM INF upgrade detected, relaunching app=liked module=cosmovisor
Jul 07 16:04:25 starferry-mainnet-test cosmovisor[6102]: 4:04PM INF running app args=["--home","/home/mnt/.liked","start","--rpc.laddr","tcp://0.0.0.0:26657","--halt-time","0","--halt-height","0"] module=cosmovisor path=/home/mnt/.liked/cosmovisor/upgrades/v3.0.0/bin/liked
Jul 07 16:04:25 starferry-mainnet-test cosmovisor[6913]: 4:04PM INF starting node with ABCI Tendermint in-process
Jul 07 16:04:56 starferry-mainnet-test cosmovisor[6913]: 4:04PM INF Starting multiAppConn service impl=multiAppConn module=proxy
Jul 07 16:04:56 starferry-mainnet-test cosmovisor[6913]: 4:04PM INF Starting localClient service connection=query impl=localClient module=abci-client
Jul 07 16:04:56 starferry-mainnet-test cosmovisor[6913]: 4:04PM INF Starting localClient service connection=snapshot impl=localClient module=abci-client
Jul 07 16:04:56 starferry-mainnet-test cosmovisor[6913]: 4:04PM INF Starting localClient service connection=mempool impl=localClient module=abci-client
Jul 07 16:04:56 starferry-mainnet-test cosmovisor[6913]: 4:04PM INF Starting localClient service connection=consensus impl=localClient module=abci-client
Jul 07 16:04:56 starferry-mainnet-test cosmovisor[6913]: 4:04PM INF Starting EventBus service impl=EventBus module=events
Jul 07 16:04:56 starferry-mainnet-test cosmovisor[6913]: 4:04PM INF Starting PubSub service impl=PubSub module=pubsub
Jul 07 16:04:56 starferry-mainnet-test cosmovisor[6913]: 4:04PM INF Starting IndexerService service impl=IndexerService module=txindex
Jul 07 16:04:56 starferry-mainnet-test cosmovisor[6913]: 4:04PM INF ABCI Handshake App Info hash="�ؼ���ܯ\b�z\x01\x03y\"\x18ͺ�\x03�6\x17i&{{�)�0\x1a" height=4592299 module=consensus protocol-version=0 software-version=3.0.0-rc1
Jul 07 16:04:56 starferry-mainnet-test cosmovisor[6913]: 4:04PM INF ABCI Replay Blocks appHeight=4592299 module=consensus stateHeight=4592299 storeHeight=4592300
Jul 07 16:04:56 starferry-mainnet-test cosmovisor[6913]: 4:04PM INF Replay last block using real app module=consensus
Jul 07 16:04:56 starferry-mainnet-test cosmovisor[6913]: 4:04PM INF applying upgrade "v3.0.0" at height: 4592300
Jul 07 16:04:56 starferry-mainnet-test cosmovisor[6913]: 4:04PM INF adding a new module: likenft
Jul 07 16:04:56 starferry-mainnet-test cosmovisor[6913]: 4:04PM INF adding a new module: nft
Jul 07 16:04:56 starferry-mainnet-test cosmovisor[6913]: 4:04PM INF minted coins from module account amount=2181005323941602nanolike from=mint module=x/bank
Jul 07 16:04:56 starferry-mainnet-test cosmovisor[6913]: 4:04PM INF executed block height=4592300 module=consensus num_invalid_txs=0 num_valid_txs=0
Jul 07 16:04:56 starferry-mainnet-test cosmovisor[6913]: 4:04PM INF commit synced commit=436F6D6D697449447B5B32333520373120323620323439203231382032353320343520353320323135203435203139203132362031323020313436203439203230342031313120313430203231332032392031343320313137203138332032312031323220393920313035203233362031393820313820313938203138365D3A3436313241437D
Jul 07 16:04:56 starferry-mainnet-test cosmovisor[6913]: 4:04PM INF committed state app_hash=EB471AF9DAFD2D35D72D137E789231CC6F8CD51D8F75B7157A6369ECC612C6BA height=4592300 module=consensus num_txs=0
Jul 07 16:04:56 starferry-mainnet-test cosmovisor[6913]: 4:04PM INF Completed ABCI Handshake - Tendermint and App are synced appHash="�ؼ���ܯ\b�z\x01\x03y\"\x18ͺ�\x03�6\x17i&{{�)�0\x1a" appHeight=4592299 module=consensus
Jul 07 16:04:56 starferry-mainnet-test cosmovisor[6913]: 4:04PM INF Version info block=11 p2p=8 tendermint_version=0.34.19
Jul 07 16:04:56 starferry-mainnet-test cosmovisor[6913]: 4:04PM INF This node is a validator addr=53282675C1C795DC342F2DFBAA5C875BCA0A2F9B module=consensus pubKey=2mBZo2TMlK/TaHaFh3KFWprPmY05Y8jfy4t9sNhlkqE=
Jul 07 16:04:56 starferry-mainnet-test cosmovisor[6913]: 4:04PM INF indexed block height=4592300 module=txindex
hochiw commented 1 year ago

Prepare mainnet snapshot and setup a node for QA team to run the test

@mitchellchou QA team will run test on the testnetified and upgraded node right? so I shall jog down the ip here after i am done with the second round migration test?