-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(watcher): telegram alerting and automatically persist val node (#…
…1127) Description --- * Add Telegram support for alerting on various events * Add automatic restart of `tari_validator_node` if it crashes and configuration to disable How Has This Been Tested? --- Create TG channel and populate `credentials` (bot token) and `channel_id` in the config file. Go through previous steps of starting `tari_swarm_daemon` and have the `tari_watcher` register the node. Look at the watcher logs for the spawned process pid, or use `ps aux | grep 'tari_validator_node'` and look for the process with the default VN folder, and call `kill -9 $PID`. This induces a crash of the node and if `auto_restart` is enabled, the `tari_watcher` will start a new validator node. It will keep the state of registry since before, as long as the `tari_watcher` does not exit, and send registration transaction as usual.
- Loading branch information
1 parent
23bbb44
commit d85bf65
Showing
8 changed files
with
367 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.