🛠️Compute Node
In this section, we will explain how to become a compute node in the Distri.AI.
Distri.AI GPU computing network. By sharing your unused computing power, you can support more AI creators in need while earning profits. Generally, you should have already created a Solana account by now for easy use of the Distri.AI compute node client.
Recommended configuration
Operating System: Ubuntu 22.04
Go: 1.21.0
CPU: 4 cores
Memory: 8GB
Disk: 100GB
GPU: Nvidia RTX 3090
Network: 1Gbps
Run the client
Please follow the steps below to run the node.
1 Dependency installation
# Update package repositories
apt update
# Install curl using apt
apt install curl
# Verify correct installation
curl
# Download the setup script from Distri.AI
curl -L https://github.com/distri-group/DistriAI-Node/blob/dev/DistriAI-setup.sh -o DistriAI-setup.sh
2 Compile the program
# Clone the DistriAI-Index repository from GitHub
git clone https://github.com/distri-group/DistriAI-Index.git
# Compile the main.go file to produce an executable binary named "DistriAI"
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/DistriAI main.go
3 Node configuration
Node runtime configuration
# Configuration file should be in the same directory as the executable file
# Create and open the config.yml file
cat << EOF > config.yml
# Configuration input
base:
rpc:
# Mnemonics used to complete transactions
⭐#privateKey:(Replace with your own Solana node private key, can be created through Phantom plugin)⭐
⭐#After creation, receive testnet Sol/Dist on the faucet on the Distri.AI website⭐
# The level of privacy protection provided
securityLevel: 0
console:
# Directory provided for training models. default: /data/distri
workDirectory:
⭐# Adaptively modify according to the size of the mounted disk. Image size is about 50GB⭐
# default: https://ipfs.distri.ai
ipfsNodeUrl:
# If using a proxy, please specify the public IP address. If not using a proxy, you can ignore this.
publicIP:
⭐# Change to a public port, optionally 80⭐
# The port on which the DistriAI listens. default: 13010
# Make sure the public network is accessible
distriPort:
# The port on which the workspace or deploy listens. default: 13011
workPort:
# The port on which the Local server listens. default: 13012
serverPort:
# Optional, ease of use for users to deploy tools such as visualization or data tracking.
# Make sure the public network is accessible
publicPortExpand1:
publicPortExpand2:
publicPortExpand3:
EOF
(Enter to exit)
```
Docker Configuration File
Considering that Docker images are typically downloaded to the /var/lib/docker directory, which may have insufficient storage space, it is necessary to modify Docker's default storage path.
# View current Docker configuration
docker info
# Stop Docker service
systemctl stop docker.service
# Modify configuration file
vim /etc/docker/daemon.json
# Add the following content to the configuration file
{
"data-root": "/mnt/docker"
}
# Edit the configuration file
vim /etc/systemd/system/multi-user.target.wants/docker.service
# Modify the following content in ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock:
ExecStart=/usr/bin/dockerd --graph=/mnt/docker --storage-driver=overlay
# Restart Docker
systemctl daemon-reload
systemctl restart docker
systemctl status docker
# Verify if the path has been modified
docker info
Causing Docker bug - frequent restarts (docker daemon unable to start)
Tutorial after modification
# Modify the configuration file
vim /etc/docker/daemon.json
# Restart Docker
systemctl restart docker
(Check if the configuration of the --graph command needs to be modified)
4 Enter the computing power market and connect your wallet

You can view the computing power devices under your account along with their respective parameters.
5 List the device on the computing power market


Set the device price and relevant restrictions, confirm the order, and sign. With this, you have completed listing the computing power device on the computing power market.
6 Take the device off the market


Confirm and complete the signature to finalize the device delisting.
If you encounter any issues during usage, please contact us.
Last updated