-
The node-health-check service can be used to guarante availability of the orion transaction manager. The code aims to work hand in hand with the operating system. If for some reason the Orion service fails, then the node-health-check service restarts it.
-
The installation of this service has been automated in the recommended process for the deployment of new nodes described in the lacchain network repository, that uses Ansible. Therefore, it's being used in the besu-network by writer nodes that execute private transactions.
-
The node-health-check service monitors the following:
- Orion Node url
- Orion Client url
- Orion Java process: Monitors the heap and old space.
- Golang
$ https://github.com/lacchain/node-health-check.git
$ cd node-health-check/
$ export GO111MODULE=off && go get ./... && go build -o health-check
Run the code with:
$ go run health-check
If you have installed this software by using the ansible from the besu-network, you can check the logs by using:
$ journalctl -fu health-check.service
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.