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:ย 

Job cluster vs All purpose cluster

AmanSehgal
Honored Contributor III

Environment: Azure

I've a workflow that takes approximately a minute to execute and I want to run the job every 2 minutes..

All purpose cluster:

On attaching all purpose cluster to the job, it takes approx. 60 seconds to execute.

Using job cluster:

On attaching job cluster to the job, it takes extra 30-45 seconds in `Pending` state, waiting for resource allocation in each job run.

What can be done to avoid job cluster spend that extra time to allocate resources?

The reason I want to use job cluster is because it costs $0.15/DBU and all purpose compute costs $0.40/DBU.

6 REPLIES 6

NhatHoang
Valued Contributor II

Hi,

โ€‹

I am facing the same issue and I choose All Purpose cluster.

In my case, I need some jobs to run every 10 minutes.

- With All Purpose cluster, it take 1 minute

- With Job cluster, it takes 5 minutes (4 minutes for setting up + 1 minutes to perform task)

After compare price, I choose All Purpose. When this cluster is idle, I can use it for development or for other Notebook Dashboard.

โ€‹

๐Ÿ™‚

AmanSehgal
Honored Contributor III

@Hubert Dudekโ€‹ have you faced this challenge?

@Kaniz Fatmaโ€‹ could you please help us resolve this with an SME. Thank you

Ajay-Pandey
Esteemed Contributor III

Have you raised a request to databricks for this ?

Ajay Kumar Pandey

Priyag1
Honored Contributor II

Not neccesary

Aviral-Bhardwaj
Esteemed Contributor III

Hey @Aman Sehgalโ€‹ 

This is a normal scenario all purpose cluster will complete your task in mere minutes of time but the job cluster has to setup itself up in the first place, but if you really want to reduce time, you can use the pool cluster option there.

Thanks

Aviral Bhardwaj

AviralBhardwaj

Priyag1
Honored Contributor II

Thanks for sharing

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