<?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: photon is being used by a job or not in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/photon-is-being-used-by-a-job-or-not/m-p/107665#M2890</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/133313"&gt;@sruthianki&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P class=""&gt;I think you can’t check via API if Photon was used, but you can review the &lt;STRONG&gt;Spark UI&lt;/STRONG&gt; description and check Photon logs to confirm in which jobs it was utilized. However, I can suggest the following recommendations to help you decide whether enabling Photon is worthwhile&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Use Photon if:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;•You work with &lt;STRONG&gt;Delta Lake&lt;/STRONG&gt; and large volumes of data.&lt;BR /&gt;•You run &lt;STRONG&gt;SQL-intensive queries&lt;/STRONG&gt; (aggregations, joins, etc.).&lt;BR /&gt;•You want to &lt;STRONG&gt;optimize costs&lt;/STRONG&gt; in Databricks clusters.&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;BR /&gt;Photon is not ideal if:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;•You execute a lot of &lt;STRONG&gt;pure Python code&lt;/STRONG&gt;, as Photon does not accelerate operations outside of SQL/DataFrames.&lt;BR /&gt;•You use &lt;STRONG&gt;ML or AI in Spark MLlib&lt;/STRONG&gt;, because Photon does not optimize these processes.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2025 21:46:17 GMT</pubDate>
    <dc:creator>Isi</dc:creator>
    <dc:date>2025-01-29T21:46:17Z</dc:date>
    <item>
      <title>photon is being used by a job or not</title>
      <link>https://community.databricks.com/t5/administration-architecture/photon-is-being-used-by-a-job-or-not/m-p/107641#M2886</link>
      <description>&lt;P&gt;We have lots of customers using many job as well as interactive clusters with photon enabled which is drastically increasing the cost .&lt;/P&gt;&lt;P&gt;We would like to know if there is any table in system or any details that we can get through API that lists if the jobs running are actually using photon or it is getting ignored for this job which is costing us a lot for no use&lt;/P&gt;&lt;P&gt;Please let me know if there is a common point to check which jobs are actually enabled with photon and are not using it in real time run&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 16:51:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/photon-is-being-used-by-a-job-or-not/m-p/107641#M2886</guid>
      <dc:creator>sruthianki</dc:creator>
      <dc:date>2025-01-29T16:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: photon is being used by a job or not</title>
      <link>https://community.databricks.com/t5/administration-architecture/photon-is-being-used-by-a-job-or-not/m-p/107646#M2888</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/73456"&gt;@GSRuh&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If your cluster has enabled photon you will be charged for it regardless if it benefits your workload or not.&lt;/P&gt;&lt;P&gt;You can find which clusters using photon by checking system table `usage`, searching for the records where `sku_name` contains 'PHOTON' or where `&lt;SPAN&gt;product_features&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;is_photon` equals `true`. You can use query below to find all your clusters which are using Photon.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;select distinct c.account_id, c.workspace_id, c.cluster_id, c.cluster_name, u.sku_name, c.create_time
from system.billing.usage u
join system.compute.clusters c
  on u.account_id = c.account_id
  and u.workspace_id = c.workspace_id
  and u.usage_metadata.cluster_id = c.cluster_id
where u.sku_name like '%PHOTON%'
or u.product_features.is_photon = true;&lt;/LI-CODE&gt;&lt;P data-unlink="true"&gt;You can find here how enable system tables for &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/admin/system-tables/#enable" target="_self"&gt;Azure&lt;/A&gt;, &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/admin/system-tables/#enable" target="_self"&gt;AWS&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 17:29:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/photon-is-being-used-by-a-job-or-not/m-p/107646#M2888</guid>
      <dc:creator>rasskazovp</dc:creator>
      <dc:date>2025-01-29T17:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: photon is being used by a job or not</title>
      <link>https://community.databricks.com/t5/administration-architecture/photon-is-being-used-by-a-job-or-not/m-p/107647#M2889</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/56946"&gt;@rasskazovp&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I can see the list of clusters enabled with Photon in the usage table. However, it would be really helpful if we could determine whether Photon is actually being used by a job during its run. This information would allow us to save costs and utilize resources more effectively.&lt;/P&gt;&lt;P&gt;It would be beneficial to have a place where we can see if Photon is being used by a job or if it is not supported. Additionally, having a list of all jobs where Photon is enabled but not supported would be very useful.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;please let us know if we can achieve this through API&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 17:42:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/photon-is-being-used-by-a-job-or-not/m-p/107647#M2889</guid>
      <dc:creator>sruthianki</dc:creator>
      <dc:date>2025-01-29T17:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: photon is being used by a job or not</title>
      <link>https://community.databricks.com/t5/administration-architecture/photon-is-being-used-by-a-job-or-not/m-p/107665#M2890</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/133313"&gt;@sruthianki&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P class=""&gt;I think you can’t check via API if Photon was used, but you can review the &lt;STRONG&gt;Spark UI&lt;/STRONG&gt; description and check Photon logs to confirm in which jobs it was utilized. However, I can suggest the following recommendations to help you decide whether enabling Photon is worthwhile&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Use Photon if:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;•You work with &lt;STRONG&gt;Delta Lake&lt;/STRONG&gt; and large volumes of data.&lt;BR /&gt;•You run &lt;STRONG&gt;SQL-intensive queries&lt;/STRONG&gt; (aggregations, joins, etc.).&lt;BR /&gt;•You want to &lt;STRONG&gt;optimize costs&lt;/STRONG&gt; in Databricks clusters.&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;BR /&gt;Photon is not ideal if:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;•You execute a lot of &lt;STRONG&gt;pure Python code&lt;/STRONG&gt;, as Photon does not accelerate operations outside of SQL/DataFrames.&lt;BR /&gt;•You use &lt;STRONG&gt;ML or AI in Spark MLlib&lt;/STRONG&gt;, because Photon does not optimize these processes.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 21:46:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/photon-is-being-used-by-a-job-or-not/m-p/107665#M2890</guid>
      <dc:creator>Isi</dc:creator>
      <dc:date>2025-01-29T21:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: photon is being used by a job or not</title>
      <link>https://community.databricks.com/t5/administration-architecture/photon-is-being-used-by-a-job-or-not/m-p/107708#M2892</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/133313"&gt;@sruthianki&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;If you want to check if the job is really using photon or not you can check the SQL query plan in spark UI for its stages and the metrics will highlighted in yellow colour.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 07:32:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/photon-is-being-used-by-a-job-or-not/m-p/107708#M2892</guid>
      <dc:creator>Sidhant07</dc:creator>
      <dc:date>2025-01-30T07:32:14Z</dc:date>
    </item>
  </channel>
</rss>

