We are currently self hosting Airbyte on Kubernete...
# ask-ai
s
We are currently self hosting Airbyte on Kubernetes, we would like to understand what would be required worker configuration if we were to switch to self hosting Enterprise. Is there a way to calculate the required workers for enterprise licensing ?
k
When switching to Airbyte Self-Managed Enterprise on Kubernetes, the required worker configuration primarily depends on the number of concurrent syncs you plan to run. Each concurrent sync requires at least 3 additional connector pods (
orchestrator
,
read
,
write
). For example, 10 concurrent syncs would require 30 additional pods in your namespace. The number of worker pods you configure should be sufficient to handle your expected concurrency and avoid job bottlenecks. Key configuration points: - Worker Replicas: You can increase the number of worker replicas in your
values.yaml
file. For high availability and better throughput, it is recommended to have at least 2 worker replicas:
Copy code
yaml   worker:     replicaCount: 2
You can increase this number based on your concurrency needs and available resources. - Concurrent Sync Limits: You can set environment variables to control the maximum number of syncs and checks that can run concurrently:
Copy code
yaml   worker:     extraEnv:       - name: MAX_SYNC_WORKERS         value: "5"  # Example value       - name: MAX_CHECK_WORKERS         value: "5"  # Example value
Or, with Helm chart V2:
Copy code
yaml   worker:     maxSyncWorkers: 5     maxCheckWorkers: 5
Adjust these values based on your workload and the number of concurrent syncs you expect to run. - Resource Monitoring: Monitor CPU and memory usage. If your nodes are under high load, scale up the number of nodes or adjust the resource requests/limits for connector pods in your `values.yaml`:
Copy code
yaml   global:     jobs:       resources:         limits:           cpu: 250m           memory: 500m         requests:           cpu: 75m           memory: 150m
How to calculate required workers for enterprise licensing: There is no strict formula provided in the documentation for calculating the exact number of workers for enterprise licensing. However, the main driver is the number of concurrent syncs you need to support. As a rule of thumb, ensure your Kubernetes cluster can handle at least
2 x <number-of-possible-concurrent-connections>
pods at once, and size your worker replicas and resource limits accordingly. You may need to increase your node count and resources as your concurrency grows, which can impact your licensing fees since more nodes may be required for high availability and performance[Scaling Airbyte After Installation](https://docs.airbyte.com/platform/next/enterprise-setup/scaling-airbyte)[What To Scale](https://docs.airbyte.com/platform/next/operator-guides/scaling-airbyte). Summary: - Set
worker.replicaCount
to at least 2 for HA, increase as needed. - Set
MAX_SYNC_WORKERS
and
MAX_CHECK_WORKERS
based on expected concurrency. - Monitor and adjust CPU/memory resources. - Scale your Kubernetes cluster to accommodate the total number of pods required for your workload. If you need more precise sizing, monitor your current usage and incrementally adjust these values as your workload grows.