[Witness Failover] Public Release Of STEEM Witness Failover Node.js Script

in #utopian-io7 years ago (edited)

[Witness Failover] Public Released Of STEEM Witness Failover Node.js Script

image.png


Issue

If you are a Steem witness, you know how important it is to ensure that your server is constantly online and producing. However, sometimes shit happens and there is nothing you can do about that ... besides being prepared.

Solution

For these reasons, I created this Witness Failover script because some of the other ones out there already have become outdated for whatever reason. The script will run constantly inside a docker container watching the total_missed blocks for a witness. When they total_missed blocks exceeds the threshold, the backup witness will be activated and a SMS message will be sent to the owner.

Summary

Hopefully by releasing this script other users will be able to configure their own witness failover setup. This will help the Steem network to remain stable and profitable for many years to come.

How To Get Started

  • Clone the repository
    • git clone https://github.com/netuoso/witness-failover
  • Enter the directory
    • cd witness-failover
  • Copy the example .env file
    • cp .env.example .env
  • Edit the values in the .env file to the appropriate values for your account.
    • STEEM_ACCOUNT: The account name of the witness
    • STEEM_NODE: The steem public node used to broadcast the transaction
    • STEEM_WIF: The WIF active PRIVATE key of the account
    • STEEM_BACKUP: The WIF signing PUBLIC key of the backup server
    • STEEM_ACCOUNT_CREATION_FEE: (Preferred Witness Setting)
    • STEEM_MAXIMUM_BLOCK_SIZE: (Preferred Witness Setting)
    • STEEM_SBD_INTEREST_RATE: (Preferred Witness Setting)
    • STEEM_WITNESS_URL: (Preferred Witness Setting)
    • CHECK_RATE: The number of seconds between checks.
  • Build the docker container
    • docker-compose up --build -d --remove-orphans
  • View the logs
    • docker-compose logs -f

Example Output

[1515633922] All clear .. Total missed: 0
[1515633982] All clear .. Total missed: 0
[1515634042] All clear .. Total missed: 0

Screenshot

Screen Shot 2018-01-10 at 7.56.28 PM.png

Links

Shoutout

Thanks @jesta for letting me rip off your well formatted .env file and README



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

your work will be appreciated

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @netuoso I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x