Before you begin
If you want to manage Bnodes using the Brightnode CLI, you’ll need to install Brightnode CLI, and set your API key in the configuration. Run the following command, replacingBRIGHTNODE_API_KEY with your API key:
Deploy a Bnode
- Web
- Command line
- REST API
To create a Bnode using the Brightnode console:
- Open the Bnodes page in the Brightnode console and click the Deploy button.
- (Optional) Specify a network volume if you need to share data between multiple Bnodes, or to save data for later use.
- Select GPU or CPU using the buttons in the top-left corner of the window, and follow the configuration steps below.
- Select a graphics card (e.g., A40, RTX 4090, H100 SXM).
- Give your Bnode a name using the Bnode Name field.
- (Optional) Choose a Bnode Template such as Brightnode Pytorch 2.1 or Brightnode Stable Diffusion.
- Specify your GPU count if you need multiple GPUs.
- Click Deploy On-Demand to deploy and start your Bnode.
- Select a CPU type (e.g., CPU3/CPU5, Compute Optimized, General Purpose, Memory-Optimized).
- Specify the number of CPUs and quantity of RAM for your Bnode by selecting an Instance Configuration.
- Give your Bnode a name using the Bnode Name field.
- Click Deploy On-Demand to deploy and start your Bnode.
Custom templates
Brightnode supports custom Bnode templates that let you define your environment using a Dockerfile. With custom templates, you can:- Install specific dependencies and packages.
- Configure your development environment.
- Create portable Docker images that work consistently across deployments.
- Share environments with team members for collaborative work.
Stop a Bnode
When a Bnode is stopped, data in the container disk is cleared, but data in the/workspace directory is preserved. To learn more about how Bnode storage works, see Storage overview.
By stopping a Bnode you are effectively releasing the GPU on the machine, and you may be reallocated zero GPUs when you start the Bnode again.
- Web
- Command line
To stop a Bnode:
- Open the Bnodes page.
- Find the Bnode you want to stop and expand it.
- Click the Stop button (square icon).
- Confirm by clicking the Stop Bnode button.
Stop a Bnode after a period of time
You can also stop a Bnode after a specified period of time. The examples below show how to use the CLI or web terminal to schedule a Bnode to stop after 2 hours of runtime.- Command line
- Web terminal
Use the following command to stop a Bnode after 2 hours:This command uses sleep to wait for 2 hours before executing the
brightnodectl stop bnode command to stop the Bnode. The & at the end runs the command in the background, allowing you to continue using the SSH session.Start a Bnode
Bnodes start as soon as they are created, but you can resume a Bnode that has been stopped.- Web
- Command line
To start a Bnode:
- Open the Bnodes page.
- Find the Bnode you want to start and expand it.
- Click the Start button (play icon).
Terminate a Bnode
- Web
- Command line
To terminate a Bnode:
- Open the Bnodes page.
- Find the Bnode you want to terminate and expand it.
- Stop the Bnode if it’s running.
- Click the Terminate button (trash icon).
- Confirm by clicking the Yes button.
View Bnode details
You can find a list of all your Bnodes on the Bnodes page of the web interface. If you’re using the CLI, use the following command to list your Bnodes:Access logs
Bnodes provide two types of logs to help you monitor and troubleshoot your workloads:- Container logs capture all output sent to your console standard output, including application logs and print statements.
- System logs provide detailed information about your Bnode’s lifecycle, such as container creation, image download, extraction, startup, and shutdown events.
Troubleshooting
Below are some common issues and solutions for troubleshooting Bnode deployments.Zero GPU Bnodes
See Zero GPU Bnodes on restart.Bnode stuck on initializing
If your Bnode is stuck on initializing, check for these common issues:- You’re trying to SSH into the Bnode but didn’t provide an idle job like
sleep infinityto keep it running. - The Bnode received a command it can’t execute. Check your logs for syntax errors or invalid commands.
