Hi guys, I'm currently installing airbyte via abct...
# replication-troubleshooting
c
Hi guys, I'm currently installing airbyte via abctl on a VM with 4 CPUs and 24 GB memory. I've got a mssql source (table with 1.2 GB of data, about 6M records) and a databricks destination. My problem is, my sync is getting OOMKilled, as the initial load is seemingly too much for Airbyte to handle. I've set the resouce limits for memory to 10Gi, which is the maximum I can, as the other components of Airbyte use about 5Gi. I've asked kapa.ai for other approaches to get over the hill with the initial load in this thread. And it recommends 'splitting' the table with views in smaller chunks and create a Connection each for the initial load, then deleting them and creating a new connection for the table with a incremental sync mode. My question for the community: • Do you have experience with splitting up your (big) tables with views and syncing them? Bonus points if you replaced those connections with a connection to the table. Did that work for you guys? • Can you recommend some settings to get the initial load done otherwise? Or a frame of reference what kind of memory you guys were using for a similar sized table? My question for Airbyte: • I understand that the raw table data being serialized to json and back again is memory intensive - but 10x? Maybe there is something wrong with the destination - how would I troubleshoot that? • Flushing is triggered by size at about 128MB (~250k records). By the time the temp file is removed and memory is freed, the source has read about 400k more records. • Is there a way to rate-limit either source or destination or both so the shared resource (memory in my case) won't be too excessively used, ultimately resulting in an OOM?
k
New message text here
j
I would first check your k8s and ensure that the resource limits are actually getting applied correctly to the sync workers. More often than not when I've seen this come up, they aren't—so people go and chase phantoms just to find out there was an issue with the resource settings. From there, you may also want to check the logs and see which working is OOMing—the source or the destination. I'm syncing far larger datasets from MSSQL (1-2 orders of magnitude larger) than you're talking about without increasing the source limits, but my destination is BigQuery—so it could be that the issue isn't on the source side but rather on the destination. I just saw a couple changes push through to default memory limits on several of the common destinations to help prevent OOM (so it sets a request, but not a limit)—but I'm not sure if Databricks was one of them. Might want to check the changelogs.
c
Thanks for answerding @Justin Beasley! I've checked the pod to make sure the limits are set accordingly with
kubectl get po replication-job-x-attempt-y -ojson | jq '.spec.containers | map(.name, .resources)'
. I was also monitoring memory usage on the VM directly to make sure the memory limit changes worked as expected. It's always the
destination
container that gets OOMKilled, checked similarly with
kubectl get po replication-job-x-attmept-y -json | jq '.status.containerStatuses | map(.name, .state)'
. I know my table's not huge, that's why I'm trying to wrap my head around the sync failing. There must be something I did wrong but I just can't find the issue. I've read that the databricks destination is rather memory hungry, but that's the destination I have to work with.
j
What Airbyte version and connector version are you using?
c
airbyte 1.8.5 source ms-sql 4.2.4 destination databricks 3.3.7