cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

cluster termination

SHASHANK2
New Contributor III

Hello All,

when I am creating all purpose cluster I am getting an idle time of 3 days, my cluster is terminating after 3days, I want to make my cluster terminate in 60 min of idle time, i want to do it globally so that in future any cluster created by other members of my team also get 60 mins of idle time for cluster termination

Thanks and regards
@SHASHANK2 

3 REPLIES 3

szymon_dybczak
Esteemed Contributor III

Hi @SHASHANK2 ,

If you want to globally set termination time on any future cluster created you can use cluster policy. Refer to documentation:
Create and manage compute policies - Azure Databricks | Microsoft Learn
Compute policy reference - Azure Databricks | Microsoft Learn

{
   "autotermination_minutes" : {
    "type" : "unlimited",
    "defaultValue" : 4320,
    "isOptional" : true
  },
  "instance_pool_id": {
    "type": "forbidden",
    "hidden": true
  },
  "runtime_engine": {
    "type": "fixed",
    "value": "PHOTON",
    "hidden": true
  }
}

PSR100
New Contributor III

You can make use of the cluster policies available in the Compute page to create a new policy by including the below data:

"autotermination_minutes": { "type": "fixed", "value": 60, "hidden": true }

This policy can be applied to the existing clusters as well. This cluster policy must be applied by the users whenever they are creating a new cluster.

Rishabh_Tiwari
Databricks Employee
Databricks Employee

Hi @SHASHANK2 ,

Thank you for reaching out to our community! We're here to help you. 

To ensure we provide you with the best support, could you please take a moment to review the response and choose the one that best answers your question? Your feedback not only helps us assist you better but also benefits other community members who may have similar questions in the future.

If you found the answer helpful, consider giving it a kudo. If the response fully addresses your question, please mark it as the accepted solution. This will help us close the thread and ensure your question is resolved.

We appreciate your participation and are here to assist you further if you need it!

Thanks,

Rishabh

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now