You are viewing a single comment's thread from:

RE: [steemtools] automatic failover for witness nodes

in #witness-category8 years ago

You could, but who's to say that the other server would be online again if the backup went down? It might just ping-pong between two dead servers and spam witness_update operations until you pay attention to it.

It could definitely be taken that direction though with a bit more effort. Effort that I haven't yet put in :)

Sort:  

A better plan would be to have a script run on the witness server that actually checks for steemd running - or just open a port in the firewall and have the failover script check that it can connect.

Steemd could be running, but not ready to accept connections / witness blocks. So you'd get false positives about it being "active" if you were just checking for a running process. The node takes a good 10 minutes to spin up and during that time, it's going to appear to be running.

On the other hand, with the open port... If you wanted to check connections to steemd, you also would have to enable one of the RPC endpoints or plugins for that to work. You probably don't want to use any of those settings for a witness node. I'd also rather not open any ports on the firewall or connect to it at all.

IMHO this is a better solution than those options. I had a node completely melt down and I missed 2 blocks in 2 minutes, then it failed over to the running node.

To each his own though!

Coin Marketplace

STEEM 0.17
TRX 0.13
JST 0.027
BTC 60937.59
ETH 2721.71
USDT 1.00
SBD 2.43