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

What happens if a spot instance worker is lost in the middle of a query?

User16826992666
Valued Contributor

Does the query have to be re-run from the start, or can it continue? Trying to evaluate what risk there is by using spot instances for production jobs

1 REPLY 1

User16826992666
Valued Contributor

If a spot instance is reclaimed in the middle of a job, then spark will treat it as a lost worker. The spark engine will automatically retry the tasks from the lost worker on other available workers.

So the query does not have to start over if individual workers are lost. However, if there was temporary data on the node that was lost it will have to be recomputed, which could lead to longer runtimes. For that reason it is only recommended to use spot instances when variation in job runtimes is acceptable.

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.