<?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: Understanding Serverless Compute Sharing Across Notebooks in Databricks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/understanding-serverless-compute-sharing-across-notebooks-in/m-p/120870#M46265</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/34815"&gt;@Louis_Frolio&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;I am using serverless compute for running a hash validation script across a large number of tables. While serverless is supposed to automatically adjust resources based on workload scaling up during peak and scaling down during idle periods I am noticing that the driver gets detached automatically, especially when processing large tables.&lt;/P&gt;&lt;P&gt;1. What is the reason the driver detaches automatically in serverless compute, especially when processing large tables?&lt;BR /&gt;2. What is the solution or best practice to prevent this issue and ensure stable processing?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 04:11:59 GMT</pubDate>
    <dc:creator>vidya_kothavale</dc:creator>
    <dc:date>2025-06-04T04:11:59Z</dc:date>
    <item>
      <title>Understanding Serverless Compute Sharing Across Notebooks in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/understanding-serverless-compute-sharing-across-notebooks-in/m-p/120778#M46247</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;I am using Databricks Serverless compute in notebooks. When I create multiple notebooks and choose Serverless as the compute, I noticed that I can select the same serverless cluster for all of them.&lt;/P&gt;&lt;P&gt;This brings up a few questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Is this serverless compute shared across all notebooks (and users), or does each notebook/user get a separate compute instance behind the scenes?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;If it is shared, is there a max limit on CPU cores or concurrency for the serverless compute engine?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;How does Databricks handle auto-scaling or resource isolation when multiple users are running queries using the same serverless compute?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks in advance for the clarification!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 04:33:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/understanding-serverless-compute-sharing-across-notebooks-in/m-p/120778#M46247</guid>
      <dc:creator>Akshay_Petkar</dc:creator>
      <dc:date>2025-06-03T04:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding Serverless Compute Sharing Across Notebooks in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/understanding-serverless-compute-sharing-across-notebooks-in/m-p/120853#M46260</link>
      <description>&lt;DIV class="paragraph"&gt;Databricks Serverless compute operates with shared infrastructure, enabling multiple notebooks and users to utilize the same serverless cluster while maintaining isolation. This is achieved through features like client, driver, and executor isolation, ensuring workload security and preventing interference among users.&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;Key characteristics and behaviors include:&lt;/DIV&gt;
&lt;OL start="1"&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Shared Compute for Users and Notebooks:&lt;/STRONG&gt; Serverless compute allows for secure sharing across users and notebooks on the same cluster while leveraging identity management and sandboxing techniques to ensure isolation.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Scaling and Concurrency:&lt;/STRONG&gt;
&lt;UL&gt;
&lt;LI&gt;By default, there is no concurrency limit set for serverless environments, allowing high-concurrency operations. However, resource caps and autoscaling policies can be applied to control costs and optimize performance.&lt;/LI&gt;
&lt;LI&gt;Horizontal autoscaling dynamically adjusts resources based on workload requirements, transitioning quickly between scaling up during peak loads and scaling down during low usage to conserve resources and minimize idle costs.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Resource Limits and Auto-Scaling:&lt;/STRONG&gt;
&lt;UL&gt;
&lt;LI&gt;Serverless compute employs an advanced autoscaler that cannot be disabled. It scales resources intelligently by leveraging workload patterns and pre-provisioning warm pools of instances for fast startup times. However, per-hour cost scaling limits are imposed to avoid runaway expenses, and higher resource caps can be requested as needed.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Resource Isolation:&lt;/STRONG&gt; Even in shared environments, workloads enjoy resource isolation. This ensures independent execution of tasks without resource bottlenecking, particularly valuable for multi-task jobs or streaming pipelines, enhancing both performance and cost-efficiency.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Billing:&lt;/STRONG&gt; Users are billed for actual workload activity rather than idle resources. Databricks manages all infrastructure intricacies—including instance type selection and scaling—resulting in simpler operations for users.&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV class="paragraph"&gt;These features together ensure that Databricks Serverless compute is cost-efficient, scalable, and secure for multi-user and multi-notebook usage, while providing robust resource handling through intelligent autoscaling and workload isolation.&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;Hope this helps, Lou.&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Jun 2025 19:55:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/understanding-serverless-compute-sharing-across-notebooks-in/m-p/120853#M46260</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-06-03T19:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding Serverless Compute Sharing Across Notebooks in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/understanding-serverless-compute-sharing-across-notebooks-in/m-p/120870#M46265</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/34815"&gt;@Louis_Frolio&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;I am using serverless compute for running a hash validation script across a large number of tables. While serverless is supposed to automatically adjust resources based on workload scaling up during peak and scaling down during idle periods I am noticing that the driver gets detached automatically, especially when processing large tables.&lt;/P&gt;&lt;P&gt;1. What is the reason the driver detaches automatically in serverless compute, especially when processing large tables?&lt;BR /&gt;2. What is the solution or best practice to prevent this issue and ensure stable processing?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 04:11:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/understanding-serverless-compute-sharing-across-notebooks-in/m-p/120870#M46265</guid>
      <dc:creator>vidya_kothavale</dc:creator>
      <dc:date>2025-06-04T04:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding Serverless Compute Sharing Across Notebooks in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/understanding-serverless-compute-sharing-across-notebooks-in/m-p/120906#M46273</link>
      <description>&lt;P class="p1"&gt;Could you clarify what you mean by &lt;I&gt;“The driver detaches”&lt;/I&gt;? If the driver detaches, the cluster would typically fail. Are you using Spark for processing, or is this a pure Python workload? If you’re using pure Python, only the driver node is utilized, since Python doesn’t support distributed execution in this context.&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;Please provide more details and any demonstrable evidence that the driver is being detached.&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;Thanks,&lt;/P&gt;
&lt;P class="p1"&gt;Louis&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 11:19:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/understanding-serverless-compute-sharing-across-notebooks-in/m-p/120906#M46273</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-06-04T11:19:14Z</dc:date>
    </item>
  </channel>
</rss>

