<@U04S8PLJWMT> When scaling Airbyte for a MySQL da...
# ask-ai
a
@kapa.ai When scaling Airbyte for a MySQL database connector, what is the minimum size of the kubernetes node required to support the maximum allocation of 4 CPU, 8 GB
k
To support the maximum resource allocation for a MySQL database connector in Airbyte (4 CPU, 8 GB RAM), the Kubernetes node must be able to provide at least this amount of CPU and memory to a single pod. Therefore, the **minimum size of the Kubernetes node should be at least 4 vCPUs and 8 GB of RAM**—ideally more, to account for system overhead and other running pods. This maximum allocation is specified in the connector resource profiles for database connectors, where the "Maximum" profile is 4 CPU and 8 GB RAM. This can be set via the "Connector resource allocation" dropdown in the Settings tab for each connector in Self-Managed Enterprise deployments, or via the API. Note that these allocations are per connector pod, so your node must be able to accommodate this for each running connector pod, plus any additional resources needed for other Airbyte components and system processes. If you plan to run multiple such connectors concurrently, you will need to scale your nodes accordingly [Configuring Connector-Specific Requirements](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources#configuring-connector-specific-requirements). Recommendation: - Minimum node size: 4 vCPUs, 8 GB RAM (per maximum-allocated connector pod) - For production, consider provisioning nodes with additional resources to handle system overhead and other workloads. If you need to run multiple maximum-sized connectors concurrently, multiply these requirements by the number of concurrent pods you expect to run. For more details, see the official documentation on [Configuring Connector-Specific Requirements](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources#configuring-connector-specific-requirements).
a
@kapa.ai Going by the logs, it looks like when the replication pod for the MySQL connector spins up, it will then spin up 3 containers - one each for source, destination and orchestrator. If each takes the max configuration of 4 CPUs and 8 GB RAM, wont the node will need to be atleast 12 CPUs and 24 GB RAM?
k
A message from kapa.ai
You are correct in your understanding of how Airbyte's replication pods work: when a sync job runs, the replication pod typically contains three containers—one each for the source, destination, and orchestrator. Each of these containers can be assigned resource limits, and if each is configured for the maximum allocation (4 CPUs, 8 GB RAM), the total resource request for the pod would indeed be 12 CPUs and 24 GB RAM. This is supported by the logs, which show resource requirements for each container within the replication pod, for example:
Copy code
2024-10-28 23:58:10 platform > [source] ... resources: ResourceRequirements(... limits={memory=2Gi, cpu=1} ...) 2024-10-28 23:58:10 platform > [destination] ... resources: ResourceRequirements(... limits={memory=2Gi, cpu=1} ...) 2024-10-28 23:58:10 platform > [orchestrator] ... resources: ResourceRequirements(... limits={memory=2Gi, cpu=1} ...)
If each of these is set to 4 CPUs and 8 GB RAM, the total for the pod would be 12 CPUs and 24 GB RAM [Debugging Connection Resources](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources#debugging). Therefore, to schedule such a pod, your Kubernetes node must have at least 12 CPUs and 24 GB RAM available. In practice, you may need even more to account for system overhead and other running pods. This is an important consideration when scaling Airbyte for high-resource connectors, as the node must be able to accommodate the sum of all container resource requests within a pod [Configuring Connector-Specific Requirements](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources#configuring-connector-specific-requirements). If you have further questions about resource allocation or scaling, let me know!