<@U04S8PLJWMT> I'm using Airbyte version 1.7.1 and...
# ask-ai
j
@kapa.ai I'm using Airbyte version 1.7.1 and Postgres connector version 3.7.0. All other connections from other sources work correctly, but when I try to run the connection with the Postgres source, it keeps giving me an error on insufficient resources (CPU).
k
It sounds like the Postgres source job is hitting CPU limits. Here are the steps to diagnose and raise resources for just this connector/connection. Diagnose - Open the failing job’s logs and confirm the detected resource profile for [source], [destination], and [orchestrator]. You should see a line like “Launching replication pod … resources: … cpu=…”. This confirms what limits/requests the job is actually running with. [[Debugging](https://docs.airbyte.com/platform/1.7/operator-guides/configuring-connector-resources#debugging)]. Increase resources (use the narrowest scope needed) - Connection-specific (highest precedence, affects this one connection): - Get the connection id from the URL, then update via SQL:
Copy code
update connection     set resource_requirements = '{"cpu_limit": "3", "cpu_request": "3", "memory_limit": "3072Mi", "memory_request": "3072Mi"}'     where id = '<connection-id>';
[[1.7 resources](https://docs.airbyte.com/platform/1.7/operator-guides/configuring-connector-resources#configuring-connection-specific-requirements)]. - Connector-specific or definition-wide (affects all Postgres sources): - Find the actor_definition id, then set a jobSpecific profile for sync:
Copy code
select * from actor_definition     where actor_definition.docker_repository like '%source-postgres%';      update actor_definition     set resource_requirements = '{       "jobSpecific": [{         "jobType": "sync",         "resourceRequirements": {           "cpu_limit": "3",           "cpu_request": "3",           "memory_limit": "3072Mi",           "memory_request": "3072Mi"         }       }]     }'     where id = '<actor-definition-id>';
[[1.7 resources](https://docs.airbyte.com/platform/1.7/operator-guides/configuring-connector-resources#configuring-connector-definition-requirements); [Next resources](https://docs.airbyte.com/platform/next/operator-guides/configuring-connector-resources#configuring-connector-definition-requirements)]. - Instance-wide (last resort; affects all jobs): - In Helm values, set JOB_MAIN_CONTAINER_CPU_REQUEST/LIMIT and MEMORY_REQUEST/LIMIT. [[1.7 resources](https://docs.airbyte.com/platform/1.7/operator-guides/configuring-connector-resources#configuring-instance-wide-requirements)]. Pick an appropriate profile - For database connectors, typical profiles are: - Default: 2 CPU, 2 GB - Large: 3 CPU, 3 GB - Memory Intensive: 3 CPU, 6 GB - Maximum: 4 CPU, 8 GB Start with “Large” (3 CPU, 3 GB) for the Postgres source; increase if logs still show throttling. [[1.7 profiles](https://docs.airbyte.com/platform/1.7/operator-guides/configuring-connector-resources#configuring-connector-specific-requirements); [Operator guides](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources#configuring-connector-specific-requirements)]. Additional notes - If your destination is Postgres, be aware it’s not a data warehouse and can struggle with large syncs; monitor CPU/IOPS and consider a warehouse for high volumes. [[Postgres limits](https://docs.airbyte.com/integrations/destinations/postgres/postgres-troubleshooting#connector-limitations)]. If you increase CPU and still see failures, please share the job log snippet that shows the “Launching replication pod … resources …” line and the exact error so we can advise the next increment. [[Debugging](https://docs.airbyte.com/platform/1.7/operator-guides/configuring-connector-resources#debugging)].
j
@kapa.ai Is this error related to the Postgres connector?
k
A message from kapa.ai
Most likely yes—the error you’re seeing (“insufficient resources (CPU)”) is about the job’s resource limits as applied to the Postgres source container. Airbyte logs show per-container resources for [source], [destination], and [orchestrator]; check the failing job log to confirm the Postgres source is the one hitting the CPU limit. [[Debugging](https://docs.airbyte.com/platform/1.7/operator-guides/configuring-connector-resources#debugging)]. If it is, raise resources for that connector/connection (e.g., move from the default 2 CPU/2 GB to 3 CPU/3 GB or higher) using connector- or connection-specific resource settings. [[1.7 resources](https://docs.airbyte.com/platform/1.7/operator-guides/configuring-connector-resources#configuring-connector-specific-requirements); [Operator guides](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources#configuring-connector-specific-requirements)].
j
@kapa.ai Can I set only the CPU in the resource_requirements in the database?
k
A message from kapa.ai
Yes. The resource_requirements JSON supports setting any subset of cpu_limit/cpu_request/memory_limit/memory_request. You can update only CPU fields and omit memory fields; unspecified fields fall back to higher-precedence defaults (e.g., instance-wide env or connector defaults). Example:
Copy code
sql update connection set resource_requirements = '{"cpu_limit": "3", "cpu_request": "2"}' where id = '<connection-id>';
You can do the same at the connector definition level using the jobSpecific schema for sync jobs. [[1.7 connection-specific](https://docs.airbyte.com/platform/1.7/operator-guides/configuring-connector-resources#configuring-connection-specific-requirements); [1.7 connector definition](https://docs.airbyte.com/platform/1.7/operator-guides/configuring-connector-resources#configuring-connector-definition-requirements); [Operator guides](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources)].
j
@kapa.ai Does this slow down the sync or can lead to any errors?
k
A message from kapa.ai
Short answer: it can, if CPU becomes the bottleneck. - Lower CPU requests/limits can delay pod scheduling and/or cause throttling once running, which slows the sync. [[Scaling Airbyte](https://docs.airbyte.com/platform/operator-guides/scaling-airbyte#what-to-scale)]. - If the CPU limit is too low for the Postgres source’s workload, jobs may get “insufficient CPU” pending pods or time out/fail due to unavailable pods. Increasing CPU limits/requests often resolves “stuck” or failing jobs. [[Enterprise scaling](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#concurrent-syncs); [Next enterprise scaling](https://docs.airbyte.com/platform/next/enterprise-setup/scaling-airbyte#concurrent-syncs)]. - You can adjust CPU independently (omit memory fields); unspecified fields fall back to higher-precedence defaults. If you only increase CPU, it won’t introduce errors by itself, but if memory remains too low you could still hit OOM. [[Configuring resources 1.7](https://docs.airbyte.com/platform/1.7/operator-guides/configuring-connector-resources#configuring-connector-definition-requirements); [Configuring resources](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources#configuring-connector-definition-requirements)]. If you see pending pods or throttling in logs, raise cpu_request and cpu_limit for that connection/connector and re-test. [[Configuring resources 1.7](https://docs.airbyte.com/platform/1.7/operator-guides/configuring-connector-resources)].