<?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 Specifying a serverless cluster for the dev environment in databricks.yml in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/specifying-a-serverless-cluster-for-the-dev-environment-in/m-p/128179#M48169</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hey, I'm trying to find a way to specify a serverless cluster for the dev environment and job clusters for the test and prod environments in databricks.yml.&lt;/P&gt;&lt;P&gt;The problem is that it seems impossible - I’ve tried many approaches, but the only outcomes I can achieve are either:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A.&lt;/STRONG&gt; I don’t specify any cluster, and it runs on Serverless for all three environments.&lt;BR /&gt;&lt;STRONG&gt;B.&lt;/STRONG&gt; I specify a cluster, but then I can’t explicitly set it to be serverless for dev (it must be any of predefined job clusters).&lt;/P&gt;&lt;P&gt;I’ve searched everywhere but haven’t found any information on how to do this.&lt;/P&gt;&lt;P&gt;Has anyone found a way to make this work?&lt;/P&gt;&lt;P&gt;Here’s the code I &lt;EM&gt;wish&lt;/EM&gt; would work (or something similar), so you know what I mean:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#databricks.yml file

bundle:
  name: medallion_architecture

include:
  - resources/*.yml

variables:
  catalog:
    type: string

targets:
  dev:
    mode: development
    default: true
    workspace:
      host: adb-xxxxxxxxxxxxxx.azuredatabricks.net
    variables:
      catalog: "dev"
      cluster_config: serverless # (this doesn't work)

  test:
    mode: production
    workspace:
      host: adb-xxxxxxxxxxxxxx.azuredatabricks.net
      root_path: /Shared/.bundle/${bundle.target}/${bundle.name}
    variables:
      catalog: "test"
      cluster_config:
        spark_version: "15.4.x-scala2.12"
        node_type_id: "Standard_D8s_v3"
        autoscale:
          min_workers: 2
          max_workers: 6
        azure_attributes:
          availability: "ON_DEMAND_AZURE"


  prod:
    mode: production
    workspace:
      host: adb-xxxxxxxxxxxxxx.azuredatabricks.net
      root_path: /Shared/.bundle/${bundle.target}/${bundle.name}
    run_as:
      user_name: ${workspace.current_user.userName}
    variables:
      catalog: "prod"
      cluster_config:
        spark_version: "15.4.x-scala2.12"
        node_type_id: "Standard_D8s_v3"
        autoscale:
          min_workers: 2
          max_workers: 10
        azure_attributes:
          availability: "ON_DEMAND_AZURE"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Aug 2025 08:45:20 GMT</pubDate>
    <dc:creator>lukasz_wybieral</dc:creator>
    <dc:date>2025-08-12T08:45:20Z</dc:date>
    <item>
      <title>Specifying a serverless cluster for the dev environment in databricks.yml</title>
      <link>https://community.databricks.com/t5/data-engineering/specifying-a-serverless-cluster-for-the-dev-environment-in/m-p/128179#M48169</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hey, I'm trying to find a way to specify a serverless cluster for the dev environment and job clusters for the test and prod environments in databricks.yml.&lt;/P&gt;&lt;P&gt;The problem is that it seems impossible - I’ve tried many approaches, but the only outcomes I can achieve are either:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A.&lt;/STRONG&gt; I don’t specify any cluster, and it runs on Serverless for all three environments.&lt;BR /&gt;&lt;STRONG&gt;B.&lt;/STRONG&gt; I specify a cluster, but then I can’t explicitly set it to be serverless for dev (it must be any of predefined job clusters).&lt;/P&gt;&lt;P&gt;I’ve searched everywhere but haven’t found any information on how to do this.&lt;/P&gt;&lt;P&gt;Has anyone found a way to make this work?&lt;/P&gt;&lt;P&gt;Here’s the code I &lt;EM&gt;wish&lt;/EM&gt; would work (or something similar), so you know what I mean:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#databricks.yml file

bundle:
  name: medallion_architecture

include:
  - resources/*.yml

variables:
  catalog:
    type: string

targets:
  dev:
    mode: development
    default: true
    workspace:
      host: adb-xxxxxxxxxxxxxx.azuredatabricks.net
    variables:
      catalog: "dev"
      cluster_config: serverless # (this doesn't work)

  test:
    mode: production
    workspace:
      host: adb-xxxxxxxxxxxxxx.azuredatabricks.net
      root_path: /Shared/.bundle/${bundle.target}/${bundle.name}
    variables:
      catalog: "test"
      cluster_config:
        spark_version: "15.4.x-scala2.12"
        node_type_id: "Standard_D8s_v3"
        autoscale:
          min_workers: 2
          max_workers: 6
        azure_attributes:
          availability: "ON_DEMAND_AZURE"


  prod:
    mode: production
    workspace:
      host: adb-xxxxxxxxxxxxxx.azuredatabricks.net
      root_path: /Shared/.bundle/${bundle.target}/${bundle.name}
    run_as:
      user_name: ${workspace.current_user.userName}
    variables:
      catalog: "prod"
      cluster_config:
        spark_version: "15.4.x-scala2.12"
        node_type_id: "Standard_D8s_v3"
        autoscale:
          min_workers: 2
          max_workers: 10
        azure_attributes:
          availability: "ON_DEMAND_AZURE"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 08:45:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/specifying-a-serverless-cluster-for-the-dev-environment-in/m-p/128179#M48169</guid>
      <dc:creator>lukasz_wybieral</dc:creator>
      <dc:date>2025-08-12T08:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying a serverless cluster for the dev environment in databricks.yml</title>
      <link>https://community.databricks.com/t5/data-engineering/specifying-a-serverless-cluster-for-the-dev-environment-in/m-p/128190#M48171</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/155853"&gt;@lukasz_wybieral&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It is not necessary to specify the cluster_config, if you would like to use serverless. Be default, Databricks picks the Serverless cluster if you don't specify the cluster configuration. Attaching below databricks.yml for your reference:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nivethan_Venkat_0-1754990653880.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19010i15820D1B94284650/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nivethan_Venkat_0-1754990653880.png" alt="Nivethan_Venkat_0-1754990653880.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This is my how my job looks like if the cluster configuration is not specified:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nivethan_Venkat_1-1754990723131.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19011i07EF247567181CFB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nivethan_Venkat_1-1754990723131.png" alt="Nivethan_Venkat_1-1754990723131.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But it is good to refer here, for which jobs Serverless computes can be configured: &lt;A href="https://docs.databricks.com/aws/en/jobs/compute" target="_blank"&gt;https://docs.databricks.com/aws/en/jobs/compute&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Nivethan V&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 09:27:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/specifying-a-serverless-cluster-for-the-dev-environment-in/m-p/128190#M48171</guid>
      <dc:creator>Nivethan_Venkat</dc:creator>
      <dc:date>2025-08-12T09:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying a serverless cluster for the dev environment in databricks.yml</title>
      <link>https://community.databricks.com/t5/data-engineering/specifying-a-serverless-cluster-for-the-dev-environment-in/m-p/128198#M48174</link>
      <description>&lt;P&gt;Hey Nivethan, thanks, I’m aware of that, but it doesn’t solve my problem.&lt;/P&gt;&lt;P&gt;I want to be able to define different clusters for each environment, specifically:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Serverless for dev&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Medium job cluster for test&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Large job cluster for prod&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Currently, it’s either:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Define job clusters (expect for Serverless) for all environments, or&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Don’t define any at all (and it defaults to Serverless to all targets).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It’s not a huge issue, but it’s annoying.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 10:30:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/specifying-a-serverless-cluster-for-the-dev-environment-in/m-p/128198#M48174</guid>
      <dc:creator>lukasz_wybieral</dc:creator>
      <dc:date>2025-08-12T10:30:27Z</dc:date>
    </item>
  </channel>
</rss>

