Guides and config templates for use in setting up private Veilid networks for independent or development needs.
2.1 KiB
Dev Network Setup
Purpose
There will be times when a contibutor wishes to dynamically test their work on live nodes. Doing so on the actual Veilid network would likely not yield productive test outcomes and so setting up an independent network for testing purposes is warranted.
This document outlines the process of using the steps found in INSTALL.md and BOOTSTRAP-SETUP.md with some modifications which results in a reasonably isolated and independent network of Veilid development nodes which do not communicate with nodes on the actual Veilid network.
The minimum topology of a dev network is 1 bootstrap server and 4 nodes, all with public IP addresses with port 5150/TCP open. This allows enabling public address detection and private routing. The minimum specifications are 1 vCPU, 1GB RAM, and 25 GB storage.
Quick Start
The Network Key
This acts as a passphase to allow nodes to join the network. It is the mechanism that makes your dev network isolated and independent. Create a passphrase and protect/store it as you would any other a password.
Dev Bootstrap Server
Follow the steps detailed in BOOTSTRAP-SETUP.md using the dev bootstrap example config for the Setup the config section. Set a network_key_password in the config file.
Dev Nodes
-
Follow the steps detailed in INSTALL.md DO NOT START THE SYSTEMD SERVICE
-
Replace the default veilid-server config using the dev node example config as a template. Enter your information on lines 27 and 28 to match what was entered in the dev bootstrap server's config.
-
Start the node with fresh data
sudo -u veilid veilid-server --delete-protected-store --delete-block-store --delete-table-store`
-
ctrl-c
to stop the above process -
Start the dev node service
sudo systemctl start veilid-server.service
-
(Optionally) configure the service to start at boot
sudo systemctl enable veilid-server.service