What are the values I need to put in the helm char...
# ask-ai
j
What are the values I need to put in the helm charts to increase the resources for the works for discovery, sync and all the jobs etc?
k
To increase the resources for workers (including discovery, sync, and other job types) in Airbyte when deploying via Helm, you should configure the resource requests and limits in your
values.yaml
file under the
jobs.resources
section. This will set instance-wide defaults for all job containers unless overridden at a more specific level (connector or connection). Here’s an example snippet for your `values.yaml`:
Copy code
yaml jobs:   resources:     requests:       cpu: 500m       memory: 1Gi     limits:       cpu: 1000m       memory: 2Gi
This configuration will apply to all job pods (including sync, check, discover, and spec jobs) unless you override them with more specific settings. If you want to set different resources for specific job types (like discovery, check, or spec), you can use environment variables in the
workload-launcher.extraEnv
section. For example:
Copy code
yaml workload-launcher:   extraEnv:     - name: SPEC_JOB_MAIN_CONTAINER_CPU_REQUEST       value: "200m"     - name: SPEC_JOB_MAIN_CONTAINER_MEMORY_REQUEST       value: "512Mi"     - name: CHECK_JOB_MAIN_CONTAINER_CPU_REQUEST       value: "200m"     - name: CHECK_JOB_MAIN_CONTAINER_MEMORY_REQUEST       value: "512Mi"     - name: DISCOVER_JOB_MAIN_CONTAINER_CPU_REQUEST       value: "200m"     - name: DISCOVER_JOB_MAIN_CONTAINER_MEMORY_REQUEST       value: "512Mi"
This allows you to fine-tune resources for each job type individually, which is especially useful if you notice certain jobs are more resource-intensive than others [Sync attempt with killed pod hangs eternally](https://github.com/airbytehq/airbyte/issues/48879). Summary of steps: 1. Set global job resource defaults under
jobs.resources
in
values.yaml
. 2. Optionally, set job-type-specific resources using environment variables in
workload-launcher.extraEnv
. For more details and best practices, see the official documentation on [Configuring Connector Resources](https://docs.airbyte.com/platform/1.6/operator-guides/configuring-connector-resources) and [Scaling Airbyte](https://docs.airbyte.com/platform/1.6/enterprise-setup/scaling-airbyte).
j
@kapa.ai what do i need to pt in to change the pods from best effort?
k
A message from kapa.ai
To change Airbyte job pods from "BestEffort" (which means they have no resource requests or limits set) to a higher QoS class (like "Burstable" or "Guaranteed"), you need to set resource requests and/or limits for CPU and memory in your Helm chart's
values.yaml
file. For example, add the following under the
jobs.resources
section:
Copy code
yaml jobs:   resources:     requests:       cpu: 250m       memory: 512Mi     limits:       cpu: 500m       memory: 1Gi
- BestEffort: No requests or limits set. - Burstable: Either requests or limits (or both) are set, but not both for all containers. - Guaranteed: Requests and limits are set and equal for all containers. By setting at least requests (and optionally limits), your pods will no longer be "BestEffort" and will be scheduled with higher priority and more predictable resource allocation by Kubernetes. This is the recommended approach for production workloads in Airbyte deployments [Configuring Connector Resources](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources). If you want to further fine-tune for specific job types (sync, check, discover, spec), you can use the corresponding environment variables as described in the documentation, but setting the above in
values.yaml
is the primary step to move away from "BestEffort" QoS.
j
@kapa.ai the sftp bulk connector doesnt seem to be taking it from the helm charts, i thought maybe editing the database might work, what should the json format be to increase its resources to take in quite a lot of data
k
A message from kapa.ai
To increase the resources for the SFTP Bulk connector by editing the database, you should update the
resource_requirements
field in the
actor_definition
table for that connector. The JSON format should look like this:
Copy code
json {   "jobSpecific": [     {       "jobType": "sync",       "resourceRequirements": {         "cpu_limit": "4",         "cpu_request": "2",         "memory_limit": "8Gi",         "memory_request": "6Gi"       }     }   ] }
You would run a SQL command similar to:
Copy code
sql UPDATE actor_definition SET resource_requirements = '{   "jobSpecific": [     {       "jobType": "sync",       "resourceRequirements": {         "cpu_limit": "4",         "cpu_request": "2",         "memory_limit": "8Gi",         "memory_request": "6Gi"       }     }   ] }' WHERE docker_repository LIKE '%sftp%';
This example sets higher CPU and memory for sync jobs, which is suitable for handling large data volumes. Important: There are multiple reports that Airbyte may not always respect the
resource_requirements
set in the database for connectors, and may still use the instance-wide defaults from the Helm chart or environment variables instead. This is a known issue in some Airbyte versions, and you may need to test if this approach works for your deployment. If it does not, you may need to use connection-specific overrides or wait for a fix in a future Airbyte release [Syncs don't respect the resource_requirements set in the actor_definition table](https://github.com/airbytehq/airbyte/issues/38178) [Airbyte is ignoring JOB_MAIN_CONTAINER_MEMORY_REQUEST in .env](https://github.com/airbytehq/airbyte/issues/30814). For more details and the exact SQL format, see the official documentation on [Configuring Connector Resources](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources#configuring-connector-definition-requirements).