Node
A Node is the working unit of the InfraX network. It is a computer that is connected to the network and is used to execute user created Jobs against active Apps.
Getting Started
To get started with contributing to the InfraX network as a node supplier, you will need to install and run the InfraX Node software on your computer. You can download the latest version of the software from the public github repository.
Installation
To install the InfraX Node software, follow these steps:
Clone the repository to your local machine.
Edit the
config.toml
file to match your information. See the Configuration section for more details.Run the
install.sh
script to install the necessary dependencies and start the InfraX Node service.Your node is now connected to the InfraX network and ready to install Apps and receive Jobs.
Configuration
The config.toml
file contains the configuration settings for the InfraX Node software. You should edit this file to match your information before running the install.sh
script. The following settings are available:
external_port
: The port that the InfraX server will use to communicate with the node. This port should be open to incoming connections.local_ip
: The local IP address of the node web server.internal_port
: The port that the node will use for it's running web server. This is the port that theexternal_port
should forward to.local_only
: If set totrue
, the node will only accept connections from the local machine. This is useful for testing the node locally.app_dir
: The directory where Apps will be installed on the node.eth_address
: The Ethereum address that the node will use to receive rewards.cpu
: The name of the CPU that the node is running on.gpu
: The name of the GPU that the node is running on.ram
: The amount of RAM that the node has.vram
: The amount of VRAM that the node has.float_types
: The floating point types that the node supports. This is used to match Jobs with compatible nodes.
Usage
Once your node is connected to the InfraX network, requests to install Apps and run Jobs will be sent to your node. You can view the status of your node and the Jobs that are currently running by visiting the InfraX dashboard.
Mangement
The InfraX Node software comes with a management script that can be used to update the software and restart the node. To update the software, run the following command:
This will pull the latest version of the software from the repository and restart the node.
Additional commands can be found by running the following command:
Conclusion
Nodes are the backbone of the InfraX network and are essential for the execution of Jobs and Apps. By installing the InfraX Node software on your computer, you can contribute to the network and earn rewards for your work.
Last updated