Upgrading a node using Node Binary
This tutorial explains how to upgrade a node using a node binary. The instructions are separated into two parts: Validator Nodes and Non-Validating/Explorer Nodes. The steps for each type of node include downloading the new node binary, restarting the Systemd service, backing up files, and making changes to the explorer database. The tutorial also covers checking the node and updating the explorer database.
Create a folder called “
backup” in case it does not exist:
mkdir -p backup
harmony binary file:
cp harmony backup
Download Node Binary
Before we proceed to next steps we need to download the node binary first:
curl -LO https://harmony.one/binary && mv binary harmony && chmod +x harmony
curl -LO https://harmony.one/binary_testnet && mv binary_testnet harmony && chmod +x harmony
Check the node binary version that was downloaded:
Restart Systemd Service
sudo service harmony restart
To check your node follow instructions on Checking A Node.
Requirements for Explorer Nodes have changed. Check here before going forward.
Download New Explorer DB
mkdir -p backup cp harmony backup
Download Node Binary and Stop Service
curl -LO https://harmony.one/binary && mv binary harmony && chmod +x harmony sudo service harmony stop
Backup Old Explorer DB
mv explorer_storage_0.0.0.0_9000 explorer_storage_0.0.0.0_9000.backup
Extract New DB
tar xvzf explorer_storage_s0.tar.gz
Change RPC Rate Limit
harmony.conf file and add make sure the RPC Rate Limit is set to at least 50000:
[RPCOpt] RequestsPerSecond = 50000
Start Systemd Service
sudo service harmony start
DB migration should take no more than a few hours to conclude.