<@U04S8PLJWMT> I have abctl deployment of airbyte ...
# ask-ai
a
@kapa.ai I have abctl deployment of airbyte version 2.0 . Sometimes my mysql sync job has an oomkilled status. It's nearly always the orchestrator, that has the memory issue. How can I increase the limit memory for the orchestrator?
k
To increase the memory limit for the orchestrator in your abctl deployment of Airbyte, you should set the environment variables
JOB_MAIN_CONTAINER_MEMORY_REQUEST
and
JOB_MAIN_CONTAINER_MEMORY_LIMIT
. These variables control the minimum and maximum RAM usage for job containers, including the orchestrator. This applies to both Docker and Kubernetes deployments, and the orchestrator gets its resource requirements from these environment variables, just like the read/write containers. For example, you can set these variables in your environment (or in your deployment configuration):
Copy code
bash export JOB_MAIN_CONTAINER_MEMORY_REQUEST=4Gi export JOB_MAIN_CONTAINER_MEMORY_LIMIT=6Gi
Or, if you are using Kubernetes, you can set these in your Helm values or as environment variables in your deployment manifests. Note: Setting these variables will apply the memory limits to all job containers, including the orchestrator, read, and write pods. There is currently no documented way to set a different memory limit for the orchestrator only; the same limit will apply to all job containers in the sync job. This behavior is confirmed in the official support response: "the orchestrator pods get their resource requirements from the
JOB_MAIN_CONTAINER_*
environment variables" and "these variables are applicable to both Docker and Kubernetes deployments" [Orchestrator container gets same resource limit/request values as read/write containers](https://discuss.airbyte.io/t/3775). If you need more granular control (e.g., different limits for orchestrator vs. read/write), the knowledge sources do not provide a documented method for this in abctl or Airbyte 2.0. Summary: Set
JOB_MAIN_CONTAINER_MEMORY_LIMIT
and
JOB_MAIN_CONTAINER_MEMORY_REQUEST
to increase orchestrator memory. This will also affect other job containers in the sync job. For more details, see the official discussion: [Orchestrator container gets same resource limit/request values as read/write containers](https://discuss.airbyte.io/t/3775).
a
@kapa.ai in case of abctl deployment, where can I set those env vars?
k
A message from kapa.ai
For an abctl deployment, the knowledge sources do not provide explicit documentation on where to set environment variables like
JOB_MAIN_CONTAINER_MEMORY_REQUEST
and
JOB_MAIN_CONTAINER_MEMORY_LIMIT
. Most available documentation and forum discussions reference setting these variables in a
.env
file, in the
values.yaml
file (for Helm/Kubernetes), or as environment variables in Docker Compose or Kubernetes manifests, but there is no direct mention of abctl-specific configuration. If abctl uses Docker Compose or Kubernetes under the hood, you would typically set these variables in the relevant configuration files (
.env
for Docker Compose, or as environment variables in your deployment manifests or Helm
values.yaml
for Kubernetes). However, without explicit abctl documentation in the knowledge sources, I cannot confirm the exact location or method for abctl. Summary: I'm sorry, but the knowledge sources do not contain enough information to specify exactly where to set these environment variables in an abctl deployment. If abctl provides a way to pass environment variables to Airbyte services, you should use that mechanism, but please consult abctl-specific documentation or support channels for precise instructions.
a
@kapa.ai and where can I set it inside the values.yaml file exactly?
k
A message from kapa.ai
To set the memory limits for the orchestrator (and all job containers) in your values.yaml file, you should use the following keys under the appropriate section:
Copy code
yaml global:   workloads:     resources:       mainContainer:         memory:           request: 4Gi           limit: 6Gi
This configuration sets the minimum (
request
) and maximum (
limit
) memory for the main job containers, which includes the orchestrator. These keys correspond to the environment variables
JOB_MAIN_CONTAINER_MEMORY_REQUEST
and
JOB_MAIN_CONTAINER_MEMORY_LIMIT
as described in the documentation for Helm chart V2 deployments. This approach is valid for both community and enterprise Helm chart V2 deployments of Airbyte [see documentation](https://docs.airbyte.com/platform/next/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file). Example snippet for values.yaml:
Copy code
yaml global:   workloads:     resources:       mainContainer:         memory:           request: 4Gi           limit: 6Gi
This will apply the memory settings to all job containers, including the orchestrator, in your Airbyte deployment. If you need to set CPU as well, you can add the
cpu
section similarly. For more details, refer to the official documentation on updating your values.yaml file for Helm chart V2 deployments [here](https://docs.airbyte.com/platform/next/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file).