My main witness node crashed for no reason when I was asleep around 1.AM midnight.
Thanks for @fancybrothers who notified me on the discord channel. When I got the message, it has been 5 hours and I ‘ve missed 310 blocks.
Sh*t happens!
Thus, I decide to write a tool that monitors the witness node, in case of failure, it will detect and switch to your backup node.
Project: https://github.com/DoctorLai/SteemWitnessAutoSwitch
It is easy to use: you first need to configure:
1 | { |
Make the last siging key disabled one so it will disable your node in case all your witness nodes are down. I have taken out the code to send a email for notification since it is quite customised to my settings but you can easily add it, the easily way to send a email would be to launch the mail
utility.
The default setting is to switch if there are 4 missed blocks in the last 6 minutes. You can adjust if you are outside TOP 20. The interval
is the time interval to check if there are new misses.
Last but not least, I would recommend running this using screen
or pm2
Every little helps! I hope this helps!
Steem On!~
If you like my work, please consider voting for me, thanks!
https://steemit.com/~witnesses type in justyy and click VOTE
Alternatively, you could proxy to me if you are too lazy to vote!
Also: you can vote me at the tool I made: https://steemyy.com/witness-voting/?witness=justyy
Visit me at: https://steemyy.com
This page is synchronized from the post: ‘Open Source: Auto Switch Your Witness Node In the Event of Failure’