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: 

What’s the best instance type to run OPTIMIZE (bin-packing and Z-Ordering) on?

User16790091296
Contributor II

I've been doing some research on optimizing data storage while implementing delta, however, I'm not sure which instance type would be best for this.

1 REPLY 1

sajith_appukutt
Honored Contributor II

OPTIMIZE as you alluded has two operations , Bin-packing and multi-dimensional clustering ( zorder)

  • Bin-packing optimization is idempotent, meaning that if it is run twice on the same dataset, the second run has no effect
  • Z-Ordering is not idempotent but aims to be an incremental operation. if no new data was added to a partition that was just Z-Ordered, another Z-Ordering of that partition will not have any effect.

With that in context, you'd want to check if your optimize job is CPU bound or memory bound. Anecdotal evidence shows that ESv3 series in Azure and r5a/r5d instances in AWS gives good cpu/mem ratio and is good for optimize - but really YMMV

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