Hi everyone, I'm using Airbyte for the first time ...
# replication-troubleshooting
b
Hi everyone, I'm using Airbyte for the first time via abctl, and I've encountered an issue with sync parallelism. It seems that each sync is waiting for the previous one to complete before starting, which is slowing down the process. Is there a way to configure Airbyte to allow multiple syncs to run in parallel?
k
Yes. Airbyte can run multiple syncs in parallel, but you need to adjust a few concurrency-related settings and ensure your deployment has sufficient resources. Key places to look: 1. Max sync workers per worker pod Set the maximum number of parallel syncs a worker can handle: - Helm chart v1 (env vars):
Copy code
yaml      worker:        extraEnv:          - name: MAX_SYNC_WORKERS            value: "5"        # set to the max number of parallel syncs you want          - name: MAX_CHECK_WORKERS            value: "5"
[[Scaling Airbyte](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#concurrent-sync-limits)] - Helm chart v2 (abctl uses Helm under the hood):
Copy code
yaml      worker:        maxSyncWorkers: 5        maxCheckWorkers: 5
[[Scaling Airbyte](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#concurrent-sync-limits)] Increasing
MAX_SYNC_WORKERS
directly increases job parallelism on each worker. [[Source E2E forum](https://discuss.airbyte.io/t/1547)] 2. Number of worker replicas More worker pods = more concurrent sync capacity:
Copy code
yaml    worker:      replicaCount: 2   # or higher
[[Scaling Airbyte](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#concurrent-sync-limits)] 3. Launcher parallelism Controls how many jobs can be started at once (does not cap total concurrency, but can throttle startup):
Copy code
yaml    WORKLOAD_LAUNCHER_PARALLELISM=10  # default; increase if needed
[[Configuring Airbyte](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#launcher)] 4. Cluster/resources & stuck jobs If you raise parallelism but don’t have enough CPU/memory, jobs can appear “stuck” or very slow. The docs recommend: - Monitoring CPU/memory usage. - Adjusting connector pod requests/limits in
values.yaml
if high requested resources prevent pods from scheduling. [[Scaling Airbyte](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#connector-cpu--memory-settings)] - Increasing node count if needed. 5. Rough example For a target like dozens of parallel syncs, you might configure something like:
Copy code
yaml    worker:      replicaCount: 3      maxSyncWorkers: 20   # or via MAX_SYNC_WORKERS env var
This would allow up to ~60 syncs in parallel (assuming cluster capacity). [[Scaling Airbyte](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#concurrent-sync-limits)] If after setting `maxSyncWorkers`/`MAX_SYNC_WORKERS` and increasing
worker.replicaCount
you still see strictly serialized syncs, the knowledge sources don’t provide further abctl-specific caveats; at that point you’d likely need to inspect your actual
values.yaml
and pod logs to confirm the settings are applied and that resources are not exhausted.
b
Also, could anyone recommend the optimal resources (CPU, memory, etc.) for running Airbyte with a single worker replica, considering we're working with a relatively small amount of data? Any tips on resource configuration for such a setup would be greatly appreciated! @kapa.ai
k
A message from kapa.ai
For a small deployment with one worker replica, the docs don’t give a single “optimal” number, but they do give clear guidance and examples you can use to size your setup. ### 1. Baseline instance size Airbyte recommends starting with a mid-sized node and tuning from there: - “Start out with a mid-sized cloud instance (e.g. 4 or 8 cores) and gradually tune instance size to your workload.” [[Scaling guide](https://docs.airbyte.com/platform/operator-guides/scaling-airbyte#what-to-scale)] For small data and a single worker replica, you’re usually fine at the lower end of that (around 4 vCPUs on the node). Also, plan for at least 30 GB disk per node to comfortably hold images and logs. [[Scaling guide](https://docs.airbyte.com/platform/operator-guides/scaling-airbyte#disk-space)] ### 2. Worker pod resources The Helm chart examples show fairly modest worker requests that are reasonable for small workloads:
Copy code
yaml worker:   resources:     # limits can be empty to allow bursting     limits: {}     requests:       memory: 256Mi       cpu: 250m
This is taken from a chart snippet and is the kind of starting point Airbyte uses as an example for worker requests. [[Helm worker resources](https://github.com/airbytehq/airbyte/issues/49843)] For a single worker replica on small data: - CPU request: ~`250m` (0.25 vCPU) per worker pod - Memory request: ~`256Mi` per worker pod - Optionally set conservative limits (e.g. 1 vCPU / 1 Gi) if you want to cap usage, or leave
limits: {}
and let Kubernetes control via node capacity. ### 3. Job / connector resources You can set instance-wide container requests/limits so every job pod (sync/check/discover/spec) uses modest resources by default, and only bump them for heavy connectors: In `values.yaml`:
Copy code
yaml JOB_MAIN_CONTAINER_CPU_REQUEST= "250m" JOB_MAIN_CONTAINER_CPU_LIMIT=  "1" JOB_MAIN_CONTAINER_MEMORY_REQUEST= "256Mi" JOB_MAIN_CONTAINER_MEMORY_LIMIT=  "1Gi"
These variables define min/max CPU and memory for all job containers unless overridden per connector or per connection. [[Configuring resources](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources#configuring-instance-wide-requirements)] For small data, start with defaults or values in this range, then only increase for specific connectors that show OOM or CPU saturation. ### 4. Memory considerations The main memory consumer is the Source worker, which can buffer up to 10,000 records. Large rows can require several GB of RAM per sync. [[Scaling guide](https://docs.airbyte.com/platform/operator-guides/scaling-airbyte#memory)] For “relatively small amount of data” (small tables / small row size), the modest 256 Mi–1 Gi per job is usually enough. If you see OOM errors, increase memory limit for the specific connector or connection using the resource configuration hierarchy. [[Configuring resources](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources)] ### 5. Practical starting point for your case For one worker replica handling small workloads, a reasonable starting configuration is:
Copy code
yaml worker:   replicaCount: 1   resources:     limits:       cpu: "1"       # optional       memory: "1Gi"  # optional     requests:       cpu: "250m"       memory: "256Mi"
Plus instance-wide job/container settings around 250 mCPU / 256–512 Mi as shown above. From there: - Monitor CPU & memory (requested vs used) on the node and pods. [[Scaling Airbyte](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#connector-cpu--memory-settings)] - If pods are underutilized, you can reduce requests. - If you see “stuck jobs” or OOMs, increase memory/CPU for only the problematic connectors or connections using the resource configuration hierarchy. [[Configuring resources](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources#best-practices-for-allocating-resources)]