Connect
Connect DigitalOcean on Integrations, and CostGraph starts sandboxes in your DigitalOcean account. You don’t run anything yourself.- In CostGraph, go to Integrations > Sandbox > DigitalOcean.
-
Enter these fields:
- Personal access token (
DIGITALOCEAN_TOKEN, required): A DigitalOcean personal access token from API > Tokens. - Service (
DIGITALOCEAN_SERVICE, optional): The DigitalOcean product sandboxes run on: microvms (the default) or harness. - Region (
DIGITALOCEAN_REGION, optional): The DigitalOcean region sandboxes run in, if not the default.
- Personal access token (
- Click Connect.
Your own dispatcher
To keep the key out of CostGraph or reach a private network, run your own dispatcher instead. Setprovider to digitalocean and the preceding fields as environment variables, as described in Run your own dispatcher.
To see what DigitalOcean costs, connect the DigitalOcean integration.
Key and permissions
DIGITALOCEAN_TOKEN is a DigitalOcean personal access token, created in the control panel under API > Tokens, optionally with custom scopes. DIGITALOCEAN_SERVICE picks the product sandboxes run on: microvms (the default) or harness.
For MicroVMs, a custom-scoped token needs microvm:create, microvm:read, microvm:update and microvm:delete. For Harness Runtime, use a full-access token.
Sources: docs.digitalocean.com: networking access, docs.digitalocean.com: limits, docs.digitalocean.com: api, docs.digitalocean.com: harness runtime, docs.digitalocean.com: limits.
Limits
- MicroVMs are public preview, MKC1 region only, linux/amd64 images only. (source)
- MicroVM auto-pause cannot be disabled; max idle timeout 4 hours. Max 32 GiB memory and 400 GiB disk; sizes 1/2/8/16 vCPU. (source)
- MicroVM exec: a command has 60 s to finish; 32 concurrent and 60 commands per minute per team; output capped at 4 MiB. (source)
- Harness Runtime exec timeout_seconds is clamped server-side to max 240 (default 60). (source)
- Harness Runtime: idle suspend default 15 minutes; up to 100 concurrent sessions per team; monthly active compute cap 744 hours per session; sizes up to mars-16vcpu-32gb. (source)