<?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 Help to understand the billing and spark capacity in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Help-to-understand-the-billing-and-spark-capacity/m-p/4028644#M4435</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a few question about pricing and managing spark settings in Fabric. Right now I use a free trial version, that's why I would like to have a better understanding for the costs before I commit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suppose a scenario - I have a simple pipeline which consists of a notebook activity and outlook-activity, which will mail me on-fail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to understand the billing part of my pipeline. The pipeline (and notebook) itself takes usually less that 1 minute to run:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;But I have noticed in the monitoring page, there is more than 20 minutes of idle time for the notebook activity:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So my questions isare:&lt;/P&gt;&lt;P&gt;- what will I be billed for - is it only that one minute of running time, or the whole 25 minutes (inclusive the idle time)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;- right now I don't use any programmatic way to terminate the spark capacity in the end of notebook. Is it a good practice to do so, under the condition that I will not be needing it for the rest of the day, and in such case how do I do it? Will it save my cost?&lt;/P&gt;&lt;P&gt;- let's say I would opt for the smallest capacity (F2) when I go live, will I have to modity any of the spark settings in my workspace, or can I leave them as they are by default:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance, I really tried to understand the topic by myself, but I couldn't figure out the answer on my own.&lt;/P&gt;</description>
    <pubDate>Sun, 07 Jul 2024 11:29:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-07-07T11:29:04Z</dc:date>
    <item>
      <title>Help to understand the billing and spark capacity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Help-to-understand-the-billing-and-spark-capacity/m-p/4028644#M4435</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a few question about pricing and managing spark settings in Fabric. Right now I use a free trial version, that's why I would like to have a better understanding for the costs before I commit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suppose a scenario - I have a simple pipeline which consists of a notebook activity and outlook-activity, which will mail me on-fail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to understand the billing part of my pipeline. The pipeline (and notebook) itself takes usually less that 1 minute to run:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;But I have noticed in the monitoring page, there is more than 20 minutes of idle time for the notebook activity:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So my questions isare:&lt;/P&gt;&lt;P&gt;- what will I be billed for - is it only that one minute of running time, or the whole 25 minutes (inclusive the idle time)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;- right now I don't use any programmatic way to terminate the spark capacity in the end of notebook. Is it a good practice to do so, under the condition that I will not be needing it for the rest of the day, and in such case how do I do it? Will it save my cost?&lt;/P&gt;&lt;P&gt;- let's say I would opt for the smallest capacity (F2) when I go live, will I have to modity any of the spark settings in my workspace, or can I leave them as they are by default:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance, I really tried to understand the topic by myself, but I couldn't figure out the answer on my own.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2024 11:29:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Help-to-understand-the-billing-and-spark-capacity/m-p/4028644#M4435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-07T11:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help to understand the billing and spark capacity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Help-to-understand-the-billing-and-spark-capacity/m-p/4029759#M4453</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question 1: Runtime vs. Idle Time Billing&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Billing is based on the total time the Spark cluster is running, including active processing time and idle time.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Question 2: Is it a good practice to terminate Spark capacity at the end of a notebook if I no longer need to use it that day?&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Yes, it is a good practice to terminate Spark Capacity if you no longer need to use it.&lt;BR /&gt;This can significantly reduce costs because billing is based on the total runtime of the Spark cluster.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Question 3: If I choose the smallest capacity (F2) when I go live, do I need to change the Spark settings in my workspace or can I leave them at the default settings?&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;When choosing the minimum capacity (F2), you can usually leave the default settings, but you will need to monitor and adjust them to optimize performance and cost.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 08:47:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Help-to-understand-the-billing-and-spark-capacity/m-p/4029759#M4453</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-08T08:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help to understand the billing and spark capacity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Help-to-understand-the-billing-and-spark-capacity/m-p/4032665#M4483</link>
      <description>&lt;P&gt;Thank you for the reply! I read and reread the documentation, and according to it I would not be billed for idle time of spark cluster in Microsoft Fabric (unlike in Synapse Analytics):&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/billing-capacity-management-for-spark" target="_blank"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/billing-capacity-management-for-spark&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I am mistaken and I would still be billed for idle time, how do I stop the capacity programatically from notebooks? According to the documentation to Synapse, I can use&amp;nbsp;&lt;STRONG&gt;mssparkutils.session.stop()&amp;nbsp;&lt;/STRONG&gt;to stop Spark in Synapse, but there is no such method in Fabric according to Fabric's documentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 13:51:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Help-to-understand-the-billing-and-spark-capacity/m-p/4032665#M4483</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-09T13:51:46Z</dc:date>
    </item>
  </channel>
</rss>

