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

Is it recommended to turn on Spark speculative execution permanently

User16869510359
Esteemed Contributor

I had a job where the last step will get stuck forever. Turning on spark speculative execution did magic and resolved the issue.

Is it safe to turn on Spark speculative execution permanently.

1 ACCEPTED SOLUTION

Accepted Solutions

User16869510359
Esteemed Contributor

It's not recommended to turn of Spark speculative execution permanently. For jobs where tasks are running slow or stuck because of transient network or storage issues, speculative execution can be very handy. However, it suppresses the actual problem and performs a retry of the task.

Speculative execution should be treated as a temporary workaround until finding the root cause of why the task or job is stuck.

Speculative execution can cause unnecessary task retries and can degrade the performance of jobs/stages where there is no true task stuck scenarios.

View solution in original post

1 REPLY 1

User16869510359
Esteemed Contributor

It's not recommended to turn of Spark speculative execution permanently. For jobs where tasks are running slow or stuck because of transient network or storage issues, speculative execution can be very handy. However, it suppresses the actual problem and performs a retry of the task.

Speculative execution should be treated as a temporary workaround until finding the root cause of why the task or job is stuck.

Speculative execution can cause unnecessary task retries and can degrade the performance of jobs/stages where there is no true task stuck scenarios.

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.