i have postgres table which has 600gb of data, now...
# ask-ai
j
i have postgres table which has 600gb of data, now if i setup airbyte connection to databricks as destination will the open source version of airbyte be able to handle this much of data sync. we are using WAL CDC.
k
Yes, the open source version of Airbyte is designed to handle large data volumes, including syncing a PostgreSQL table of 600GB to a destination like Databricks using WAL-based Change Data Capture (CDC). Airbyte specifically recommends using CDC with logical replication for very large databases (500GB or more), as it is efficient and minimizes the impact on the source database. The platform reads data in chunks and uses checkpointing to ensure reliability and resumability in case of failures, which is crucial for large syncs. Throughput for the Postgres source connector is reported to be about 11 MB per second, enabling the sync of terabyte-scale tables in a reliable manner. After the initial sync, subsequent incremental syncs will only transfer changes, further reducing load and sync times [Low-Latency Data Availability Stack](https://airbyte.com/tutorials/low-latency-data-availability-stack) [Postgres Replication: Streamlining Data Transfer](https://airbyte.com/tutorials/postgres-replication#step-5) [Cloud SQL for PostgreSQL](https://docs.airbyte.com/integrations/sources/postgres/cloud-sql-postgres#setup-using-cdc). However, there are some important considerations: - Ensure your Airbyte deployment has sufficient resources (CPU, memory, disk) to handle the data volume. - The initial sync will be a full refresh and may take significant time depending on network and system performance. - Airbyte’s checkpointing and chunked reading help with reliability, but you should monitor for any resource bottlenecks or failures during the sync. - For best results, use the latest version of Airbyte and connectors, and follow the recommended configuration for CDC and logical replication. In summary, Airbyte OSS can handle a 600GB Postgres table sync to Databricks using WAL CDC, provided your infrastructure is appropriately sized and configured [Low-Latency Data Availability Stack](https://airbyte.com/tutorials/low-latency-data-availability-stack) [Cloud SQL for PostgreSQL](https://docs.airbyte.com/integrations/sources/postgres/cloud-sql-postgres#setup-using-cdc).
j
@kapa.ai what is the recommended airbyte resources (CPU, memory, disk) to handle 600gb data volume.
k
A message from kapa.ai
The Airbyte documentation does not provide explicit, one-size-fits-all resource recommendations (CPU, memory, disk) for syncing a 600GB data volume. However, it does offer best practices and guidelines for scaling resources, especially for large sync jobs: CPU & Memory: - Start with a mid-sized cloud instance (e.g., 4 or 8 cores) and tune upwards based on your workload. - For database connectors (like Postgres), typical resource profiles are: - Default: 2 CPU, 2 GB RAM - Large: 3 CPU, 3 GB RAM - Memory Intensive: 3 CPU, 6 GB RAM - Maximum: 4 CPU, 8 GB RAM - The main memory consumer is the Source worker, which can read up to 10,000 records in memory. For tables with large row sizes, this can require significant RAM (e.g., a 0.5MB average row size would need ~5GB RAM for 10,000 records) [Scaling Airbyte: What To Scale](https://docs.airbyte.com/platform/next/operator-guides/scaling-airbyte#what-to-scale) [Configuring Connector Resources](https://docs.airbyte.com/platform/next/operator-guides/configuring-connector-resources). Disk: - Allocate a minimum of 30GB disk space per node, but err on the side of over-provisioning, especially for long-running or large syncs. - Airbyte connector images are ~300MB each, and deployments with many connectors can use up to 10GB disk space. Long-running syncs can also generate significant logs [Scaling Airbyte: What To Scale](https://docs.airbyte.com/platform/next/operator-guides/scaling-airbyte#what-to-scale). General Recommendations: - Monitor CPU and memory usage during syncs and scale up if you observe bottlenecks or "stuck jobs." - For very large syncs (like 600GB), consider using the "Maximum" resource profile for connectors and ensure your Kubernetes cluster or VM has enough headroom to schedule all required pods. - If you plan to run multiple concurrent syncs, ensure your cluster can handle at least 2x the number of concurrent connections in terms of pods and resources. Summary Table (per connector pod): | Profile | CPU | Memory | |--------------------|-------|--------| | Default | 2 | 2 GB | | Large | 3 | 3 GB | | Memory Intensive | 3 | 6 GB | | Maximum | 4 | 8 GB | Note: These are starting points. You may need to increase resources further depending on row size, network speed, and concurrent syncs. If you need more precise sizing, monitor your sync jobs and adjust resources as needed [Scaling Airbyte: What To Scale](https://docs.airbyte.com/platform/next/operator-guides/scaling-airbyte#what-to-scale) [Configuring Connector Resources](https://docs.airbyte.com/platform/next/operator-guides/configuring-connector-resources). > The knowledge sources do not provide a specific tested configuration for a 600GB table, so you should start with the "Maximum" profile and scale up based on observed performance and resource usage.
j
@kapa.ai lets say I have started syncing the postgres data into databricks through airbyte. The read replica has logical replication. Now while it is syncing which is first load or initial sync, what if there comes new updates/deletes into postgres, will those new deletes gets into the sync or not?
k
A message from kapa.ai
During the initial sync (first load) with Airbyte using CDC from Postgres, Airbyte takes a snapshot of the current state of the data using a
SELECT
statement. This snapshot captures the data as it exists at the start of the sync. Any new updates or deletes that occur in Postgres after the snapshot has started but before it completes are not included in the initial snapshot. However, these changes are recorded in the Postgres write-ahead log (WAL). Once the initial snapshot is complete, Airbyte will process the WAL to capture all changes (including inserts, updates, and deletes) that happened during and after the snapshot. This ensures that no changes are missed: any updates or deletes that occur while the initial sync is running will be picked up in the subsequent CDC phase and applied to the destination during the next incremental sync [Change Data Capture (CDC)](https://docs.airbyte.com/platform/1.6/understanding-airbyte/cdc) [Cloud SQL for PostgreSQL](https://docs.airbyte.com/integrations/sources/postgres/cloud-sql-postgres#setup-using-cdc). In summary: - The initial sync captures the state at the start of the sync. - Changes (updates/deletes) that happen during the initial sync are not in the snapshot, but are captured by CDC from the WAL and will be synced in the next phase, ensuring eventual consistency. This approach guarantees that no data changes are lost during the initial sync process.