1. Docs

Compute Environment

A Compute Environment is like a recipe or a template for the servers that will run your jobs. It tells Daestro exactly what kind of computer to use and where to find it. This is where your code will actually run.

You can create two different kinds of Compute Environments:

  1. Cloud Environment: This uses servers from a cloud provider like AWS or DigitalOcean.
  2. Self-hosted Environment: This lets you use your own computer (like a laptop, desktop, or a server in your office) to run jobs.

How to Create a Compute Environment

First, go to the Compute Environment page in your Daestro Console and click Add New. From there, the steps depend on whether you’re using a cloud provider or your own machine.

For a Cloud Provider (AWS, DigitalOcean, etc.)

Use this option when you want Daestro to automatically create and manage servers for you in the cloud.

  1. Select a Cloud Auth: Choose the cloud account connection (that you’ve already created) where the servers will be launched.
  2. Choose Server Details:
    • Instance Family & Type: Select the size and power of the server you need (e.g., a t2.micro on AWS).
    • Location: Choose the geographic region where the server should be located.
  3. Give it a Name: Enter a clear, descriptive name for your environment, like AWS Production Servers.

For a Self-hosted Machine

Use this option to connect your own hardware to Daestro.

  1. Select “Self-hosted Compute”: In the Cloud Auth dropdown list, you’ll see a special option called Self-hosted Compute. Select it.
  2. Give it a Name: That’s it! You just need to provide a name, like My-Laptop-Runner.

This type of environment doesn’t launch new servers. Instead, you’ll use it later to generate a secure token to link your machine to Daestro using the Daestro Agent.


How to Update a Compute Environment

Once a Compute Environment is created, you can’t change its server settings. However, you can:

  • Update its Name at any time.
  • Activate or Deactivate it. A deactivated environment cannot be used by any Job Queues to run new jobs.

How to Delete a Compute Environment

You can delete a Compute Environment if you no longer need it, but only if it meets two conditions:

  1. It must be in a disabled (deactivated) state.
  2. It must not have any active servers (Compute Spawns) associated with it.