<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Lakeflow connect CT pipeline keeps running multiple connections in source in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/lakeflow-connect-ct-pipeline-keeps-running-multiple-connections/m-p/168658#M55962</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I'm working on an ingestion pipeline. I was adding tables to it gradually so that we can monitor the load on our prod server side by side and with my last set of tables added (with them, all the heavy duty tables were inside that pipeline), the load on our actual prod databases(source) went over the board and via logs, it showed this lakeflow connect pipeline running 5 connections each using 2 processors. That affected our prod database alot and I had to stop this pipeline. What I'm not sure about is why is this pipeline running 5 connections when I just created 1 ingestion pipeline on databricks? What is the reason of 5 running connections each using 2 processors? Is this some configuration issue or what? Is there any why by which I can make it better? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm also attaching the load log from my source database. Look at all the lakeflow connect connections with name ftariq&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FatimahTariq_0-1789473365412.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/31120i4E1952D3A6854F55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FatimahTariq_0-1789473365412.png" alt="FatimahTariq_0-1789473365412.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Sep 2026 11:58:13 GMT</pubDate>
    <dc:creator>Fatimah-Tariq</dc:creator>
    <dc:date>2026-09-15T11:58:13Z</dc:date>
    <item>
      <title>Lakeflow connect CT pipeline keeps running multiple connections in source</title>
      <link>https://community.databricks.com/t5/data-engineering/lakeflow-connect-ct-pipeline-keeps-running-multiple-connections/m-p/168658#M55962</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm working on an ingestion pipeline. I was adding tables to it gradually so that we can monitor the load on our prod server side by side and with my last set of tables added (with them, all the heavy duty tables were inside that pipeline), the load on our actual prod databases(source) went over the board and via logs, it showed this lakeflow connect pipeline running 5 connections each using 2 processors. That affected our prod database alot and I had to stop this pipeline. What I'm not sure about is why is this pipeline running 5 connections when I just created 1 ingestion pipeline on databricks? What is the reason of 5 running connections each using 2 processors? Is this some configuration issue or what? Is there any why by which I can make it better? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm also attaching the load log from my source database. Look at all the lakeflow connect connections with name ftariq&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FatimahTariq_0-1789473365412.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/31120i4E1952D3A6854F55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FatimahTariq_0-1789473365412.png" alt="FatimahTariq_0-1789473365412.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2026 11:58:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/lakeflow-connect-ct-pipeline-keeps-running-multiple-connections/m-p/168658#M55962</guid>
      <dc:creator>Fatimah-Tariq</dc:creator>
      <dc:date>2026-09-15T11:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Lakeflow connect CT pipeline keeps running multiple connections in source</title>
      <link>https://community.databricks.com/t5/data-engineering/lakeflow-connect-ct-pipeline-keeps-running-multiple-connections/m-p/168665#M55964</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/127902"&gt;@Fatimah-Tariq&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I can see exactly w&lt;/SPAN&gt;hat is happening from your log screenshot. You created one ingestion pipeline, but you are seeing 5 separate sessions from lakeflow-connect..&amp;nbsp;under the&amp;nbsp;ftariq&amp;nbsp;login on your source SQL Server. This is not a bug and not a misconfiguration on your part. It's how the Lakeflow Connect ingestion gateway works internally.&lt;/P&gt;
&lt;P&gt;When you create a single Lakeflow Connect database ingestion pipeline, Databricks actually spins up two components behind the scenes... an&amp;nbsp;ingestion gateway&amp;nbsp;(runs continuously on classic compute) and an&amp;nbsp;ingestion pipeline&amp;nbsp;(runs on serverless compute on a schedule). The gateway is the piece that connects to your source SQL Server.&amp;nbsp;See &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/ingestion/lakeflow-connect/" target="_blank"&gt;here&lt;/A&gt; for concepts.&lt;/P&gt;
&lt;P&gt;The gateway performs multiple activities&amp;nbsp;in parallel&amp;nbsp;against your source database:&lt;/P&gt;
&lt;OL class="css-0"&gt;
&lt;LI&gt;Snapshot extraction&amp;nbsp;for tables that still need their initial full load&lt;/LI&gt;
&lt;LI&gt;CDC (Change Data Capture) / Change Tracking&amp;nbsp;reads for tables already past the initial snapshot&lt;/LI&gt;
&lt;LI&gt;Schema evolution detection&amp;nbsp;via queries against LakeFlow Connect's proprietary tracking objects&lt;/LI&gt;
&lt;LI&gt;Metadata and schema fetching&amp;nbsp;for table discovery and validation&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV class="du-bois-light-typography css-192x4ka" data-genai-markdown-block="true"&gt;Each of these activities opens its own database connection. The gateway maintains a&amp;nbsp;connection pool&amp;nbsp;for snapshot operations and a separate pool for real-time CDC operations. The default maximum is&amp;nbsp;10 connections each&amp;nbsp;for snapshot and real-time extractions. So the 5 connections you're seeing with 2 processors each is actually the gateway being relatively conservative. It could go up to 10 per pool depending on how many tables are being processed concurrently.&lt;/DIV&gt;
&lt;DIV class="du-bois-light-typography css-192x4ka" data-genai-markdown-block="true"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV data-genai-markdown-block="true"&gt;The reason the load spiked when you added your heavy-duty tables is that the gateway now has to run initial snapshots (full&amp;nbsp;SELECT * FROM table&amp;nbsp;reads) for those large tables while simultaneously continuing CDC reads for the tables you added earlier. Snapshot is the most resource-intensive phase because it reads all existing data from the source.&lt;/DIV&gt;
&lt;DIV data-genai-markdown-block="true"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV data-genai-markdown-block="true"&gt;To reduce the load on your source DB, h&lt;SPAN&gt;ere are a some options...&lt;BR /&gt;&lt;/SPAN&gt;
&lt;OL&gt;
&lt;LI class="du-bois-light-typography css-192x4ka" data-genai-markdown-block="true"&gt;Downsize the gateway driver node.&amp;nbsp;The gateway runs entirely on the driver node of a classic compute cluster. The parallelism is tied to the number of CPU cores on that driver. If you are using a node with, say, 8 or 16 cores, the gateway can run more concurrent threads against your source. Switching to a smaller driver node (the minimum supported is 2 cores) will naturally reduce the number of concurrent connections and queries hitting your source. You can configure this in the gateway pipeline's cluster settings.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI class="du-bois-light-typography css-192x4ka" data-genai-markdown-block="true"&gt;Add tables in smaller batches.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Instead of adding all your heavy tables at once, add them in waves. The initial snapshot phase is the most demanding part. Once a table's snapshot is complete, the ongoing CDC reads are much lighter. Let each batch finish its snapshot before adding the next group.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class="du-bois-light-typography css-192x4ka" data-genai-markdown-block="true"&gt;Schedule your ingestion pipeline during off-peak hours.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;The ingestion pipeline (the serverless part that moves data from staging to destination tables) can be scheduled. If you time it for low-traffic windows on your prod database, the snapshot load won't compete with your application workload.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class="du-bois-light-typography css-192x4ka" data-genai-markdown-block="true"&gt;Consider stopping and restarting the gateway strategically.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;The gateway can be stopped and restarted. If your production database has specific maintenance windows, you could stop the gateway during peak business hours and restart it during quieter periods. Keep in mind that the gateway needs to run continuously to capture CDC changes before change logs get truncated, so don't leave it stopped for too long.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class="du-bois-light-typography css-192x4ka" data-genai-markdown-block="true"&gt;Work with your DBA to tune the source side.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Make sure Change Tracking cleanup jobs on your SQL Server aren't running at the same time as the gateway's snapshot operations. There have been cases where the combination of LakeFlow Connect sessions and CT cleanup jobs creates blocking on the source. Staggering these can help significantly.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;P class="p1"&gt;&lt;FONT size="2" color="#FF6600"&gt;&lt;STRONG&gt;&lt;I&gt;If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.&lt;/I&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2026 12:59:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/lakeflow-connect-ct-pipeline-keeps-running-multiple-connections/m-p/168665#M55964</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-09-15T12:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Lakeflow connect CT pipeline keeps running multiple connections in source</title>
      <link>https://community.databricks.com/t5/data-engineering/lakeflow-connect-ct-pipeline-keeps-running-multiple-connections/m-p/168666#M55965</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/216690"&gt;@Ashwin_DSA&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thankyou for responding. In your suggested solutions, you mentioned "&lt;SPAN&gt;Downsize the gateway driver node.&amp;nbsp;The gateway runs entirely on the driver node of a classic compute cluster. The parallelism is tied to the number of CPU cores on that driver. If you are using a node with, say, 8 or 16 cores, the gateway can run more concurrent threads against your source. Switching to a smaller driver node (the minimum supported is 2 cores) will naturally reduce the number of concurrent connections and queries hitting your source. You can configure this in the gateway pipeline's cluster settings."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Where exactly can I set this setting while creating an ingestion pipeline? I don't remember seeing this setting anywhere while creating my current pipeline.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2026 13:07:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/lakeflow-connect-ct-pipeline-keeps-running-multiple-connections/m-p/168666#M55965</guid>
      <dc:creator>Fatimah-Tariq</dc:creator>
      <dc:date>2026-09-15T13:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Lakeflow connect CT pipeline keeps running multiple connections in source</title>
      <link>https://community.databricks.com/t5/data-engineering/lakeflow-connect-ct-pipeline-keeps-running-multiple-connections/m-p/168685#M55966</link>
      <description>&lt;P&gt;For a standard connector, the gateway continuously extracts snapshots, change logs, and metadata, while a separately scheduled serverless pipeline applies staged data (&lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/cdc-overview#connector-components" target="_blank"&gt;connector components&lt;/A&gt;). Changing the serverless pipeline schedule therefore does not move source extraction to off-peak hours (&lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/sql-server-faq" target="_blank"&gt;SQL Server connector FAQs&lt;/A&gt;).&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;Query &lt;CODE&gt;operation_progress&lt;/CODE&gt; in the gateway event log to identify which tables are snapshotting when SQL Server load rises (&lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/gateway-event-logs#access-progress-events" target="_blank"&gt;monitor gateway progress&lt;/A&gt;).&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Keep the gateway running; manually stopping it can allow source logs to truncate, drop changes, and require a full refresh (&lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/sql-server-pipeline#create-a-gateway-and-an-ingestion-pipeline" target="_blank"&gt;SQL Server pipeline guidance&lt;/A&gt;).&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;If source impact remains unacceptable, have an authorized support contact open a &lt;A href="https://docs.databricks.com/aws/en/resources/support#create-a-databricks-support-case" target="_blank"&gt;support case&lt;/A&gt;.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 15 Sep 2026 16:15:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/lakeflow-connect-ct-pipeline-keeps-running-multiple-connections/m-p/168685#M55966</guid>
      <dc:creator>AbhilashNagilla</dc:creator>
      <dc:date>2026-09-15T16:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Lakeflow connect CT pipeline keeps running multiple connections in source</title>
      <link>https://community.databricks.com/t5/data-engineering/lakeflow-connect-ct-pipeline-keeps-running-multiple-connections/m-p/169197#M56056</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/127902"&gt;@Fatimah-Tariq&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Correction to my earlier reply, and thanks to &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/230476"&gt;@AbhilashNagilla&lt;/a&gt;&amp;nbsp;for catching it.&lt;/P&gt;
&lt;P&gt;I suggested stopping and restarting the gateway during maintenance windows to ease the load on the source. That was wrong, and &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/230476"&gt;@AbhilashNagilla&lt;/a&gt;&amp;nbsp;&amp;nbsp;is right. You should not manually stop the ingestion gateway. It has to run continuously, otherwise the source truncates its change-tracking/CDC data on its own retention schedule before Databricks reads it, and any dropped changes then force a full refresh of the affected tables. Please disregard that part of my earlier message.&lt;/P&gt;
&lt;P&gt;The docs are explicit on this.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/sql-server-limits" target="_blank"&gt;SQL Server Connector Limits&lt;/A&gt;: The ingestion gateway must run in continuous mode to avoid changes being dropped due to log retention. and Do not manually stop the gateway.&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/sql-server-pipeline" target="_blank"&gt;SQL Server pipeline&lt;/A&gt;: If the gateway is stopped, changes can be dropped due to log retention, requiring a full refresh of all affected tables.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;So the right levers for source load are adding tables in smaller batches, so snapshots finish sequentially, sizing the gateway driver appropriately, and, if you ever genuinely need downtime, first extending Change Tracking retention on the source with the setup utility rather than stopping the gateway. Check &lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/sql-server-utility" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/127902"&gt;@Fatimah-Tariq&lt;/a&gt;&amp;nbsp; - On your follow-up... gateway driver size is not a field in the guided ingestion pipeline wizard. The gateway runs as its own pipeline object, and its compute is configured outside that wizard.&lt;/P&gt;
&lt;P&gt;The documented, recommended path is a Job Compute cluster policy that pins the node types, which you then attach to the gateway pipeline. Two sizing notes from the docs.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The driver needs at least 8 cores. "The minimum requirement for the driver node is 8 cores to enable efficient and performant data extraction from your source database."&lt;/LI&gt;
&lt;LI&gt;Workers can be the smallest available. "Databricks recommends specifying the smallest possible worker nodes for ingestion gateways because they do not impact gateway performance."&lt;/LI&gt;
&lt;/UL&gt;
&lt;LI-CODE lang="javascript"&gt;Example cluster policy from the docs.
{
"driver_node_type_id": { "type": "fixed", "value": "r5n.16xlarge" },
"node_type_id": { "type": "fixed", "value": "m5n.large" }
}&lt;/LI-CODE&gt;
&lt;P&gt;You then reference that policy on the gateway pipeline's clusters block, via the pipeline settings JSON, the Pipelines API, Asset Bundles, or Terraform. Compute configuration guidance is &lt;A href="https://docs.databricks.com/aws/en/ldp/configure-compute" target="_blank"&gt;here&lt;/A&gt;&amp;nbsp;and the Pipelines API, which exposes node_type_id and driver_node_type_id, is &lt;A href="https://docs.databricks.com/api/workspace/pipelines" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Worth knowing... lowering driver cores does reduce how much parallelism the gateway runs, which is one way to lighten the source, but keep the driver at or above the 8-core minimum. Pair the sizing with batching your table additions so a heavy snapshot is not hitting the source at the same time as CDC on your existing tables.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Sep 2026 18:39:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/lakeflow-connect-ct-pipeline-keeps-running-multiple-connections/m-p/169197#M56056</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-09-19T18:39:22Z</dc:date>
    </item>
  </channel>
</rss>

