<@U04S8PLJWMT> How to increase sync jobs run in pa...
# ask-ai
k
@kapa.ai How to increase sync jobs run in parallel.
k
To increase the number of Airbyte sync jobs running in parallel, you need to adjust several configuration parameters related to worker concurrency and resource allocation. Here are the key steps: 1. Increase MAX_SYNC_WORKERS This environment variable sets the maximum number of concurrent sync jobs a single Airbyte worker can run. Set it to the desired cap of parallel jobs per worker:
Copy code
yaml    worker:      extraEnvs:        - name: MAX_SYNC_WORKERS          value: "e.g. 10"
Or, for Helm chart v2:
Copy code
yaml    worker:      maxSyncWorkers: 10
[Scaling Airbyte After Installation](https://docs.airbyte.com/platform/next/enterprise-setup/scaling-airbyte) 2. Increase Worker Replicas The total parallelism is the product of
MAX_SYNC_WORKERS
and the number of worker replicas. For example, 5 workers with
MAX_SYNC_WORKERS=10
allows up to 50 concurrent syncs:
Copy code
yaml    worker:      replicaCount: 5
[Scaling Airbyte After Installation](https://docs.airbyte.com/platform/next/enterprise-setup/scaling-airbyte) 3. Adjust WORKLOAD_LAUNCHER_PARALLELISM This variable controls how many jobs can be started at once (default is 10). Increase it if you want to launch more jobs in parallel:
Copy code
WORKLOAD_LAUNCHER_PARALLELISM=20
[Configuring Airbyte - Launcher](https://docs.airbyte.com/platform/next/operator-guides/configuring-airbyte#launcher) 4. Resource Allocation Ensure your cluster has enough CPU and memory to handle the increased number of pods. Each sync job spawns at least three pods (
orchestrator
,
read
,
write
). Monitor and adjust resource requests/limits as needed:
Copy code
yaml    global:      jobs:        resources:          limits:            cpu: 250m            memory: 500m          requests:            cpu: 75m            memory: 150m
[Scaling Airbyte After Installation](https://docs.airbyte.com/platform/next/enterprise-setup/scaling-airbyte) 5. Other Variables - For older versions,
SUBMITTER_NUM_THREADS
was used, but it is deprecated in newer schedulers. -
TEMPORAL_WORKER_PORTS
should be set to cover the sum of all worker concurrency if you are using Temporal. Example Calculation: If you want 100 concurrent syncs and each worker can handle 20, set
MAX_SYNC_WORKERS=20
and
replicaCount=5
. Note: If you notice jobs getting stuck or not completing, it may indicate resource exhaustion or that your limits are set too high for your infrastructure. Always monitor your cluster and scale resources accordingly. For more details and best practices, see the official documentation on [scaling Airbyte](https://docs.airbyte.com/platform/next/enterprise-setup/scaling-airbyte) and [configuring Airbyte](https://docs.airbyte.com/platform/next/operator-guides/configuring-airbyte#launcher).
k
@kapa.ai How can we migrate connections?
k
A message from kapa.ai
To migrate Airbyte connections between instances, you have a few options depending on your setup and requirements: 1. Database Backup and Restore (Recommended for Full Migration) - You can export (dump) the Airbyte database from your source instance and import (restore) it into your target instance. This method preserves all connections, sources, destinations, and states. It is important that both instances use the same Airbyte version for compatibility. - For Docker deployments, you can use
pg_dump
to back up the database and then restore it on the new instance. After restoring, you may need to trigger all connections again to recreate the Temporal workflows. This approach is widely used for migrating all configurations and job states between instances, but be aware that it will overwrite the target instance's configuration and data. For Kubernetes or other deployments, the principle is the same, but the database location may differ. [How to import/export Airbyte to a new instance (docker to docker deploy)](https://discuss.airbyte.io/t/3514) [Best way to migrate connectors across airbyte instances?](https://discuss.airbyte.io/t/1468) [Migrate Airbyte config from one deployment to another (OSS)](https://discuss.airbyte.io/t/370) 2. Export and Import Configuration (If Supported) - Some forum posts mention the ability to export and import configuration between instances, provided both are on the same version. This method is less disruptive than a full database migration and is suitable if you only want to migrate configuration (not job history or logs). [Advice regarding migrating between Airbyte instances](https://discuss.airbyte.io/t/1768) [Migrate Airbyte config from one deployment to another (OSS)](https://discuss.airbyte.io/t/370) 3. Manual Recreation - If you cannot use database migration or export/import, you can manually recreate the connections, sources, and destinations in the new instance. Note that this will not preserve incremental sync states or job history, and you may need to perform a full refresh on your data. 4. Octavia CLI for Version Control and Migration - You can use the Octavia CLI to export your Airbyte configuration as YAML files and then apply them to a new instance. However, you will need to update secrets and environment variables manually before applying the configuration to the new instance. [Version control Airbyte configurations with Octavia CLI](https://airbyte.com/tutorials/version-control-airbyte-configurations) Important Notes: - Migrating from Airbyte OSS to Airbyte Cloud is not currently supported via configuration export/import; you must recreate connectors manually in Airbyte Cloud. - Always ensure both source and target Airbyte instances are running the same version to avoid compatibility issues. - If you use the database migration method, disable the source instance before starting the target to avoid conflicts. If you need more detailed, step-by-step instructions for your specific deployment type, please specify your environment (Docker, Kubernetes, etc.).