Ignacio Viñuales
08/14/2025, 5:26 PMkapa.ai
08/14/2025, 5:27 PMIgnacio Viñuales
08/14/2025, 5:40 PMkapa.ai
08/14/2025, 5:40 PMkapa.ai
08/14/2025, 5:41 PMJOB_MAIN_CONTAINER_CPU_REQUEST, JOB_MAIN_CONTAINER_CPU_LIMIT, JOB_MAIN_CONTAINER_MEMORY_REQUEST, JOB_MAIN_CONTAINER_MEMORY_LIMIT) in your deployment configuration (such as values.yaml for Helm). These settings apply to all job containers unless overridden elsewhere [Configuring Connector Resources](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources). 2. Connector Definition (Database) Settings: You can define resource requirements for all connectors of a specific type by updating the resource_requirements field in the actor_definition table in the Airbyte database. This is done via a SQL update, for example: 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>'; This approach allows you to set different defaults for each connector type, such as MongoDB or PubSub [Configuring Connector Resources](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources). Note: - In the community version, there is no UI for setting connector-specific resources; it must be done via environment variables or direct database updates. - The orchestrator, source, and destination containers will use these values according to the configuration hierarchy: connection-specific > connector-specific > connector definition > instance-wide [Configuring Connector Resources](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources). If you need to debug or confirm the resource settings being used, you can check the job logs in the Airbyte UI, which will show the detected resource requirements for each container [Debugging Connection Resources](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources#debugging). If you are developing a connector, you generally do not define these values in the connector code itself; they are set by the Airbyte deployment configuration or database as described above.Ignacio Viñuales
08/22/2025, 12:56 PMkapa.ai
08/22/2025, 12:56 PMkapa.ai
08/22/2025, 12:56 PMresource_requirements in the actor_definition table is the correct method to set connector definition-level resource requirements for a connector like MongoDB. However, there are multiple reports that Airbyte sometimes does not respect these settings and instead uses the instance-wide defaults set via environment variables or Helm values. For example, users have reported that even after updating the actor_definition table, the sync jobs still use the default values from the Airbyte environment configuration (such as JOB_MAIN_CONTAINER_CPU_REQUEST), and the resource requirements in the deployment manifest do not reflect the changes made in the database. This issue has been observed in several Airbyte versions, and is documented in open and closed GitHub issues: - “No matter what I do the actor_defintion resource_requirements is never used. I would like to set a per connector resource base as these widely differ per connector. For example logs below come from a connector set with the resource_requirements above as you can see it doesn’t follow the resource_requirements but uses the settings from airbyte-env configmap…” [Syncs don't respect the resource_requirements set in the actor_definition table in the database in latest Airbyte](https://github.com/airbytehq/airbyte/issues/38178) - “I have updated resource_requirements in the actor_definition table with cpu and memory limits and requests, However, i am still seeing discrepancies in the logs regarding the cpu and memory requests and limits.” [Configuring Connector-Specific not working](https://github.com/airbytehq/airbyte/issues/33857) This suggests that, depending on your Airbyte version, there may be a bug or limitation preventing the connector definition resource requirements from being applied as expected. The system may be falling back to instance-wide defaults. What you can do: - Double-check that there are no connection-specific or connector-specific resource requirements set, as these would override the connector definition settings. - Review your Airbyte version and check if this issue is known for your version. - As a workaround, you may need to set the instance-wide defaults to your desired values if connector definition overrides are not being respected. Summary: Even though you updated the actor_definition table, Airbyte may still use the instance-wide defaults for resource requests due to known issues. This is a documented problem in the knowledge sources, and there is no confirmed workaround other than adjusting the global settings or waiting for a fix in a future release. If you need more granular control and the connector definition method is not working, consider opening an issue with your Airbyte version details or following up on the existing GitHub issues for updates.Ignacio Viñuales
08/22/2025, 1:40 PMkapa.ai
08/22/2025, 1:40 PMkapa.ai
08/22/2025, 1:40 PMJOB_MAIN_CONTAINER_CPU_REQUEST in the Helm chart by setting it in your values.yaml file under the global.env_vars section. For example: yaml global: env_vars: JOB_MAIN_CONTAINER_CPU_REQUEST: "900m" Alternatively, with Helm chart V2, you can use the dedicated field: yaml global: workloads: resources: mainContainer: cpu: request: "900m" Both approaches are supported, but the second is the recommended way for Helm chart V2, as it maps directly to the environment variable according to the official documentation [Update your values.yaml file](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file). This setting will apply the CPU request to all main job containers unless overridden by more specific configuration (such as connector- or connection-specific settings) [Configuring Connector Resources](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources).