lotus/cmd/lotus-health
ognots 445b7f3388 refactor lotus-health agent for robustness
add retry logic when calls to API fail.
if API reconnects fail, restart lotus-daemon as it means lotus-daemon is likely unhealthy.

wait for lotus node's chain to sync during each check cycle, to avoid restarting lotus-daemon if needing to sync.

handle SIGTERM properly.

general cleanup and refactor of code, getting ready of unnecessary channels
2020-01-24 11:46:47 -05:00
..
main_test.go refactor lotus-health agent for robustness 2020-01-24 11:46:47 -05:00
main.go refactor lotus-health agent for robustness 2020-01-24 11:46:47 -05:00
notify.go refactor lotus-health agent for robustness 2020-01-24 11:46:47 -05:00