<@U04S8PLJWMT> Is it possible to increase the CPU ...
# ask-ai
r
@kapa.ai Is it possible to increase the CPU and RAM requests and limits just for the destination worker on deployment, without changing the postgresql db parameters?
k
Based on the knowledge sources, yes, it is possible to increase CPU and RAM requests and limits for destination workers without modifying the PostgreSQL database parameters. Here are the available methods: ## Instance-Wide Configuration You can set resource limits for all job containers (including destination workers) by configuring environment variables in your
values.yaml
file. According to the [Configuring Connector Resources](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources) documentation, you can set: -
JOB_MAIN_CONTAINER_CPU_REQUEST
- Define the job container's minimum CPU usage -
JOB_MAIN_CONTAINER_CPU_LIMIT
- Define the job container's maximum CPU usage -
JOB_MAIN_CONTAINER_MEMORY_REQUEST
- Define the job container's minimum RAM usage -
JOB_MAIN_CONTAINER_MEMORY_LIMIT
- Define the job container's maximum RAM usage This approach affects all connectors but doesn't require database modifications. ## Important Note However, if you want to configure resources specifically for just the destination worker (and not all workers), the knowledge sources indicate that you would need to use one of these methods: 1. Connector definition (affects all connectors of that type) - requires database update 2. Connector-specific (affects one specific connector) - available in Self-Managed Enterprise through UI/API 3. Connection-specific (affects one connection) - requires database update According to the [precedence hierarchy](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources), instance-wide configurations have the lowest precedence and can be overridden by more specific configurations. For Self-Managed Enterprise users, the [connector-specific resource allocation](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources#configuring-connector-specific-requirements) feature allows you to configure resources through the UI's "Connector resource allocation" dropdown in the Settings tab for each connector, which wouldn't require direct database modifications.
r
@kapa.ai what are these parameters: SPEC_JOB_MAIN_CONTAINER_CPU_REQUEST=1000m \ SPEC_JOB_MAIN_CONTAINER_CPU_LIMIT=3000m \ SPEC_JOB_MAIN_CONTAINER_MEMORY_REQUEST=1000Mi \ SPEC_JOB_MAIN_CONTAINER_MEMORY_LIMIT=2000Mi \
k
A message from kapa.ai
Based on the knowledge sources, these parameters are job-specific environment variables for configuring resource requirements for Spec jobs in Airbyte. According to a [GitHub issue discussion](https://github.com/airbytehq/airbyte/issues/48816), Airbyte uses different environment variables for each type of job process (connector check, discovery, spec, sync, etc.). The parameters you're asking about specifically control resources for Spec jobs: -
SPEC_JOB_MAIN_CONTAINER_CPU_REQUEST
- Minimum CPU usage for spec job containers (1000m = 1 CPU core) -
SPEC_JOB_MAIN_CONTAINER_CPU_LIMIT
- Maximum CPU usage for spec job containers (3000m = 3 CPU cores) -
SPEC_JOB_MAIN_CONTAINER_MEMORY_REQUEST
- Minimum RAM usage for spec job containers (1000Mi = 1000 megabytes) -
SPEC_JOB_MAIN_CONTAINER_MEMORY_LIMIT
- Maximum RAM usage for spec job containers (2000Mi = 2000 megabytes) ## What are Spec Jobs? According to the [Configuring Connector Resources](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources) documentation, there are four types of jobs in Airbyte: - Sync - Check - Discover - Spec Spec jobs are one of these job types that run when setting up or configuring connectors. ## Why These Exist As explained in the [GitHub issue](https://github.com/airbytehq/airbyte/issues/48816), setting only the general
JOB_MAIN_CONTAINER_*
variables only affects actual sync connections. When creating a new source connector and executing checks or other operations, those values are not used. This is why job-specific variables like
SPEC_JOB_MAIN_CONTAINER_*
,
CHECK_JOB_MAIN_CONTAINER_*
, and
DISCOVER_JOB_MAIN_CONTAINER_*
exist - to control resources for those specific job types.