<@U04S8PLJWMT> I've got a large instance running A...
# ask-ai
w
@kapa.ai I've got a large instance running Airbyte doing a very large full resync on the latest version of the Postgres source connector. It's not using all the resources it could, is there something I should configure to speed it up?
k
If your Airbyte instance is not utilizing all available resources during a large full resync with the latest Postgres source connector, there are a few things you can check and configure: 1. Resource Allocation (CPU/Memory): - Airbyte allows you to configure resource requests and limits for sync jobs at several levels: instance-wide, connector definition, connector-specific, and connection-specific. If you haven't already, try increasing the CPU and memory limits for your sync jobs. This can be done in your
values.yaml
(for Kubernetes/Helm) or via SQL for more granular control. For example, to set instance-wide requirements:
Copy code
yaml      JOB_MAIN_CONTAINER_CPU_REQUEST=      JOB_MAIN_CONTAINER_CPU_LIMIT=      JOB_MAIN_CONTAINER_MEMORY_REQUEST=      JOB_MAIN_CONTAINER_MEMORY_LIMIT=
Or, for a specific connector definition:
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, several users have reported that increasing these limits does not always improve throughput if the connector itself is the bottleneck, not the available resources [[Configuring Connector Resources](https://docs.airbyte.com/platform/next/operator-guides/configuring-connector-resources)]. 2. Connector Bottlenecks: - The Postgres source connector, in particular, has known throughput limitations. Multiple users have observed that even with ample resources, sync speed can remain slow due to connector-side bottlenecks, such as how data is fetched and processed. Increasing parallelization (e.g., more workers) generally helps only if you are running multiple syncs, not for a single large sync [[Forum: Postgres Source - Slow initial Load](https://discuss.airbyte.io/t/1543)]. 3. Fetch Size and Internal Logic: - The fetch size for the Postgres connector is set dynamically, but increasing memory does not necessarily increase fetch size or speed up the sync. Some users have tried custom images with larger fetch sizes, but this did not yield significant improvements [[Forum: Optimized Postgres source connector performance](https://discuss.airbyte.io/t/1984), [Github Issue: Slow sync from Postgres to Snowflake](https://github.com/airbytehq/airbyte/issues/36967)]. 4. Current Limitations: - The engineering team has acknowledged that the throughput of the Postgres connector is a known limitation, and performance improvements are on the roadmap. For now, throughput of 2K–3K rows per second is considered normal for the database connectors, and there is no obvious way to speed up a single large sync beyond what the connector can handle [[Forum: Airbyte ingestion slower after connector upgrade to 1.X](https://discuss.airbyte.io/t/2416)]. Summary: If your resource usage is low but syncs are still slow, it's likely due to connector limitations rather than resource constraints. You can try increasing resource limits, but if that doesn't help, you may be hitting the current performance ceiling of the Postgres connector. Splitting your sync into multiple smaller jobs (e.g., syncing tables separately) may help in some cases, but for a single large table, options are limited until further connector improvements are released. If you want to monitor and confirm resource usage, use observability tools and Airbyte logs to ensure that the bottleneck is not elsewhere [[Configuring Connector Resources](https://docs.airbyte.com/platform/next/operator-guides/configuring-connector-resources)].