Open Source: Auto Switch Your Witness Node In the Event of Failure

9개월 전

My main witness node crashed for no reason when I was asleep around 1.AM midnight.

image.png

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:

{
    "account": "Your Steem Witness Account",
    "key": "Your Active Key",
    "signing_keys": [
        "Witness Signing Key 1",
        "Witness Signing Key 2",
        "STM1111111111111111111111111111111114T1Anm"
    ],
    "url": "https://steemyy.com",
    "fee": "3.000 STEEM",
    "interval": 60,
    "period": 360,
    "threshold": 4  
}

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.

image.png

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

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
STEEMKR.COM IS SPONSORED BY
ADVERTISEMENT
Sort Order:  trending
·

感谢大佬!

How do I get your attention...???
I've been around three years, and I still feel invisible...
June 8, 2020... 12.1 Hollywood Time

·
·
·

I'd rather see a few words from you, instead of an entire link...
June 9, 2020... 7.8 Hollywood Time...

·

Congratulations @theguruasia, you successfuly trended the post shared by @justyy!
@justyy will receive 17.66810475 TRDO & @theguruasia will get 11.77873650 TRDO curation in 3 Days from Post Created Date!

"Call TRDO, Your Comment Worth Something!"

To view or trade TRDO go to steem-engine.com
Join TRDO Discord Channel or Join TRDO Web Site

Congratulations @justyy, your post successfully recieved 17.66810475 TRDO from below listed TRENDO callers:

@theguruasia earned : 11.7787365 TRDO curation


To view or trade TRDO go to steem-engine.com
Join TRDO Discord Channel or Join TRDO Web Site