Node Onboarding

Introduction

This tutorial describes how to add new nodes to an existing private network. Two basic scenarios will be covered:

  1. Adding a physical host/virtual machine as a new node.

  2. Adding a cloud instance as a new node. ​

Pre-Prerequisites

  1. You should have an established private network consisting of at least one requester node. See the Create Private Network guide to set one up.

  2. 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:

  1. Set the token in the Compute.Auth.Token configuration key

  2. Set the orchestrators IP address in the Compute.Orchestrators configuration key

  3. Execute 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:

  1. Configure terraform for your cloud provider

  2. Determine the IP address of your requester node

  3. Write a terraform script, which does the following:

    1. Adds a new instance

    2. Installs bacalhau on it

    3. Launches a compute node

  4. Execute the script

Support

If you have questions or need support or guidance, please reach out to the Bacalhau team via Slack (#general channel).