Hello everyone, please help us set up parallelism ...
# replication-troubleshooting
b
Hello everyone, please help us set up parallelism in Airbyte. We have 3 worker container replicas, max_sync_worker = 10, but we can't run multiple syncs simultaneously. They start, but wait for the previous one to finish before starting the next one. We are using Airbyte through abctl.
k
You’re already scaling some of the right knobs, but there are a few things to check/clarify. From the docs, concurrency is controlled by several limits working together: 1. Per‑worker sync limit –
MAX_SYNC_WORKERS
- This sets how many sync jobs a single worker can run concurrently. [[Scaling Airbyte](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#concurrent-sync-limits)] - With 3 worker replicas and
MAX_SYNC_WORKERS=10
, your theoretical cap is up to ~30 concurrent syncs (subject to other limits). 2. Global job launcher limit –
WORKLOAD_LAUNCHER_PARALLELISM
- “Defines the number of jobs that can be started at once. Defaults to 10.” [[Configuring Airbyte](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#launcher)] - If this is left at a very low value (e.g., 1 in a custom config), you’ll see jobs queue and run one‑by‑one. 3. Scheduler / submitter limits (older docs, but same idea) - Previous guidance mentions
SUBMITTER_NUM_THREADS
as a hard upper limit on concurrent jobs, with
MAX_*_WORKERS
and number of worker replicas determining how many jobs can actually run. [[K8s parallelism](https://discuss.airbyte.io/t/826)] - If you’re on an abctl‑managed (enterprise) install, the newer docs focus on `MAX_SYNC_WORKERS`/replicas and
WORKLOAD_LAUNCHER_PARALLELISM
instead of
SUBMITTER_NUM_THREADS
, but the pattern is the same: all global caps must be high enough. 4. Connector pod / cluster capacity - Each concurrent sync needs at least 3 connector pods (
orchestrator
,
read
,
write
). If the cluster is at CPU/memory/pod limits, new syncs may sit pending. [[Scaling Airbyte](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#concurrent-syncs)] --- ### What to verify / change On your abctl deployment, check (or in Helm
values.yaml
if you use Helm under the hood): 1. Worker concurrency envs Ensure workers have something like:
Copy code
yaml    worker:      maxSyncWorkers: 10        # or via extraEnv: MAX_SYNC_WORKERS=10      replicaCount: 3
[[Scaling Airbyte](https://docs.airbyte.com/platform/next/enterprise-setup/scaling-airbyte#concurrent-sync-limits)] 2. Launcher parallelism Set
WORKLOAD_LAUNCHER_PARALLELISM
high enough for your target concurrency (e.g., ≥ number of syncs you want to launch in parallel):
Copy code
yaml    worker:      extraEnv:        - name: WORKLOAD_LAUNCHER_PARALLELISM          value: "30"
[[Configuring Airbyte](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#launcher)] 3. Restart workers / control plane After changing env vars, ensure Airbyte components (especially worker pods) are restarted so new settings apply; past forum threads show symptoms of “defaults still applied” when processes weren’t restarted. [[Concurrency thread](https://discuss.airbyte.io/t/1077)] 4. Check for pending pods / resource pressure Use your cluster tooling to confirm that when you trigger multiple syncs: - New `orchestrator`/`read`/`write` pods are being created. - They aren’t stuck pending due to CPU/memory requests. If they are, lower job requests/limits or add capacity, per the scaling guide. [[Scaling Airbyte](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#connector-cpu-memory-settings)] --- If, after confirming
MAX_SYNC_WORKERS
, worker replicas, and
WORKLOAD_LAUNCHER_PARALLELISM
are all >1 and pods are not resource‑starved, but you still only see strictly sequential execution, the knowledge sources don’t give enough detail to pinpoint a specific abctl bug or version issue. In that case, I’d recommend: - Capturing screenshots/logs showing: - Worker env vars (
MAX_SYNC_WORKERS
,
WORKLOAD_LAUNCHER_PARALLELISM
) - Several connections scheduled at the same time - K8s pod states for
orchestrator-*
,
read-*
,
write-*
- Opening a support ticket or forum post referencing these settings, since deeper debugging of the abctl‑managed control plane isn’t covered in the docs provided.
b
To reduce the log retention time in Airbyte from 30 days to 7 days, how can it be done? @kapa.ai
k
A message from kapa.ai
You can reduce Airbyte’s log / job history retention from 30 days to 7 days by setting the
TEMPORAL_HISTORY_RETENTION_IN_DAYS
environment variable to
7
. This variable controls how long job history is kept in Temporal, and it defaults to 30 days. [[Configuring Airbyte](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#data-retention)] Steps (conceptually): 1. Locate where you configure Airbyte environment variables (e.g., Helm
values.yaml
,
env_vars
block, or your Docker/compose env). 2. Add or update:
Copy code
yaml    env_vars:      TEMPORAL_HISTORY_RETENTION_IN_DAYS: 7
or, in a plain env file:
Copy code
bash    TEMPORAL_HISTORY_RETENTION_IN_DAYS=7
This pattern is shown in multiple user examples and recommendations. [[MinIO issue](https://github.com/airbytehq/airbyte/issues/55812); [Compose/api issue](https://github.com/airbytehq/airbyte/issues/49843)] 3. Restart the Airbyte components so the new env var takes effect. Older forum answers also describe this same knob as the current way (since ~v0.40.5 / 0.45.5) to control retention, replacing the previous workspace retention vars. [[Log sweeping answer](https://discuss.airbyte.io/t/2714); [Storage forum post](https://discuss.airbyte.io/t/2417)]
b
Which parameters are responsible for parallel execution of syncs? @kapa.ai
k
A message from kapa.ai
The knowledge sources mention these parameters as controlling parallel execution of syncs: 1.
MAX_SYNC_WORKERS
- Maximum number of concurrent sync workers per Airbyte Worker container. [[Configuring Airbyte – Worker](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#worker)] - With multiple worker replicas, the effective sync concurrency is roughly:
worker replicaCount × MAX_SYNC_WORKERS
. [[Scaling Airbyte – Concurrent Sync Limits](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#concurrent-sync-limits)] 2. Worker replica count (
worker.replicaCount
in Helm / abctl) - Number of worker pods; each can run up to
MAX_SYNC_WORKERS
syncs in parallel. [[Scaling Airbyte – Concurrent Sync Limits](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#concurrent-sync-limits)] 3.
TEMPORAL_WORKER_PORTS
- Defines the local ports a worker pod uses to connect to job pods; limits how many jobs a single worker can run in parallel because each job needs a port. [[Configuring Airbyte – Worker](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#worker)] - In Kubernetes, a single worker is effectively capped at the number of exposed ports (default 40), so more ports or more workers increase maximum parallel jobs. [[Scaling on K8s – parallelism](https://discuss.airbyte.io/t/826)] 4. Global scheduler / launcher limit - Older docs:
SUBMITTER_NUM_THREADS
is described as “the maximum number of concurrent jobs the Scheduler schedules” – a hard upper limit on total concurrent jobs. [[Concurrency forum 1164](https://discuss.airbyte.io/t/1164); [K8s parallelism](https://discuss.airbyte.io/t/826)] - Newer docs introduce
WORKLOAD_LAUNCHER_PARALLELISM
(not in the snippets you provided, but referenced indirectly in concurrency discussions) as the number of jobs that can be started at once; however, the exact definition is not fully specified in the given sources, so I can’t quote details confidently. In summary, from the provided sources the main knobs for sync parallelism are: -
MAX_SYNC_WORKERS
(per worker pod) [[Configuring Airbyte – Worker](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#worker)] -
worker.replicaCount
(number of worker pods) [[Scaling Airbyte – Concurrent Sync Limits](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#concurrent-sync-limits)] -
TEMPORAL_WORKER_PORTS
(per‑worker port / job cap) [[Configuring Airbyte – Worker](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#worker)] - And, in older scheduler logic,
SUBMITTER_NUM_THREADS
as a global cap on concurrently scheduled jobs. [[K8s parallelism](https://discuss.airbyte.io/t/826)]
b
"Why does connector-builder consume so much memory, and is this normal?" NAMESPACE NAME CPU(cores) MEMORY(bytes) airbyte-abctl airbyte-abctl-connector-builder-server-68f5dd5b48-glzks 2m 3731Mi airbyte-abctl airbyte-abctl-cron-7dcf574857-6zgmv 21m 866Mi airbyte-abctl airbyte-abctl-server-6597c64c5d-j9jth 2m 1191Mi airbyte-abctl airbyte-abctl-temporal-67d4dd4845-9mg44 91m 638Mi airbyte-abctl airbyte-abctl-worker-5768484bf4-cf2r7 2m 539Mi airbyte-abctl airbyte-abctl-worker-5768484bf4-qc4jm 2m 533Mi airbyte-abctl airbyte-abctl-worker-5768484bf4-wqnqt 2m 529Mi airbyte-abctl airbyte-abctl-workload-api-server-55bc5c8776-g2226 5m 437Mi airbyte-abctl airbyte-abctl-workload-launcher-69d6b95789-mzlgz 2m 459Mi @kapa.ai