1. <@U04S8PLJWMT> how can I define `TEMPORAL_WORK...
# ask-ai
r
1. @kapa.ai how can I define
TEMPORAL_WORKER_PORTS
- Defines the local ports the Airbyte Worker pod uses to connect to the various Job pods. Port 9001 - 9040 are exposed by default in the Helm Chart. this env
k
To define the
TEMPORAL_WORKER_PORTS
environment variable in Airbyte, you set it as an environment variable for the Airbyte Worker container. This variable specifies the range of local ports that the Airbyte Worker pod uses to connect to various Job pods. By default, the Helm Chart exposes ports 9001–9040, but you can customize this range as needed. Example (in a Kubernetes manifest or Helm values):
Copy code
yaml env:   - name: TEMPORAL_WORKER_PORTS     value: "9001-9040"
Or, if you are using a
.env
file or Docker Compose, you can set:
Copy code
env TEMPORAL_WORKER_PORTS=9001-9040
This will configure the worker to use ports 9001 through 9040 for job communication. Adjust the range as needed for your deployment and parallelism requirements. For Helm deployments, these ports are exposed by default, but you can override them in your values file or deployment configuration if you need a different range [Configuring Airbyte - Worker](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#worker). If you need to increase parallelism, you may want to expand this port range accordingly, as each concurrent job may require a separate port [Configuring Airbyte - Worker](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#worker).
r
@kapa.ai it's not taking like this
Copy code
env:
  - name: TEMPORAL_WORKER_PORTS
    value: "9001-9040"
k
A message from kapa.ai
You're correct to point out that simply setting the environment variable in your deployment YAML may not always work as expected, especially with the Helm chart. The knowledge sources confirm that
TEMPORAL_WORKER_PORTS
is the correct environment variable to set, and by default, the Helm chart exposes ports 9001–9040 for the worker pod. However, the exact method to override this value in Helm is not explicitly detailed in the provided documentation. From the documentation, we know: >
TEMPORAL_WORKER_PORTS
- Defines the local ports the Airbyte Worker pod uses to connect to the various Job pods. Port 9001 - 9040 are exposed by default in the Helm Chart. [Configuring Airbyte - Worker](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#worker) However, the knowledge sources do not provide a step-by-step example for overriding this value in the Helm chart or values.yaml. There is also a forum post questioning the interaction between the
.env
file and the deployment YAML, but it does not provide a definitive answer on which method takes precedence or how to ensure the value is respected in all deployment scenarios. Summary: You are using the correct environment variable, but the knowledge sources do not provide enough information to confirm the exact method for overriding
TEMPORAL_WORKER_PORTS
in all deployment scenarios, especially with Helm. If your override is not being respected, it may be due to how the Helm chart templates environment variables, or it may require a specific configuration in your
values.yaml
file. Unfortunately, the documentation does not provide a concrete example for this case. If you need further help, you may want to check the Helm chart's documentation or open an issue with the Airbyte team for clarification.
r
@kapa.ai but I wanted to increase the values
k
A message from kapa.ai
To increase the value of
TEMPORAL_WORKER_PORTS
(i.e., to expand the range of ports available for Airbyte Worker pods), you need to set a larger port range for this environment variable. This allows more concurrent jobs, as each job may require a separate port. How to increase the value: - In the Helm chart (for both Community and Enterprise), you can set this value in your
values.yaml
file under the worker section. For example:
Copy code
yaml worker:   temporalWorkerPorts: "9001-9100"
This would expose ports 9001 to 9100, giving you 100 ports for worker jobs instead of the default 40. Make sure your Kubernetes service and pod specs also allow this port range if you have customized them. Reference: The documentation states: >
TEMPORAL_WORKER_PORTS
- Defines the local ports the Airbyte Worker pod uses to connect to the various Job pods. Port 9001 - 9040 are exposed by default in the Helm Chart. [Configuring Airbyte - Worker](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#worker) And in the Helm chart upgrade guides, you can see the mapping for this variable: > TEMPORAL_WORKER_PORTS worker.temporalWorkerPorts [Upgrade to Helm chart V2 (Self-Managed Community)](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file) Note: If you are not using Helm, you can set the environment variable directly in your deployment manifest as you tried before, but for Helm-managed deployments, the
values.yaml
approach is recommended. If you increase the port range, also ensure your
MAX_SYNC_WORKERS
and other concurrency-related settings are adjusted accordingly to take advantage of the increased ports.