Starting a Validator
Configure Velas CLI
The Velas cli includes get
and set
configuration commands to automatically
set the --url
argument for cli commands. For example:
velas config set --url https://explorer.testnet.velas.com/rpc
While this section demonstrates how to connect to the Devnet cluster, the steps are similar for the other Velas Clusters.
Confirm The Cluster Is Reachable
Before attaching a validator node, sanity check that the cluster is accessible to your machine by fetching the transaction count:
velas transaction-count
Confirm your Installation
Try running following command to join the gossip network and view all the other nodes in the cluster:
velas-gossip spy --entrypoint bootstrap.testnet.velas.com:8001
# Press ^C to exit
Enabling CUDA
If your machine has a GPU with CUDA installed (Linux-only currently), include
the --cuda
argument to velas-validator
.
When your validator is started look for the following log message to indicate
that CUDA is enabled: "[<timestamp> solana::validator] CUDA is enabled"
System Tuning
Linux
Automatic
The Velas repo includes a daemon to adjust system settings to optimize performance (namely by increasing the OS UDP buffer limits, and scheduling PoH with realtime policy).
The daemon (solana-sys-tuner
) is included in the Velas binary release. Restart
it, before restarting your validator, after each software upgrade to ensure that
the latest recommended settings are applied.
To run it:
sudo solana-sys-tuner --user $(whoami) > sys-tuner.log 2>&1 &
Manual
If you would prefer to manage system settings on your own, you may do so with the following commands.