🤖Autonomys - Linux
Last updated
Last updated
Please carefully read the Farmer deployment documentation and follow the steps to complete the cluster deployment process.
Autonomys-farmer consists of the following components:
autonomys-controller: Responsible for proxying node RPC, used to manage cluster components.
sharded-cache: Piece sharded cache.
full-piece-sharded-cache: Full node of piece sharded cache.
proof-server: GPU-based block generation, used for computing proofs.
plot-server: Plotting service, responsible for encoding data.
plot-client: Farming component, used for scanning disks and submitting solutions.
Currently, all cluster management is based on NATS, but the actual data transmission for the cache is done through TCP for peer-to-peer (P2P) communication.
This software is only supported on Linux operating systems and Nvidia GPU environments.
Operating System: Ubuntu 22.04
GPU Driver Version: ≥ 525.60.13, or alternatively, install CUDA 12.4 directly.
File System: Ext4
Supervisor: 4
NATS Server: v2.10.22
numactl: Required for managing NUMA (Non-Uniform Memory Access) nodes
Note: The following names, IP addresses and other details are examples.
Start by launching NATS, then follow the instructions below to configure Supervisor’s parameters. Once configured, simply run the following command to start all programs:
Each node requires the deployment of 4 components: controller
autonomys-node
proof-server
nats-server
Deployment sequence: nats-server
-> autonomys-node
-> controller
-> proof-server
nats-server
This software requires the JetStream feature to be enabled in nats-server. To activate JetStream, simply start nats-server with the --jetstream
flag.
For nats-server configuration, please refer to the official NATS documentation as well as the Autonomys NATS configuration documentation.
Here is an example configuration for nats-server for your reference.
autonomys-controller
autonomys-node
autonomys-proof-server
--nats-server
: This parameter is used to specify the address of the NATS server.
CUDA_VISIBLE_DEVICES
: This environment variable is used to specify which GPU to use. For example, 0
represents GPU0, 1
represents GPU1, and so on.
Plotter Configuration (Example with 4 GPUs)
Each plotter requires the deployment of e components: autonomys-plot-server
, autonomys-sharded-cache
and autonomys-full-piece-cache
The autonomys-plot-server
component retrieves pieces from both the autonomys-sharded-cache
and autonomys-full-piece-cache
components for use on the plotting drive.
autonomys-sharded-cache
--nats-server
: Specifies the address of the NATS server.
path=/path/to/autonomys-sharded-cache
: Specifies the storage path for the piece cache.
autonomys-full-piece
--nats-server
: This parameter is used to specify the address of the NATS server.
path=/path/to/autonomys-full-piece
: This parameter is used to specify the storage path for the piece cache.
autonomys-plot-server
--nats-server
: Specifies the address of the NATS server.
CUDA_VISIBLE_DEVICES
: Sets the GPU to be used, where 0
represents GPU0, 1
represents GPU1, and so forth.
GPU_CONCURRENCY
: Increasing this value raises GPU memory usage. Adjusting this variable may be beneficial when using GPUs of different models.
It is important to note that when using the numactl tool to bind CPU cores, you should consider the NUMA affinity of the GPU to achieve optimal performance.
You can use the nvidia-smi topo -m
command to check the NUMA affinity of the GPU.
autonomys-plot-client
--nats-server
: Used to specify the address of the NATS server.
path=/path/to/plot-dir,sectors=8000
: Specifies the file path for plots as well as the number of sectors for the plot, with 8000
as the sector count in this example.
Execute the command to manually initialize the cluster. The entire cluster will be reinitialized after n seconds.
• --delay 0
: Initialization delay, in seconds.
Simulate the plot download sector process by sending requests to the cache cluster and checking the cluster status.
The Autonomys Piece Conversion Tool allows you to convert data synchronized by autonomys-node
into piece
cache data. Please follow the steps below to export piece
cache data:
Use the following command:
After executing the command, the generated piece
data will be automatically saved to the full-cache-tmp
directory on your local machine.
Simply set the path
parameter of the autonomys-full-piece
component to this directory.
Note: The startup command for autonomys-node
specified in NODE_URL
must include the --sync=full
parameter.
The Autonomys Piece Verification Tool allows you to verify generated piece
data. Run the following command to initiate verification:
You can download pre-synced node
data from Baidu Cloud, with the file name node-db.tar.gz
. After downloading and extracting, you’ll still need to sync the latest node data, but the process will be significantly faster.
Data Update: The data is current as of November 12, 2024, at 23:00 Singapore Time.
Note: This is raw node
data, and it must be converted into piece
data using the autonomys-export-piece
tool before it can be used for packaging.
Download Link: https://pan.baidu.com/s/105H1EOrnfA9hcpcU265RcA Access Code: 67nq
Server | IP Address | Configuration | Component |
---|---|---|---|
Node
64 cores
64GB / 128GB
Required
500GiB
at least 1 Gbps
controller
autonomys-node
proof-server
nats-server
Plotter
at least 30 cores per GPU
at least 64GB per GPU
Required
at least 1 TiB for caching plot data
at least 20 Gbps
plot-server
sharded-cache
full-piece-cache
Storage
depending on the storage capacity
depending on the storage capacity
Not Required
depending on the storage capacity
at least 20 Gbps
plot-client
Node 1
192.168.1.1
GPU * 1
controller
autonomys-node
proof-server
nats-server
Node 2
192.168.1.2
GPU * 1
controller
autonomys-node
proof-server
nats-server
Node 3
192.168.1.3
GPU * 1
controller
autonomys-node
proof-server
nats-server
Plotter 1
192.168.1.4
GPU * 4
autonomys-plot-server-0
autonomys-plot-server-1
autonomys-plot-server-2
autonomys-plot-server-3
sharded-cache
full-piece-cache
Plotter 2
192.168.1.5
GPU * 4
autonomys-plot-server-0
autonomys-plot-server-1
autonomys-plot-server-2
autonomys-plot-server-3
sharded-cache
full-piece-cache
Storage 1
192.168.1.6
8T NVMe SSD * 4
/mnt/nvme0n1
/mnt/nvme0n2
/mnt/nvme1n2
/mnt/nvme1n1
autonomys-plot-client
Storage 2
192.168.1.7
8T NVMe SSD * 4
/mnt/nvme0n1
/mnt/nvme0n2
/mnt/nvme1n1
/mnt/nvme1n2
autonomys-plot-client