<?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 Re: DLT pipeline slow streaming (root cause needs to be identified) in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/dlt-pipeline-slow-streaming-root-cause-needs-to-be-identified/m-p/7650#M3457</link>
    <description>&lt;P&gt;Hi @EDDatabricks EDDatabricks​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting your question in our community! We are happy to assist you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answers your question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will also help other community members who may have similar questions in the future. Thank you for your participation and let us know if you need any further assistance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 25 Mar 2023 10:45:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-03-25T10:45:07Z</dc:date>
    <item>
      <title>DLT pipeline slow streaming (root cause needs to be identified)</title>
      <link>https://community.databricks.com/t5/data-engineering/dlt-pipeline-slow-streaming-root-cause-needs-to-be-identified/m-p/7648#M3455</link>
      <description>&lt;P&gt;Dear support,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have the following situation where a set of DLT pipelines are streaming with very low rate incoming data and we need to find the root cause of this delay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to provide more insight about the setup of the DLT pipelines and some metrics regarding the source table :&lt;/P&gt;&lt;P&gt;-The source table has 63.000.077.072 records&lt;/P&gt;&lt;P&gt;-The source table has 2 partitions which are mapped to column values directly&lt;/P&gt;&lt;P&gt;-The source table has 4 partitions which are calculated values from column values&lt;/P&gt;&lt;P&gt;-The streaming query also filters the source table by filtering on one partitioned&amp;nbsp;and one un-partitioned column at the same time&lt;/P&gt;&lt;P&gt;-Metrics of the partition targetted&lt;/P&gt;&lt;P&gt;partition,records&lt;/P&gt;&lt;P&gt;p1,2082775&lt;/P&gt;&lt;P&gt;p2,932645&lt;/P&gt;&lt;P&gt;p3,2808&lt;/P&gt;&lt;P&gt;p4,5&lt;/P&gt;&lt;P&gt;p5,2&lt;/P&gt;&lt;P&gt;p6,30990942&lt;/P&gt;&lt;P&gt;p7,80&lt;/P&gt;&lt;P&gt;p8,143623&lt;/P&gt;&lt;P&gt;p9,1735803700&lt;/P&gt;&lt;P&gt;p10,4819113815&lt;/P&gt;&lt;P&gt;p11,4749727822&lt;/P&gt;&lt;P&gt;p12,12491237547&lt;/P&gt;&lt;P&gt;p13,17198069143&lt;/P&gt;&lt;P&gt;p14,18333204664&lt;/P&gt;&lt;P&gt;p15,3638767501&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-The partition of interest is p15 and holds 3.638.767.501 records&lt;/P&gt;&lt;P&gt;-The records of interest which need to be streamed after applying filtering on the partition column and the un-partitioned column are 76.929.237&lt;/P&gt;&lt;P&gt;-The following options are used while streaming :&lt;/P&gt;&lt;P&gt;option("maxBytesPerTrigger", 1024 * 1024 * &amp;lt;MB_PER_TRIGGER_PROPERTY&amp;gt;)&lt;/P&gt;&lt;P&gt;option("ignoreChanges", "true")&lt;/P&gt;&lt;P&gt;option("startingTimestamp", &amp;lt;CUT_OFF_PROPERTY&amp;gt;)&lt;/P&gt;&lt;P&gt;MB_PER_TRIGGER_PROPERTY=10&lt;/P&gt;&lt;P&gt;CUT_OFF_PROPERTY=a given date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-The DLT pipelines have the following specs in terms of processing power :&lt;/P&gt;&lt;P&gt;"node_type_id": "Standard_E8ds_v4",&lt;/P&gt;&lt;P&gt;"driver_node_type_id": "Standard_E8ds_v4",&lt;/P&gt;&lt;P&gt;"autoscale": {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"min_workers": 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"max_workers": 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"mode": "LEGACY"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;"photon": false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem observed is the following :&lt;/P&gt;&lt;P&gt;The speed with which data is stored on the destination tables is very low. For instance : 2 million records have reached the destination table in 50+hours of streaming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : There are 4 DLT pipelines streaming concurrently from the same source table and appending to different destination tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;EDDatabricks&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 08:49:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dlt-pipeline-slow-streaming-root-cause-needs-to-be-identified/m-p/7648#M3455</guid>
      <dc:creator>EDDatabricks</dc:creator>
      <dc:date>2023-03-16T08:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: DLT pipeline slow streaming (root cause needs to be identified)</title>
      <link>https://community.databricks.com/t5/data-engineering/dlt-pipeline-slow-streaming-root-cause-needs-to-be-identified/m-p/7649#M3456</link>
      <description>&lt;P&gt;@EDDatabricks EDDatabricks​&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the provided information, there could be several factors contributing to the slow streaming speed:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Data volume: The source table has over 63 billion records, and the partition of interest (p15) holds over 3.6 billion records. It's possible that the sheer volume of data being processed is slowing down the streaming.&lt;/LI&gt;&lt;LI&gt;Processing power: The node type used for the DLT pipelines is Standard_E8ds_v4, which has 8 vCPUs, 64 GiB memory, and 2,400 MB/s disk throughput. It's possible that the processing power is not sufficient to handle the volume of data being streamed.&lt;/LI&gt;&lt;LI&gt;Network bandwidth: The streaming data needs to be transmitted over the network to the destination tables. If the network bandwidth is limited, it could slow down the streaming speed.&lt;/LI&gt;&lt;LI&gt;Data filtering: The streaming query is filtering on one partitioned and one un-partitioned column at the same time. Depending on the complexity of the filtering logic, it could slow down the streaming speed.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;To improve the streaming performance, here are some suggestions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Increase the processing power of the DLT pipelines by using a more powerful node type, such as the Standard_E16ds_v4 or the Standard_E32ds_v4.&lt;/LI&gt;&lt;LI&gt;Increase the maxBytesPerTrigger option to allow more data to be processed in each trigger. However, increasing this option too much could cause memory issues, so it's important to monitor the memory usage.&lt;/LI&gt;&lt;LI&gt;Optimize the data filtering logic to make it more efficient. For example, consider partitioning the data differently or using a different column for filtering.&lt;/LI&gt;&lt;LI&gt;Check the network bandwidth and consider increasing it if it's limiting the streaming speed.&lt;/LI&gt;&lt;LI&gt;Consider using delta tables, which can improve the performance of streaming and querying large datasets.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2023 06:41:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dlt-pipeline-slow-streaming-root-cause-needs-to-be-identified/m-p/7649#M3456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-25T06:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: DLT pipeline slow streaming (root cause needs to be identified)</title>
      <link>https://community.databricks.com/t5/data-engineering/dlt-pipeline-slow-streaming-root-cause-needs-to-be-identified/m-p/7650#M3457</link>
      <description>&lt;P&gt;Hi @EDDatabricks EDDatabricks​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting your question in our community! We are happy to assist you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answers your question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will also help other community members who may have similar questions in the future. Thank you for your participation and let us know if you need any further assistance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2023 10:45:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dlt-pipeline-slow-streaming-root-cause-needs-to-be-identified/m-p/7650#M3457</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-25T10:45:07Z</dc:date>
    </item>
  </channel>
</rss>

