Validator
1. System Requirements
Before starting, make sure your server meets the following minimum system requirements:
Operating System: Ubuntu 20.04 LTS or higher
CPU: 4 cores
RAM: 16 GB
Storage: SSD with at least 500 GB of free space
Network: High-speed internet connection with low latency
2. Install Dependencies
First, update your system and install the necessary dependencies:
3. Install Rust and Cargo
Elixir's node software is typically written in Rust, so you'll need to install Rust and Cargo (Rustβs package manager):
Verify the installation:
4. Clone the Elixir Repository
Clone the official Elixir repository from GitHub:
5. Build the Node
Navigate to the directory where the source code was cloned and build the node:
This process may take a while depending on your serverβs performance. After it's done, the compiled binary will be available in the target/release/
directory.
6. Configure the Node
Before running the node, you need to configure it. Create a configuration file by copying the example provided:
Edit the config.toml
file to suit your needs. Here's an example configuration:
7. Start the Node
Once everything is configured, start your node with the following command:
You should see output indicating that your node is starting and connecting to the network.
8. Set Up a Systemd Service (Optional)
To keep your node running in the background, you can set it up as a systemd service:
Create a new service file:
Add the following content:
Replace /path/to/your/elixir-node
and /path/to/your/config.toml
with the actual paths to your node binary and configuration file.
Enable and start the service:
Check the status to ensure everything is running smoothly:
9. Monitor Node Logs
To monitor your node's activity and debug any issues, check the logs:
10. Secure Your Node
To secure your node, ensure that you have proper firewall rules in place. For example, you can use ufw
(Uncomplicated Firewall) to only allow necessary ports:
11. Keep the Node Updated
Regularly update your node to the latest version to stay in sync with the network:
12. Backup and Recovery
Ensure that you regularly back up your nodeβs keys and configuration. In case of failure, you can restore your node by simply copying these files to a new server and restarting the node.
By following this guide, you should have a fully operational Elixir validator node. Be sure to consult the official documentation and community resources for more specific details and troubleshooting.
Last updated