Skip to content

lacchain/node-health-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node Health Check

Introduction

  • 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:

    1. Orion Node url
    2. Orion Client url
    3. Orion Java process: Monitors the heap and old space.

Requirements

  • Golang

Clone Repository

$ https://github.com/lacchain/node-health-check.git
$ cd node-health-check/

Build process the code

$ export GO111MODULE=off && go get ./... && go build -o health-check

Running the code

Run the code with:

$ go run health-check

Looking for logs

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

Copyright 2020 LACChain

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.

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages