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

Is VACUUM performed distributedly utilizing my cluster resources

User16869510359
Esteemed Contributor
 
1 ACCEPTED SOLUTION

Accepted Solutions

User16869510359
Esteemed Contributor

At a high-level VACUUM operation on a Delta table has 2 steps. 

1) Identifying the stale files based on the VACUUM command triggered. 

2) Deleting the files identified in Step 1

The #1 is performed by triggering a Spark job hence utilizes the resource on the cluster. The next step of deleting the files is performed by the Spark driver. Based on the Storage system the speed of deletion could vary. As Spark resources are required for the first step and not utilized in the next step, it's highly recommended to use an auto-scaling cluster with a minimum node as 1. This will help to scale down the cluster after the first step is complete

View solution in original post

1 REPLY 1

User16869510359
Esteemed Contributor

At a high-level VACUUM operation on a Delta table has 2 steps. 

1) Identifying the stale files based on the VACUUM command triggered. 

2) Deleting the files identified in Step 1

The #1 is performed by triggering a Spark job hence utilizes the resource on the cluster. The next step of deleting the files is performed by the Spark driver. Based on the Storage system the speed of deletion could vary. As Spark resources are required for the first step and not utilized in the next step, it's highly recommended to use an auto-scaling cluster with a minimum node as 1. This will help to scale down the cluster after the first step is complete

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.