<?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 Spot instances usage in Azure Databricks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/spot-instances-usage-in-azure-databricks/m-p/108757#M43139</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;as per the below article -&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.databricks.com/t5/technical-blog/optimize-costs-for-your-data-and-ai-workloads-with-azure-and-aws/ba-p/66241" target="_blank"&gt;https://community.databricks.com/t5/technical-blog/optimize-costs-for-your-data-and-ai-workloads-with-azure-and-aws/ba-p/66241&lt;/A&gt;&lt;/P&gt;&lt;P&gt;1. it is possible to choose the number of spot instances using 'availability' parameter. But, I see from the documentation it is a string with pre-defined values&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;azure_attributes.availability&lt;/TD&gt;&lt;TD&gt;string&lt;/TD&gt;&lt;TD&gt;Controls the compute uses on-demand or spot instances (ON_DEMAND_AZURE&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;SPOT_WITH_FALLBACK_AZURE).&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;2. Now, regarding, '&lt;SPAN&gt;spot_bid_max_price' parameter - documentation says, ''You can also set this to -1 (the default), which specifies that the instance cannot be evicted on the basis of price. The price for the instance will be the current price for spot instances or the price for a standard instance.''&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, this means as the bid price changes, Azure Databricks will try to match with the price and therefore the word 'current price' is used above? Also,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'standard instance' refers to on-demand instance?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Appreciate if someone can shed some light on this.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Feb 2025 11:21:13 GMT</pubDate>
    <dc:creator>noorbasha534</dc:creator>
    <dc:date>2025-02-04T11:21:13Z</dc:date>
    <item>
      <title>Spot instances usage in Azure Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/spot-instances-usage-in-azure-databricks/m-p/108757#M43139</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;as per the below article -&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.databricks.com/t5/technical-blog/optimize-costs-for-your-data-and-ai-workloads-with-azure-and-aws/ba-p/66241" target="_blank"&gt;https://community.databricks.com/t5/technical-blog/optimize-costs-for-your-data-and-ai-workloads-with-azure-and-aws/ba-p/66241&lt;/A&gt;&lt;/P&gt;&lt;P&gt;1. it is possible to choose the number of spot instances using 'availability' parameter. But, I see from the documentation it is a string with pre-defined values&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;azure_attributes.availability&lt;/TD&gt;&lt;TD&gt;string&lt;/TD&gt;&lt;TD&gt;Controls the compute uses on-demand or spot instances (ON_DEMAND_AZURE&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;SPOT_WITH_FALLBACK_AZURE).&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;2. Now, regarding, '&lt;SPAN&gt;spot_bid_max_price' parameter - documentation says, ''You can also set this to -1 (the default), which specifies that the instance cannot be evicted on the basis of price. The price for the instance will be the current price for spot instances or the price for a standard instance.''&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, this means as the bid price changes, Azure Databricks will try to match with the price and therefore the word 'current price' is used above? Also,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'standard instance' refers to on-demand instance?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Appreciate if someone can shed some light on this.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 11:21:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spot-instances-usage-in-azure-databricks/m-p/108757#M43139</guid>
      <dc:creator>noorbasha534</dc:creator>
      <dc:date>2025-02-04T11:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Spot instances usage in Azure Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/spot-instances-usage-in-azure-databricks/m-p/108770#M43141</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/124839"&gt;@noorbasha534&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for your question!&lt;/P&gt;
&lt;H4 class="_1jeaq5e0 _1t7bu9h9 heading4"&gt;1. 'availability' Parameter:&lt;/H4&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;The 'availability' parameter in Azure Databricks controls whether the compute uses on-demand or spot instances. The values for this parameter are:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;ON_DEMAND_AZURE&lt;/CODE&gt;: This value indicates that the compute will use on-demand instances.&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;SPOT_WITH_FALLBACK_AZURE&lt;/CODE&gt;: This value indicates that the compute will use spot instances with a fallback to on-demand instances if spot instances are not available.&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4 class="_1jeaq5e0 _1t7bu9h9 heading4"&gt;2. 'spot_bid_max_price' Parameter:&lt;/H4&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;The 'spot_bid_max_price' parameter allows you to set the maximum price for spot bids. The documentation states that you can set this to &lt;CODE&gt;-1&lt;/CODE&gt; (the default), which means that the instance cannot be evicted based on price. The price for the instance will be the current price for spot instances or the price for a standard instance. This implies that Azure Databricks will try to match the bid price with the current spot price, and if the spot price exceeds the bid price, the instance will fall back to the price of a standard (on-demand) instance.&lt;/P&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;In summary, the 'current price' refers to the fluctuating price of spot instances, and 'standard instance' refers to on-demand instances.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 12:30:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spot-instances-usage-in-azure-databricks/m-p/108770#M43141</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-02-04T12:30:51Z</dc:date>
    </item>
  </channel>
</rss>

