Skip to content

Latest commit

 

History

History
91 lines (71 loc) · 3.77 KB

File metadata and controls

91 lines (71 loc) · 3.77 KB
<style> .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; margin-bottom: 1em; } .app-btn { font-size: 0.85rem; cursor: pointer; text-decoration: none; padding-top: 1.5rem !important; width: 100%; border-radius: 1em; border: 2px solid var(--input-focus-border); color: var(--text-color); background-color: var(--sidebar-bg); text-align: center; font-weight: 500; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; } .app-btn:hover { box-shadow: 0 0 10px var(--link-hover-color); } .app-btn > p { margin-bottom: 0 !important; } .app-btn > h3 { font-size: 1.5em; font-weight: 400; margin-top: .2em; margin-bottom: 1em; } </style>

Deploying Sourcegraph executors

Beta This feature is in beta and might change in the future.

We're very much looking for input and feedback on this feature. You can either contact us directly, file an issue, or tweet at us.

Executors provide a sandbox that can run resource-intensive or untrusted tasks on behalf of the Sourcegraph instance, such as:

NOTE: Executors are available with no additional setup required on Sourcegraph Cloud.

Requirements

Executors by default use KVM-based micro VMs powered by Firecracker in accordance with our sandboxing model to isolate jobs from each other and the host. This requires executors to be run on machines capable of running Linux KVM extensions. On the most popular cloud providers, this either means running executors on bare-metal machines (AWS) or machines capable of nested virtualization (GCP).

Optionally, executors can be run without using KVM-based isolation, which is less secure but might be easier to run on common machines.

Configure Sourcegraph

Executors must be run separately from your Sourcegraph instance.

Since they must still be able to reach the Sourcegraph instance in order to dequeue and perform work, requests between the Sourcegraph instance and the executors are authenticated via a shared secret.

Before starting any executors, generate an arbitrary secret string (with at least 20 characters) and set it as the executors.accessToken key in your Sourcegraph instance's site-config.

Executor installation

Once the shared secret is set in Sourcegraph, you can start setting up executors that can use that access token to talk to the Sourcegraph instance.

Supported installation types

Simply launch executors on AWS or GCP using Sourcegraph-maintained modules and machine images.

Supports auto scaling.

Run executors on any linux amd64 machine.

Confirm executors are working

If executor instances boot correctly and can authenticate with the Sourcegraph frontend, they will show up in the Executors page under Site Admin > Maintenance.

Executor list in UI