cancel
Showing results for 
Search instead for 
Did you mean: 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
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
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

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group