cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
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

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.