Area: Deployment
Sub-Area: Remote Executor Configuration
Applies to: Cloud
Issue
You deploy the DataHub Remote Executor and need to know which environment variables you can set, what they do, and how to set them in the Helm chart (datahub-executor-worker).
You Might Be Asking
- Where can I find documentation for Remote Executor environment variables?
- What do DATAHUB_EXECUTOR_MODE, DATAHUB_EXECUTOR_INGESTION_MAX_WORKERS, DATAHUB_EXECUTOR_INGESTION_SIGNAL_POLL_INTERVAL and DATAHUB_EXECUTOR_MONITORS_MAX_WORKERS control?
- How do I set an environment variable in my Helm values.yaml?
Cause
The Remote Executor environment variables are documented in the operator guide and on the best practices page. Many are documented, not only the two worker limits.
Solution
Where the variables are documented
- The operator guide: Advanced: Performance Settings and Task Weight-Based Queuing, the secrets sections, Using Cloud Secret Managers, mTLS, and the status report settings.
- The best practices page for log cleanup,
UV_CACHE_DIRandUV_LINK_MODE.
What the main variables do
| Variable | Default | Meaning |
|---|---|---|
DATAHUB_EXECUTOR_MODE |
coordinator in the executor code |
A Remote Executor must run as worker (SQS pools) or kafka-worker (Kafka pools). The image start script runs the Kafka worker for kafka-worker, the SQS worker for any other value set, and the coordinator when the value is empty or coordinator. |
DATAHUB_EXECUTOR_INGESTION_MAX_WORKERS |
4 | Maximum concurrent ingestion tasks. |
DATAHUB_EXECUTOR_MONITORS_MAX_WORKERS |
10 | Maximum concurrent Observe monitor tasks. |
DATAHUB_EXECUTOR_INGESTION_SIGNAL_POLL_INTERVAL |
2 | Defined in the executor config. |
DATAHUB_EXECUTOR_POOL_ID |
default (falls back to the legacy DATAHUB_EXECUTOR_WORKER_ID, which defaults to default) |
The executor pool ID. Set it explicitly to the identifier of your pool. |
DATAHUB_EXECUTOR_FILE_SECRET_BASEDIR |
/mnt/secrets |
Directory for secrets mounted as files. |
DATAHUB_EXECUTOR_LOG_GC_ENABLED |
true | Log cleanup. Related settings: _RETENTION_DAYS (14), _MAX_DIR_SIZE_MB (10000, 0 disables), _INTERVAL_SECONDS (3600), _IN_FLIGHT_GRACE_SECONDS (3600). |
DATAHUB_EXECUTOR_STATUS_DETAILS_ENABLED, DATAHUB_EXECUTOR_REPORT_RUNTIME
|
true | Turn off the executor status reports shown in the UI. |
Per ingestion source, you can set EXECUTOR_TASK_MEMORY_LIMIT and EXECUTOR_TASK_WEIGHT under Extra Environment Variables. EXECUTOR_TASK_MEMORY_LIMIT is a number of bytes, not kilobytes. For about 6 GB, set about 6000000000. EXECUTOR_TASK_WEIGHT of 1.0 makes a source run alone.
Set variables in the Helm chart
In the datahub-executor-worker chart, set environment variables under extraEnvs as a list of name and value entries. Don't use an env: map.
extraEnvs:
- name: DATAHUB_EXECUTOR_INGESTION_MAX_WORKERS
value: "10"
- name: DATAHUB_EXECUTOR_MONITORS_MAX_WORKERS
value: "5"
To roll out a change to an existing install, follow Update Kubernetes Deployment. The documented steps are:
helm repo update acryl
helm upgrade --reuse-values --set <key>="<value>" acryl-executor-worker acryl/datahub-executor-worker
Raising worker counts needs more CPU and memory. See the best practices page for sizing.
The full list of chart options is in the chart's values.yaml.