Compute is in preview, and the
v1alpha API can change.Before you begin
- Select a project, install the
computeplugin, and get access to Compute. For more information, see Set up your project.
Check workload status
To list the workloads in your project, run the following command:HEALTH column shows Available, Degraded, Unavailable, or Unknown. The READY column shows how many Instances are ready out of how many the workload wants, and UP-TO-DATE shows how many run the latest template.
To filter the list, add --health with a health value in lowercase, such as --health=degraded, or --location with a location, such as --location=us-central-1.
To see the configuration, ALB hostname, and per-location health of one workload, run the following command:
WORKLOAD_NAME with the name of your workload.
The workload’s Available condition also has a reason, which you can see with datumctl get workloads. When a workload isn’t available, the reason points to the cause, and the Instance has the details.
Check Instances
To list the Instances of a workload, run the following command:--location with a location, such as --location=us-central-1. To add the instance type column, add -o wide.
The STATUS column describes each Instance in plain language:
To see an Instance’s conditions, network addresses, and a plain-language explanation of any failure, run the following command:
INSTANCE_NAME with a name from the NAME column of datumctl compute instances.
Update a workload
To change the image or placement of a workload that you deployed with flags, rundatumctl compute deploy again with the same name and the new values. For example, the following command deploys a new image version:
WORKLOAD_NAME: the name of your workload.IMAGE: the new image reference.LOCATION: the locations that the workload runs in.COUNT: the number of Instances to run in each location.
datumctl compute deploy -f FILE, where FILE is the path to your manifest. The command shows the changes and asks for confirmation before it applies them.
Datum rolls out template changes one Instance at a time in each location. For more information, see How rollouts work. To restart Instances without changing the template, see Restart Instances.
You can’t change the following settings after you create a workload:
- The workload name
- The runtime class
- The network, and the network interface’s
name,ipFamilies,addresses, andreclaimPolicy
Delete a workload
Deleting a workload withdatumctl compute destroy also deletes its Instances and its ALB.
To delete a workload, follow these steps:
-
Run the following command:
Replace
WORKLOAD_NAMEwith the name of your workload. - Review the summary of placements, locations, Instances, and the ALB’s hostnames that the command prints.
-
Enter
yto confirm. The command printsworkload/WORKLOAD_NAME deleted.
-y.
If you delete a workload with datumctl delete workload, Datum deletes the workload and its Instances, but leaves in place any ALB that datumctl compute deploy created. Use datumctl compute destroy to remove both.
Troubleshoot common problems
The following table lists common errors and states, what they mean, and how to fix them. Errors that Datum returns when you apply a workload appear in the command output. Reasons appear indatumctl get workloads, datumctl get instances, and datumctl compute instances describe.
To see a history of changes to your workloads, use
datumctl activity. For more information, see Querying activity.
If you can’t resolve a problem, contact support@datum.net with the workload name, the project ID, and the output of datumctl compute instances describe INSTANCE_NAME.
What’s next
- To check quota and review limitations, see Limits and quotas.
- For command details, see Deploying workloads, Operations, and Destroying workloads.