From 7ca3e7f595deeb14cd8a9755886bb3824d885d35 Mon Sep 17 00:00:00 2001 From: Marc LeBlanc <7050295+marcleblanc2@users.noreply.github.com> Date: Wed, 25 Nov 2026 14:21:37 -0500 Subject: [PATCH] docs/executors: Document EXECUTOR_DEPLOY_TYPE Add it to the executor configuration reference and pings list, and set it in the Linux binary install examples. Amp-Thread-ID: https://ampcode.com/threads/T-01a213e9-c2b8-74e8-960c-9756dee340e8 Co-authored-by: Amp --- docs/admin/pings.mdx | 1 + docs/self-hosted/executors/deploy-executors-binary-offline.mdx | 2 +- docs/self-hosted/executors/deploy-executors-binary.mdx | 2 ++ docs/self-hosted/executors/executors-config.mdx | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/admin/pings.mdx b/docs/admin/pings.mdx index 04c3ded56..b54546a87 100644 --- a/docs/admin/pings.mdx +++ b/docs/admin/pings.mdx @@ -71,6 +71,7 @@ Sourcegraph aggregates usage and performance metrics for some product features i - Weekly batch change (open, closed) and changesets counts (imported, published, unpublished, open, draft, merged, closed) for batch change cohorts created in the last 12 months - Weekly bulk operations count (grouped by operation) - Total count of executors connected + - Count of executors seen in the last 24 hours, grouped by runtime mode (`docker`, `firecracker`, `kubernetes`), [`EXECUTOR_DEPLOY_TYPE`](/self-hosted/executors/executors-config#general-configuration) (or `unknown`), and executor version - Cumulative executor runtime monthly - Total count of `publish` bulk operation - Total count of bulk operations (grouped by operation type) diff --git a/docs/self-hosted/executors/deploy-executors-binary-offline.mdx b/docs/self-hosted/executors/deploy-executors-binary-offline.mdx index 50bf87d4a..51f16a09c 100644 --- a/docs/self-hosted/executors/deploy-executors-binary-offline.mdx +++ b/docs/self-hosted/executors/deploy-executors-binary-offline.mdx @@ -48,7 +48,7 @@ pull the images. ## Environment Variables See [deploy executors binary](/self-hosted/executors/deploy-executors-binary#step-2-setup-environment-variables) for a list of environment -variables that are configurable. +variables that are configurable. Set `EXECUTOR_DEPLOY_TYPE` to `binary-offline`. ## Batch Changes diff --git a/docs/self-hosted/executors/deploy-executors-binary.mdx b/docs/self-hosted/executors/deploy-executors-binary.mdx index 8821b1f9a..e1e73015f 100644 --- a/docs/self-hosted/executors/deploy-executors-binary.mdx +++ b/docs/self-hosted/executors/deploy-executors-binary.mdx @@ -95,6 +95,7 @@ See [Executor configuration](/self-hosted/executors/executors-config) for a full export EXECUTOR_FRONTEND_URL=https://sourcegraph.example.com export EXECUTOR_FRONTEND_PASSWORD=SUPER_SECRET_SHARED_TOKEN export EXECUTOR_QUEUE_NAMES=batches,batches-hooks,codeintel +export EXECUTOR_DEPLOY_TYPE=binary ``` ### **Step 3:** Configure your machine @@ -157,6 +158,7 @@ cat </etc/systemd/system/executor.env EXECUTOR_FRONTEND_URL="https://sourcegraph.example.com" EXECUTOR_FRONTEND_PASSWORD="SUPER_SECRET_SHARED_TOKEN" EXECUTOR_QUEUE_NAMES="batches,batches-hooks,codeintel" +EXECUTOR_DEPLOY_TYPE="binary" EOF systemctl enable executor diff --git a/docs/self-hosted/executors/executors-config.mdx b/docs/self-hosted/executors/executors-config.mdx index 7951ecc88..c91fbbf5e 100644 --- a/docs/self-hosted/executors/executors-config.mdx +++ b/docs/self-hosted/executors/executors-config.mdx @@ -51,6 +51,7 @@ An executor that should handle every job type uses `EXECUTOR_QUEUE_NAMES=batches | `EXECUTOR_FIRECRACKER_KERNEL_IMAGE` | The base image containing the kernel binary to use for virtual machines. | `sourcegraph/ignite-kernel:6.1.140-amd64` | | `EXECUTOR_FIRECRACKER_SANDBOX_IMAGE` | The OCI image for the ignite VM sandbox. | `sourcegraph/ignite:v0.10.8` | | `DOCKER_REGISTRY_NODE_EXPORTER_URL` | The URL of the Docker Registry instance's node_exporter, without the /metrics path. | `http://localhost:9000` | +| `EXECUTOR_DEPLOY_TYPE` | Identifies how the executor was deployed, and is reported in pings. Sourcegraph's Helm charts, Kustomize components, Docker Compose file, and Terraform modules set it. Set it to `binary` for a [Linux binary](/self-hosted/executors/deploy-executors-binary) install, or `binary-offline` for an [offline](/self-hosted/executors/deploy-executors-binary-offline) one. Pings report any other value as `unknown`. | `binary` | | `SRC_LOG_LEVEL` | upper log level to restrict log output to (dbug, info, warn, error, crit) (default value: "warn") | `warn` | ## Kubernetes Specific Configuration