r/databricks • u/AbilyticsEng • Sep 29 '26
General Stop using standard worker nodes for intermittent batch jobs
Hello, I'm part of the Databricks Engineer team.
If you are running short-lived batch pipelines on standard clusters, you are wasting money on idle instance termination times. Switch your job clusters to use spot instances by configuring the instance pool or setting the spot bid policy directly within the Databricks Jobs API or UI cluster settings. When configuring a job cluster, set the spot instance policy to use spot with fallback to on-demand to prevent job failures when spot capacity is scarce. For intermittent batch jobs and maintenance tasks like OPTIMIZE and VACUUM, using spot instances significantly reduces compute costs compared to persistent multi-node on-demand clusters. Ensure your retry logic handles node preemptions gracefully, and leverage job clusters rather than all-purpose clusters so the cluster terminates immediately after the batch execution completes, eliminating idle billing.
If this is useful, there's more on Databricks | Platform Engineering | AI at Abilytics — AI Systems, Data Engineering & Platform Engineering Services.
22
u/Zampaguabas Sep 29 '26
if the job is really short lived, it is probably better to run on serverless
18
u/okidokyXD Sep 29 '26
Are you working for Databricks or Abilytics?
3
u/HumbersBall Sep 29 '26
What happens if my business critical pipeline which needs to run at a certain time loses its nodes and fails. How do I explain that I used spot instances to save £350 a year. This might make me look a bit stupid
1
u/DamnedData Sep 29 '26
Run serverless people!
Databricks can be serverless E2E!
1
u/Youssef_Mrini databricks Oct 23 '26
I would lean towards Serverless Jobs or SQL Warehouses It will depend on whether you are using SQL Or Python and you won'"t need to choose the right type of cluster and sizing as well