Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/admin/pings.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions docs/self-hosted/executors/deploy-executors-binary.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -157,6 +158,7 @@ cat <<EOF >/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
Expand Down
1 change: 1 addition & 0 deletions docs/self-hosted/executors/executors-config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down