Skip to content

[Destination MS SQL V2] Correct Part Size, No buffered input stream - #55252

Merged
Johnny Schmidt (johnny-schmidt) merged 2 commits into
masterfrom
jschmidt/mssql-v2/oom-troubleshoot
Mar 10, 2025
Merged

Johnny Schmidt (johnny-schmidt) merged 2 commits into
masterfrom
jschmidt/mssql-v2/oom-troubleshoot

Conversation

@johnny-schmidt

@johnny-schmidt Johnny Schmidt (johnny-schmidt) commented Mar 7, 2025 •

Copy link
Copy Markdown
Contributor

What

After some testing, only the record batch size change is necessary to avoid an OOM, but removing the buffered input stream wrapper around the part bytes in the azure client greatly improves memory usage and does not seem to cause other issues.

Screenshot 2025-03-07 at 4 25 41 PM

(left is before, right is after)

Perf is about ~2 mb/s. That's due partly to the lack of parallelization on the upload step, and the fact that inserting blocks uploads. Also with more uploaders we can probably double the number of processors. (In practice, this tends to give a slight improvement even at 1 core (why?) but greatly improves the boost you get from adding more cpu.)

This sync has run successfully multiple times with variations of this PR.

@vercel

vercel Bot commented Mar 7, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 10, 2025 3:29pm

@johnny-schmidt
Johnny Schmidt (johnny-schmidt) force-pushed the jschmidt/mssql-v2/oom-troubleshoot branch from 5094065 to 118996b Compare March 7, 2025 17:35
@johnny-schmidt
Johnny Schmidt (johnny-schmidt) force-pushed the jschmidt/mssql-v2/oom-troubleshoot branch from 118996b to 7e17b16 Compare March 7, 2025 22:57
@johnny-schmidt
Johnny Schmidt (johnny-schmidt) force-pushed the jschmidt/mssql-v2/oom-troubleshoot branch from 7e17b16 to 3f0aac0 Compare March 8, 2025 00:12
@johnny-schmidt
Johnny Schmidt (johnny-schmidt) force-pushed the jschmidt/mssql-v2/oom-troubleshoot branch from 3f0aac0 to 02a9b82 Compare March 8, 2025 00:17
@octavia-squidington-iii Octavia Squidington III (octavia-squidington-iii) added the area/documentation Improvements or additions to documentation label Mar 8, 2025
@johnny-schmidt
Johnny Schmidt (johnny-schmidt) force-pushed the jschmidt/mssql-v2/oom-troubleshoot branch from 156b813 to 02a9b82 Compare March 8, 2025 00:19
@johnny-schmidt Johnny Schmidt (johnny-schmidt) changed the title [Test PR: Do not merge] Mssql w/ logs + tuning knobs [Destination MS SQL V2] Correct Part Size, No buffered input stream Mar 8, 2025
@johnny-schmidt
Johnny Schmidt (johnny-schmidt) marked this pull request as ready for review March 8, 2025 00:26
@johnny-schmidt
Johnny Schmidt (johnny-schmidt) requested a review from a team as a code owner March 8, 2025 00:26
@johnny-schmidt
Johnny Schmidt (johnny-schmidt) force-pushed the jschmidt/mssql-v2/oom-troubleshoot branch from 02a9b82 to ffff759 Compare March 9, 2025 20:15

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for helping out on this Johnny!!

This branch was successfully deployed

1 active deployment
Preview — 82ff7cc8 Deployed Mar 10, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/connectors Connector related issues area/documentation Improvements or additions to documentation CDK Connector Development Kit connectors/destination/mssql-v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants