Zachary Haupin
08/14/2025, 4:32 AMkapa.ai
08/14/2025, 4:33 AMZachary Haupin
08/14/2025, 2:58 PMkapa.ai
08/14/2025, 2:58 PMkapa.ai
08/14/2025, 2:58 PMZachary Haupin
08/14/2025, 3:01 PMkapa.ai
08/14/2025, 3:01 PMkapa.ai
08/14/2025, 3:01 PMZachary Haupin
08/14/2025, 3:26 PMkapa.ai
08/14/2025, 3:26 PMkapa.ai
08/14/2025, 3:26 PMSYNC_JOB_MAX_ATTEMPTS (legacy, superseded by the variables below) - SYNC_JOB_RETRIES_COMPLETE_FAILURES_MAX_SUCCESSIVE - SYNC_JOB_RETRIES_COMPLETE_FAILURES_MAX_TOTAL - SYNC_JOB_RETRIES_PARTIAL_FAILURES_MAX_SUCCESSIVE - SYNC_JOB_RETRIES_PARTIAL_FAILURES_MAX_TOTAL These variables define how many times Airbyte will retry a sync job after failures, both for complete and partial failures. You can find more details in the documentation [Configuring Airbyte - Jobs](https://docs.airbyte.com/platform/next/operator-guides/configuring-airbyte#jobs). Currently, Airbyte does not support configuring the retry count per connection via the UI or API. This feature has been requested by users but is not available as of now [Dynamically configure retries per connection](https://github.com/airbytehq/airbyte/issues/21147). Summary: You can configure the number of retries globally for your Airbyte instance using environment variables, but not per connection through the UI or API at this time.Zachary Haupin
08/14/2025, 4:03 PMkapa.ai
08/14/2025, 4:03 PMkapa.ai
08/14/2025, 4:03 PMZachary Haupin
08/14/2025, 4:13 PMkapa.ai
08/14/2025, 4:13 PMkapa.ai
08/14/2025, 4:13 PMZachary Haupin
08/14/2025, 6:03 PMkapa.ai
08/14/2025, 6:03 PMkapa.ai
08/14/2025, 6:04 PMZachary Haupin
08/14/2025, 6:05 PMkapa.ai
08/14/2025, 6:05 PMkapa.ai
08/14/2025, 6:06 PMZachary Haupin
08/14/2025, 6:08 PMkapa.ai
08/14/2025, 6:08 PMkapa.ai
08/14/2025, 6:08 PMZachary Haupin
08/14/2025, 6:14 PMkapa.ai
08/14/2025, 6:14 PMkapa.ai
08/14/2025, 6:14 PMAverage row size = Total table size / Number of rows = 5 GB / 5,000,000 = 5,000 MB / 5,000,000 = 0.001 MB per row = 1 KB per row 2. Estimate the memory needed for a batch: Airbyte reads up to 10,000 records into memory at a time during syncs. Batch size in memory = Average row size × Batch size = 1 KB × 10,000 = 10,000 KB = 10 MB Conclusion: You should provision at least 10 MB of RAM for the batch itself. However, in practice, you need to account for additional overhead from the Airbyte process, Java runtime, and other system operations. Airbyte documentation recommends over-provisioning memory to avoid out-of-memory errors, especially for larger or more complex tables. For most use cases, starting with at least 1–2 GB of RAM is recommended, even if your calculated batch size is much smaller, to ensure stability and account for overhead [Scaling Airbyte](https://docs.airbyte.com/platform/next/operator-guides/scaling-airbyte), [How memory request and limit works under the hood](https://discuss.airbyte.io/t/2214). Calculation summary: - Average row size: 1 KB - Batch size in memory: 10 MB - Recommended minimum RAM (including overhead): 1–2 GB If your rows are wider or you have additional transformations, you may need more RAM. Always monitor your sync jobs and adjust as needed.Zachary Haupin
08/14/2025, 6:16 PMkapa.ai
08/14/2025, 6:16 PMkapa.ai
08/14/2025, 6:17 PM5 GB / 100,000 rows = 0.00005 GB/row = 50 KB/row Batch size in memory: Batch size = 10,000 records × 50 KB = 500,000 KB = 500 MB Now, imagine a more extreme case: - Total size: 5 GB - Number of rows: 2,500 Average row size: 5 GB / 2,500 rows = 2 MB/row Batch size in memory: Batch size = 10,000 records × 2 MB = 20,000 MB = 20 GB But here’s the catch: Airbyte will still try to batch up to 10,000 records at a time, even if the total number of rows is less than 10,000. If you had, say, 10,000 rows at 2 MB each, the batch would be 20 GB—**four times the total table size**. ### Why does this happen? - Airbyte’s batching is based on record count, not byte size. - If your table has a small number of very large records, a single batch can require more memory than the total table size. - This is a known limitation and is discussed in the Airbyte documentation and community forums [Scaling Airbyte](https://docs.airbyte.com/platform/next/operator-guides/scaling-airbyte), [Reads should batch on bytes read instead of records read](https://github.com/airbytehq/airbyte/issues/3439). In summary: Provisioned RAM may need to exceed the total table size when the average row size is large, because Airbyte batches by record count, not by total bytes. This can lead to situations where a single batch in memory is larger than the entire table on disk.Zachary Haupin
08/14/2025, 6:19 PMkapa.ai
08/14/2025, 6:19 PMkapa.ai
08/14/2025, 6:20 PM2,500 records × 2 MB = 5,000 MB = 5 GB This means the memory required would match the total table size, not exceed it. The scenario where memory usage exceeds the total table size only occurs when the number of rows is large enough that a single batch (up to 10,000 records) contains more data than the total table size, due to very large average row sizes. Thank you for catching this!Zachary Haupin
08/14/2025, 6:21 PMkapa.ai
08/14/2025, 6:21 PMkapa.ai
08/14/2025, 6:22 PMZachary Haupin
08/14/2025, 6:23 PMkapa.ai
08/14/2025, 6:23 PMkapa.ai
08/14/2025, 6:23 PM