Skip to main content
A compute is a place sandboxes run. Today that is a Linux server with Docker that BOW reaches over SSH. Admins with Manage Sandboxes add computes under Settings → Sandbox → Compute. The Compute tab with two servers, their status, resources and the Test button

What the server needs

  • Linux with Docker installed and running.
  • An SSH login as root, or as a user with passwordless sudo. BOW then runs every command through sudo -n.
  • Two ports reachable from BOW: the SSH port (22 by default) and one port for sandbox traffic (8443 by default). The server does not need to reach BOW.
  • gVisor, optional. When runsc is installed and registered with Docker, sandboxes run under it and the compute shows Strong isolation. Without it the compute shows Standard isolation: sandboxes are ordinary containers that share the server’s kernel. BOW detects gVisor; it never installs it or edits Docker’s configuration.
Use a server dedicated to sandboxes. BOW runs commands as root on it, and the code agents run there is not code you reviewed.

Add a compute

1

Fill in the form

Select Add compute, choose Linux server (Docker over SSH), and enter a name, the server’s Address, the SSH port and the SSH user.For the key, either paste an SSH private key, or leave it empty: BOW then generates a key pair and shows you the public key to add to the SSH user’s authorized_keys on the server. You can also enter a One-time password; BOW logs in with it once to install its public key and never stores it.
2

Test the connection and confirm the server

Select Test. The first time, BOW shows the fingerprint of the SSH host key the server presented. Compare it with the server’s own, then select This is my server, trust it. Nothing is sent to the server before you do.To read the fingerprint on the server:
You can also paste the fingerprint into SSH host key fingerprint when you add the compute, and skip the confirmation.
3

Bootstrap

Select Bootstrap. BOW prepares the server step by step and shows each step as it finishes: it checks Docker, detects gVisor, creates the sandbox network, places its sandbox daemon, pulls its images, starts a router and an egress proxy, applies firewall rules, and verifies the result with a test sandbox. A failed step says which one and why. Bootstrap is safe to run again.
4

Enable

Turn on the Enabled switch. A compute can be enabled only after its bootstrap has succeeded. Sandboxes are placed only on enabled computes.
The Add compute form for a Linux server

Test and repair

Once a compute is bootstrapped, its row has one button: Test. It does two things in the same dialog:
  1. Checks: the SSH host key, the login, Docker, gVisor, and whether BOW’s own containers are running.
  2. Repair: runs the bootstrap steps again. Each step skips what is in place and puts back what is missing or out of date.
Use it after a server reboot, after a BOW upgrade, or whenever a compute shows a problem. The repair runs only when the checks could log in; a compute that was never bootstrapped, or cannot be reached, is only checked.
A repair that fails disables the compute, as a failed bootstrap does. Existing sandboxes stay on it; new ones are not placed there until a repair succeeds and you enable it again.
The Bootstrap column shows the result of the last run. Select it to see the steps again.

Capacity

A compute is full when its resources are, not after a fixed number of sandboxes. Each sandbox counts by the limits of its environment:
  • Running sandboxes hold CPU and memory.
  • Every sandbox that still exists, stopped ones included, holds its disk.
The Resources column shows what sandboxes hold out of what the compute may give. Under Capacity rules in the compute’s form you can change how that is counted: When several computes fit, a new sandbox goes to the least loaded one. Labels let an environment ask for specific computes, for example gpu or eu-west.

Volumes

A volume is a directory on the server that environments can mount in their sandboxes, by name. Use one for reference data, a shared package cache, or storage larger than a sandbox’s disk. A volume does not count against a sandbox’s disk limit. Add volumes in the compute’s form: a Name and the Directory on the server. The directory must already exist; you mount it there yourself, from a local disk, NFS or an object store. Which sandboxes see a volume, at what path and whether they can write to it is set on the environment.

Corporate networks

If the server reaches the internet through your own proxy, or your network re-signs HTTPS traffic, fill in the network fields of the compute’s form: Run Test after changing them so the server picks the change up. Details are in Network and security.

Images

Bootstrap pulls the images BOW runs on the server, tagged with your BOW version. To use a mirror, a private registry or your own builds, set these on the BOW server:
For a server that cannot pull images at all, load them there with docker load and tick Images are preloaded (air-gapped). Bootstrap then checks that each image is present instead of pulling it, and names any that is missing. The image of each environment is separate: BOW fetches it when you save the environment or when the first sandbox needs it, so an environment image that cannot be fetched never fails a bootstrap.

Maintenance

BOW checks every compute every few minutes. A compute that does not answer shows Unreachable, and no new sandbox is placed on it until it answers again.