<@U04S8PLJWMT> setting resources on connection sid...
# ask-ai
d
@kapa.ai setting resources on connection side is will set them across all pods of connection (iclude init and orchestrator). What is the best way to define resources for source/destiantion. https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources#configuring-connection-specific-requirements
k
When you set resource requirements at the connection level in Airbyte (by updating the
resource_requirements
field in the
connection
table), these settings apply to all pods involved in the connection's sync job—including the source, destination, and orchestrator containers. This means you cannot differentiate resources between source and destination at the connection level; all will receive the same limits and requests [Configuring Connector Resources](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources#configuring-connection-specific-requirements). Best practice for defining resources for source and destination individually: To set different resource requirements for the source and destination, you should use the connector definition level. This is done by updating the
resource_requirements
field in the
actor_definition
table for each connector (source or destination) you want to customize. This way, you can specify different CPU and memory settings for each connector type, and these will override the instance-wide defaults but can still be overridden by connection-specific settings if needed. Steps: 1. Find the connector definition ID for your source or destination:
Copy code
sql    select * from actor_definition where actor_definition.docker_repository like '%<image-name>';
2. Update the resource requirements for that connector:
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>';
This approach allows you to tailor resources for each connector independently, rather than applying the same settings to all pods in a connection [Configuring Connector Resources](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources). Summary: - Connection-level resource settings: apply to all pods (source, destination, orchestrator) in the connection. - Connector definition-level resource settings: allow you to set resources for source and destination independently. If you need even more granular control (e.g., for specific jobs like check, discover, or spec), refer to the documentation for job-specific resource configuration, but the above covers the most common use case for differentiating source and destination resources.