Code Monkey home page Code Monkey logo

voi-checker's Introduction

VOI Participation Node Checker

by Morph42

A collection of scripts for quickly finding the status of your VOI node. These scripts should work on any node setup using D13s instructions - https://d13.co/posts/set-up-voi-participation-node/.

Note: The scripts D13 uses for going online, offline, rekeying are available in the /D13 directory for convinience

Prerequisites

  1. Check you have set your VOI wallet address in your environment: export addr=<VOI WALLET ADDRESS>
  2. Clone the repo to your node: git clone https://github.com/crypto-morph/voi-checker.git
  3. Ensure you have pip installed: sudo apt install pip
  4. Ensure you have the required modules installed: pip install -r requirements.txt

Usage

  1. cd voi-checker
  2. ./check-status.py

If you would like to add an optional Bandwidth test (using "speedtest cli") you can run like this:

./check-status.py --speedtest=true

There is also an experimental latency check mode - this connects to all the active Relays one at a time and measures the time it takes by region.

./check-status.py --latency=true

Example output

$ ./check-status.sh 
 Pre-Flight-Checks...
   INFO - goal command is present
   INFO - speedtest-cli statistics psutil tcp-latency are all installed
-------
 VOI Participation Node Checker...
-------
 Checking Node...
   INFO - VOI address is XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
   OK - systemctl detected (likely a D13 setup)
   OK - VOI Node is started
   OK - Node is in sync
   OK - Node is in online
 Checking Balance...
   OK - 550 VOI is enough
 Check Resources...
   INFO - uptime is 20.49 days
   INFO - The CPU usage is : 8.67
   INFO - Logical CPU Count is 16
   INFO - Actual CPU Count is 8
   OK - CPU usage is currently 8.67%
   INFO - RAM present is 28.29Gb
   INFO - Used RAM present is 8.91Gb
   OK - RAM usage is currently 8.908443450927734%
   INFO - available space on / storage - 94.0%
   OK - Root storage is 6.0%
 Checking Participation Key...
   OK - 1192643 blocks until your key stops working
 Checking Logging...
   OK - Logging enabled
   OK - Logging Name set to 'XXXXXXXX'
   INFO - GUID starts 'XXXXXXXX-XXXX'
 Check Versions...
   INFO - goal version - 3.21.0
   INFO - algod version - 3.21.0
 Checking Consensus...
   OK - good average percentage on time - 96.6%

Latency check:

 Checking Relay Latency (this could take a few moments)...
   INFO - checking r-na-39.testnet.voi.network...143.56ms
   ERROR - r-na-25.testnet.voi.network(15.204.233.209) returned no response on port 5011 (tried 5 times)
   INFO - checking r-apac-07.testnet.voi.network...283.0ms
   INFO - checking r-eu-18.testnet.voi.network...33.17ms
   INFO - checking r-eu-53.testnet.voi.network...51.64ms
   INFO - checking r-eu-21.testnet.voi.network...28.1ms
   INFO - checking r-apc-15.testnet.voi.network...243.44ms
   ...snip...
   

voi-checker's People

Contributors

crypto-morph avatar hsaidc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.