How To Implement The ICON Switchover Solution  

Everstake

Education 3 years ago
1 QCP
Post Image
In the situation when your server fails, you need to have fast and easy migration from the one that is not operating to another server, so that you can continue producing blocks with minimum downtime.

Always keep an eye on your main ICON node and determine if there is a problem. This script can help you to monitor the status of the ICON node and notify the Telegram channel if the node stops syncing or goes down.

Configuration
The ICON switchover solution takes no time to setup.

First of all, you need to have a backup server. Install and launch the ICON node with a different keystore on the backup server. Add the main P-Rep keystore as a comment in the docker-compose.yml. It should the following way:

PRIVATE_KEY_FILENAME: “SOME_KEYSTORE”

PRIVATE_PASSWORD: “SOME_KEY_PASSWORD”

#PRIVATE_KEY_FILENAME: “MAIN_P-Rep_KEYSTORE”

#PRIVATE_PASSWORD: “MAIN_P-Rep_PASSWORD”

Then install P-Rep Tools.

Install dependencies

$ sudo apt-get install -y libssl-dev build-essential automake pkg-config libtool libffi-dev libgmp-dev libyaml-cpp-dev

$ sudo apt-get install -y python3.7-dev libsecp256k1-dev python3-pip python3-venv

Create a virtualenv environment

$ python -m venv venv

$ source venv/bin/activate

....

More: https://everstake.one/blog/how-to-implement-the-icon-switchover-solution
  • Server
  • Nodes
  • Blockchain implementation
  • Development