Light Node Guide

Persyaratan Sistem

Komponen
Minimum
Recommended

RAM

4 GB

8 GB

CPU (amd64/x86 architecture)

2 Core

4 Core

Storage (SSD)

20-40 GB

200-300 GB

Install Dependency

sudo apt update && sudo apt upgrade -y
sudo apt install curl tar wget clang pkg-config protobuf-compiler libssl-dev jq build-essential protobuf-compiler bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y

Install Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.cargo/env
rustup default stable
rustup update
rustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly

lakukan command di atas satu persatu

Download dan membangun binaries

git clone https://github.com/availproject/avail-light.git
cd avail-light
wget -O config.yaml https://raw.githubusercontent.com/meowment/testnet_tutorial/main/avail/config.yaml
git checkout v1.7.2
cargo build --release
sudo cp $HOME/avail-light/target/release/avail-light /usr/local/bin

Membuat Service Light Avail

nano /etc/systemd/system/availightd.service
[Unit]
Description=Avail Light Client
After=network-online.target

[Service]
User=$USER
ExecStart=$(which avail-light) --config $HOME/avail-light/config.yaml --network biryani
Restart=on-failure
RestartSec=3
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target

tekan ctrl+x lalu y enter

Jalankan Service Light Avail

sudo systemctl daemon-reload
sudo systemctl enable availightd
sudo systemctl restart availightd

Monitor dan cek log

lihat status service

systemctl status availightd.service

Pastikan statusnya AKTIF dan tidak ada error

cek log service yang berjalan

journalctl -f -u availightd.service

output akan seperti ini jika berhasil

cek blok terbaru yang di proses light client

curl "http://localhost:7000/v1/latest_block"

cek status blok terbaru

curl "localhost:7000/v1/status"

cek health

curl -I "localhost:7000/health"

Last updated