Node Onboarding
Introduction
This tutorial describes how to add new nodes to an existing private network. Two basic scenarios will be covered:
Adding a physical host/virtual machine as a new node.
Adding a cloud instance as a new node.
Pre-Prerequisites
You should have an established private network consisting of at least one requester node. See the Create Private Network guide to set one up.
You should have a new host (physical/virtual machine, cloud instance or docker container) with Bacalhau installed.
Add Host/Virtual Machine as a New Node
Let's assume that you already have a private network with at least one requester node. In this case, the process of adding new nodes follows the Create And Connect Compute Node section. You will need to:
Set the token in the
Compute.Auth.Token
configuration keySet the orchestrators IP address in the
Compute.Orchestrators
configuration keyExecute
bacalhau serve
specifying the node type via--orchestrator
flag
Add a Cloud Instance as a New Node
Let's assume you already have all the necessary cloud infrastructure set up with a private network with at least one requester node. In this case, you can add new nodes manually (AWS, Azure, GCP) or use a tool like Terraform to automatically create and add any number of nodes to your network. The process of adding new nodes manually follows the Create And Connect Compute Node section.
To automate the process using Terraform follow these steps:
Configure terraform for your cloud provider
Determine the IP address of your requester node
Write a terraform script, which does the following:
Adds a new instance
Installs
bacalhau
on itLaunches a compute node
Execute the script
Support
If you have questions or need support or guidance, please reach out to the Bacalhau team via Slack (#general channel).