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: 

enable dynamic resource allocation on job cluster

Abser786
New Contributor II

I have a databricks job having two task those will run each alone or both parallel (will be controlled by if conditional task). When it runs parallel, one task is running for long time, but the same task finish quick when it runs alone. particularly the same one task is running for long when runs both in parallel, futher analysis identified that the specific task (databricks task) is assigned with FIFO pool in spark ui, other one is FAIR. 

What could be the cause of long running that one same task. Can we use Dynamic resource allocation in job cluster for this scenario or anything to do with schedular pool.

1 REPLY 1

User16502773013
Databricks Employee
Databricks Employee

Hello @Abser786,

There is a difference between Dynamic Resource Allocation and the Scheduler policy

Dynamic Resource Allocation means getting more compute as needed if current compute is totally consumed, this can be achieved by autoscaling feature/config in job cluster resources (details here)

On the other hand scheduler policy which seems to be different across tasks in the case you mentioned can be controlled and aligned, I think a best approach if autoscaling is not leveraged in this case a FAIR scheduler can be used in the two tasks, this can be done by setting spark.scheduler.mode to FAIR in the job or cluster configuration to ensure the tasks use the FAIR scheduling mode rather than the default FIFO 

Regards

 

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