<@U04S8PLJWMT> it seems that my k8s airbyte instan...
# ask-ai
v
@kapa.ai it seems that my k8s airbyte instance cannot launch more than 10 jobs in parallel ? What scaling parameter am i missing ? Here is what I did set in the helm chart values :
Copy code
"worker": {
  "extraEnv": [
      {"name": "MAX_CHECK_WORKERS", "value": "20"},
      {"name": "MAX_SYNC_WORKERS", "value": "40"},
  ]
}
I also tried to increase WORKLOAD_LAUNCHER_PARALLELISM to 50, with no success.
k
It looks like you've set the right environment variables (
MAX_CHECK_WORKERS
,
MAX_SYNC_WORKERS
, and
WORKLOAD_LAUNCHER_PARALLELISM
) in your Helm chart, but your Airbyte instance is still limited to 10 parallel jobs. This is a common issue, and there are a few things to check: 1. Environment Variable Names and Placement: There is some inconsistency in how environment variables are picked up depending on the Helm chart version and how they're set. Some users have reported that
extraEnv
or
extraEnvs
may not always work as expected, and that using
env_vars
under the
worker
section in your
values.yaml
is more reliable. For example:
Copy code
yaml    worker:      env_vars:        MAX_SYNC_WORKERS: 40        MAX_CHECK_WORKERS: 20
If you use
extraEnv
or
extraEnvs
and it doesn't work, try switching to
env_vars
as shown above. This has been confirmed to work by other users in the community and on GitHub issues [[Support the MAX_*_WORKERS environment variables in the Helm chart](https://github.com/airbytehq/airbyte/issues/29547)]. 2. WORKLOAD_LAUNCHER_PARALLELISM: This variable controls how many jobs can be started at once, but there have been reports that it is not always respected in some Helm chart versions. If you are on Helm chart 1.5.1 or similar, you may encounter issues where this value is ignored, and the default of 10 is used regardless of your configuration [[Cannot configure MAX_[]_WORKERS or WORKLOAD_LAUNCHER_PARALLELISM in helm 1.5.1](https://github.com/airbytehq/airbyte/issues/56448)]. 3. Number of Worker Replicas: The number of parallel jobs is also limited by the number of Airbyte worker pods (
worker.replicaCount
). Each worker can only run up to
MAX_SYNC_WORKERS
jobs. If you have only one worker pod, your maximum concurrency is capped at
MAX_SYNC_WORKERS
(or possibly lower if other limits apply). To increase parallelism, you may need to increase the number of worker replicas:
Copy code
yaml    worker:      replicaCount: 2  # or more, depending on your needs
This is documented as a key scaling parameter [[Scaling Airbyte After Installation](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte)]. 4. Temporal Worker Ports: Another hidden limit is the number of
TEMPORAL_WORKER_PORTS
available. By default, only 40 ports are exposed, which can limit the number of concurrent jobs. If you need more, you may need to increase this value as well [[Configuring Airbyte - Worker](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#worker)]. Summary of what to try: - Use
env_vars
instead of
extraEnv
for setting worker environment variables. - Increase
worker.replicaCount
if you have only one worker pod. - Check if your Helm chart version has known issues with these variables. - Ensure
TEMPORAL_WORKER_PORTS
is not limiting you. If after these changes you still cannot exceed 10 parallel jobs, it may be a limitation or bug in your specific Airbyte or Helm chart version, as reported by other users [[Cannot configure MAX_[]_WORKERS or WORKLOAD_LAUNCHER_PARALLELISM in helm 1.5.1](https://github.com/airbytehq/airbyte/issues/56448)]. Let me know if you need more specific guidance based on your Helm chart or Airbyte version!
v
@kapa.ai How to ensure
TEMPORAL_WORKER_PORTS
is not limiting ?
k
A message from kapa.ai
To ensure that
TEMPORAL_WORKER_PORTS
is not limiting your Airbyte job concurrency, you need to set this environment variable to provide enough ports for the number of concurrent jobs you want to run. Each Airbyte worker pod uses these ports to communicate with job pods, and by default, only ports 9001–9040 (40 ports) are exposed in the Helm chart. This means a single worker pod can only handle up to 40 concurrent jobs unless you increase this range. How to check and adjust: 1. Check your current setting: Look at your Helm values or environment variables for the worker and see what
TEMPORAL_WORKER_PORTS
is set to. If it’s not set, the default is likely 9001–9040. 2. Increase the port range if needed: If you want to run more than 40 concurrent jobs per worker pod, increase the range. For example, to allow 100 concurrent jobs:
Copy code
yaml    worker:      env_vars:        TEMPORAL_WORKER_PORTS: "9001,9100"
This would expose ports 9001–9100 (100 ports). 3. Match ports to worker concurrency: The number of ports should be at least equal to the sum of your
MAX_*_WORKERS
values for each worker pod. For example, if
MAX_SYNC_WORKERS
is 40 and
MAX_CHECK_WORKERS
is 20, you should have at least 60 ports available per worker pod [[Configuring Airbyte - Worker](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#worker)]. 4. Restart your worker pods: After changing the port range, make sure to restart your Airbyte worker pods so the new configuration takes effect. Summary: If you want to run more concurrent jobs, ensure that
TEMPORAL_WORKER_PORTS
covers enough ports for your desired concurrency per worker pod. Otherwise, jobs may hang or be limited by the available ports [[Configuring Airbyte - Worker](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#worker)]. If you still see limits after increasing the port range, check that your other scaling parameters (
MAX_*_WORKERS
, worker replicas) are also set appropriately.
v
@kapa.ai explain to me what
WORKLOAD_LAUNCHER_PARALLELISM
parameter is responsible for ?
k
A message from kapa.ai
The
WORKLOAD_LAUNCHER_PARALLELISM
parameter in Airbyte defines the number of jobs that can be started at once. By default, this value is set to 10. Increasing this value allows the Airbyte workload launcher to initiate more jobs in parallel, which can help improve throughput if your infrastructure has sufficient resources to handle the additional load. If you want to run more jobs concurrently, you should increase this parameter accordingly [[Configuring Airbyte - Launcher](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#launcher)]. In summary:
WORKLOAD_LAUNCHER_PARALLELISM
controls how many jobs Airbyte can start in parallel at any given time.
v
@kapa.ai difference with
MAX_SYNC_WORKERS
param ?
k
A message from kapa.ai
The difference between
WORKLOAD_LAUNCHER_PARALLELISM
and
MAX_SYNC_WORKERS
is as follows: -
WORKLOAD_LAUNCHER_PARALLELISM
controls how many jobs can be started at the same time. It sets the maximum number of jobs that the launcher will initiate in parallel. For example, if this is set to 10, only 10 jobs will be launched at once, even if more jobs are queued and resources are available [[Configuring Airbyte - Launcher](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#launcher)]. -
MAX_SYNC_WORKERS
defines the maximum number of sync jobs that can be running concurrently in each Airbyte Worker container. This limits the number of sync jobs that can be actively processed at the same time by a worker pod [[Configuring Airbyte - Worker](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#worker)]. In summary: -
WORKLOAD_LAUNCHER_PARALLELISM
= how many jobs can be started at once (job launch rate). -
MAX_SYNC_WORKERS
= how many sync jobs can run in parallel per worker pod (job concurrency limit). Both parameters work together to control job throughput and concurrency, but they govern different stages of the job lifecycle.