cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Is VACUUM performed distributedly utilizing my cluster resources

brickster_2018
Esteemed Contributor
 
1 ACCEPTED SOLUTION

Accepted Solutions

brickster_2018
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

brickster_2018
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

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