Iagon Compute Node CLI is a CLI application which allows users to share their computational power on the Iagon network to earn rewards.
This document provides step-by-step instructions to help you install and set up Iagon Compute Node CLI on your system. Currently only Linux based OS (Ubuntu 22.04) is supported.
You can install the Official Compute Node CLI binary by using our install.sh script, which you can get from Iagon's Github Release page.
wget -qO- https://github.com/Iagonorg/Mainnet-Compute-Node/releases/download/v0.2.0-beta/install.sh | sudo bash
The script installs and configures necessary 3rd party trusted packages as dependencies, which includes:
- fio, sysbench (for benchmarking)
- nginx (for reverse proxy)
- kvm and libvirt (for resource isolation through virtual machine)
You can update your compute node binary to latest version by using our update.sh script, which you can get from Iagon's Github Release page.
wget -qO- https://github.com/Iagonorg/Mainnet-Compute-Node/releases/download/v0.2.0-beta/update.sh | sudo bash
Before installing the Compute Node CLI, ensure the following prerequisites are met:
Enable kvm virtualization support on your bios. Consult your device manufacturer documentation.
Enable port forwarding for the compute node binary on a static ip. The port 443 should be accessible from the internet.
Once the binary and the necessary dependencies are installed, you can use the Compute Node CLI. There are various commands available in the CLI to make the on-boarding/registration process easier. The user can start the node and execute various test commands to check the hardware status of the node.
Execute the following commands, as: iag-compute-cli some-command
-
start
Evaluate/Register the host machine as compute node or start compute node if already evaluated.
-
stop
Stop compute node (if already running)
-
status
Check running status of compute node
-
check
Check if the system adhere to prerequisite criteria
-
info
Extract basic information about the system
-
test-node
Test if the node is accessible from the internet
-
clear-config
Clear the configurations
-
tasks
Show the compute tasks running on the node.
-
benchmark-memory
Run memory tests and benchmark for the host machine
-
benchmark-cpu
Run cpu tests and benchmark for the host machine
-
benchmark-storage
Run storage i/o tests and benchmark for the host machine
-
benchmark-network
Run network tests and benchmark for the host machine
-
help
Display help for command