A Compute Spawn is the actual server or computer that is connected to Daestro and ready to run your jobs. While a Compute Environment is the template for a server, a Compute Spawn is the real thing—a live machine waiting for work.
There are two types of Compute Spawns:
A Compute Spawn goes through several states in its life, such as:
You don’t need to do anything to create a cloud Compute Spawn—Daestro handles that automatically. However, to connect your own machine, you need to create a self-hosted Compute Spawn by running the Daestro Agent.
The Daestro Agent is a small program that securely connects your computer to the Daestro platform. Here’s how to set it up:
First, you need a unique token to authorize your machine.
The easiest way to run the agent is with Docker. Open a terminal on the machine you want to connect and run the following command.
Important: Replace <AGENT_AUTH_TOKEN>
with the token you just copied.
docker run --name daestro-agent
-e DAESTRO_AUTH_TOKEN="<AGENT_AUTH_TOKEN>"
-v /var/run/docker.sock:/var/run/docker.sock
-v daestro_agent_data:/var/lib/daestro-agent
--network host
daestro/daestro-agent:latest
Once you run this command, your machine will connect to Daestro and appear as a new Compute Spawn, ready to pick up jobs from its assigned queue.