cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Auto termination for clusters, jobs, and delta live tables does not terminate clusters on GCP.

638555
New Contributor III

Hello,

I am new to Databricks, and I have been trying to understand how auto termination works, but I am unsure if it is a problem based on my configuration or something else. The problem is the same in all cases, the cluster on GCP created by Databricks does not auto-terminate, but on the Databricks side, it looks different in each case.

1. In the case of clusters created through the compute interface, I have a single-node cluster (tried multi-node too) that is set to terminate after 2 hours. I spin it up and attach some notebook or a job to it. I wait for the job to finish and after that, I let it idle for more than 2 hours. Although the cluster on Databricks shows that it is terminated, when I go to GCP I still have a rogue cluster running that was created by Databricks. I have no pools, policy, or anything configured and Databricks does not show anything running in All-purpose compute or job compute.

2. In the case of Jobs the behavior is the same as above if I set the cluster to run on my running All-Purpose cluster.

3. In the case of delta tables, a Job compute is automatically created, and after the delta tables operation finishes, I let it idle for more than 2 hours (Development environment) and the Job cluster is still running. In this case, I can see it running on Databricks and GCP as well. I tried setting pipelines.clusterShutdown.delay too, but it has no effect.

In both cases, the cluster is running until I delete it manually from GCP. How can I ensure that my cluster gets shut down on GCP properly so I don't get charged?

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions

LandanG
Honored Contributor
Honored Contributor

Hi @Tilemachos Charalampous​ ,

The compute resources in your GCP account might not be the Spark clusters, rather the GKE cluster that Databricks spins up for the Databricks architecture in your account.

The note in the blue highlight in docs here https://docs.gcp.databricks.com/administration-guide/account-settings-gcp/workspaces.html#create-and... should go into it in more detail.

If no clusters are running but you still see a Databricks-created GKE cluster, it would most likely be that.

View solution in original post

4 REPLIES 4

638555
New Contributor III

Digging more into this, I realized that even if I terminate the cluster on GCP, it gets respawned shortly after automatically.

All clusters on Databricks are terminated, and no job clusters or pools appear either.

So I have a rogue GCP Databricks-created cluster running constantly.

LandanG
Honored Contributor
Honored Contributor

Hi @Tilemachos Charalampous​ ,

The compute resources in your GCP account might not be the Spark clusters, rather the GKE cluster that Databricks spins up for the Databricks architecture in your account.

The note in the blue highlight in docs here https://docs.gcp.databricks.com/administration-guide/account-settings-gcp/workspaces.html#create-and... should go into it in more detail.

If no clusters are running but you still see a Databricks-created GKE cluster, it would most likely be that.

638555
New Contributor III

Hi @Landan George​ thanks for the answer. This looks correct. I probably missed it while going over the documentation. Thanks for helping.

Kaniz
Community Manager
Community Manager

Hi @Tilemachos Charalampous​ , We haven’t heard from you since the last response from @Landan George​, and I was checking back to see if his suggestions helped you.

Or else, If you have any solution, please share it with the community, as it can be helpful to others.

Also, Please don't forget to click on the "Select As Best" button whenever the information provided helps resolve your question.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.