<@U04S8PLJWMT> how can i configure destination spe...
# ask-ai
k
@kapa.ai how can i configure destination specific resource requirements in airbyte 1.8 running on kubernetes and using helm charts v2? I have tried updating the db for the destination's resource requirements but that does not seem to be honored
k
To configure destination-specific resource requirements in Airbyte 1.8 running on Kubernetes with Helm charts v2, you have a few options, but there are important caveats based on recent user experiences and documentation. ### 1. Database Update Method (Not Always Honored) The official documentation suggests you can update the
actor_definition
table in the Airbyte database to set resource requirements for all connectors of a specific type (e.g., all instances of a particular destination). The process is: 1. Find the connector definition ID:
Copy code
sql    select * from actor_definition where actor_definition.docker_repository like '%<image-name>';
2. Update the resource requirements:
Copy code
sql    update actor_definition set resource_requirements = '{"jobSpecific": [{"jobType": "sync", "resourceRequirements": {"cpu_limit": "2", "cpu_request": "2", "memory_limit": "2048Mi", "memory_request": "2048Mi"}}]}' where id = '<id-from-step-1>';
However, multiple users have reported that, in practice, Airbyte 1.7.x and 1.8.x often ignore these database settings and instead use the instance-wide defaults set in the Helm chart or environment variables. This is a known issue, and the resource requirements in the database may not be honored out-of-the-box in your setup [Configuring Connector Resources](https://docs.airbyte.com/platform/1.8/operator-guides/configuring-connector-resources), [Github Issue #38178](https://github.com/airbytehq/airbyte/issues/38178). ### 2. Helm Chart and Environment Variable Workaround A workaround that has been reported to work is to explicitly set the following environment variable in your Helm values:
Copy code
yaml env_vars:   CONNECTOR_SPECIFIC_RESOURCE_DEFAULTS_ENABLED: "true"
This setting appears to enable Airbyte to respect the resource requirements defined in the
actor_definition
table. Without this, the system defaults to the instance-wide settings, ignoring your connector-specific configuration [Github Issue #38178](https://github.com/airbytehq/airbyte/issues/38178). ### 3. Instance-Wide Defaults (Fallback) If the above does not work, you can always set instance-wide resource requirements in your
values.yaml
file:
Copy code
yaml JOB_MAIN_CONTAINER_CPU_REQUEST: "1" JOB_MAIN_CONTAINER_CPU_LIMIT: "2" JOB_MAIN_CONTAINER_MEMORY_REQUEST: "2Gi" JOB_MAIN_CONTAINER_MEMORY_LIMIT: "2Gi"
But this will apply to all connectors, not just a specific destination. --- Summary: - Update the
actor_definition
table as per documentation. - Ensure you set
CONNECTOR_SPECIFIC_RESOURCE_DEFAULTS_ENABLED: "true"
in your Helm chart's
env_vars
section. - If connector-specific settings are still not honored, you may be limited to instance-wide settings until this issue is fully resolved in Airbyte. If you continue to experience issues, monitor the [relevant GitHub issue](https://github.com/airbytehq/airbyte/issues/38178) for updates or workarounds from the community and Airbyte maintainers.