cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Driver and worker node utalisation

pjv
New Contributor III

Hi all! 

Can anyone tell me if having a worker node(s) of the same type as my driver node make a difference performance-wise if I am running normal python code on a notebook as a job on this cluster? I am running mostly machine learning libraries such as torch/huggingface. Or is a single node compute cluster sufficient i.e. only a single driver/worker node? Thank you!

Kind regards,

pjv

6 REPLIES 6

Ravivarma
Databricks Employee
Databricks Employee

Hello @pjv ,

Greetings of the day!

The choice between having a worker node of the same type as your driver node or using a single-node compute cluster depends on the nature of your workload.

Suppose you are running normal Python code on a notebook as a job on this cluster, and your workload is not distributed (i.e., it doesn't require Spark's distributed computing capabilities). In that case, a single-node compute cluster might be sufficient. In a single-node compute cluster, the driver acts as both master and worker, with no worker nodes. This is intended for jobs that use small amounts of data or non-distributed workloads such as single-node machine learning libraries.
However, if your workload involves large-scale data processing or distributed machine learning tasks, having worker nodes of the same type as your driver node could improve performance. In a multi-node compute, worker nodes run the Spark executors and other services required for proper functioning compute. All the distributed processing happens on worker nodes.

I hope this clears your doubts!

Ravivarma
Databricks Employee
Databricks Employee

Hello @pjv 

Greetings!

The choice between having a worker node of the same type as your driver node or using a single-node compute cluster depends on the nature of your workload.

Suppose you are running normal Python code on a notebook as a job on this cluster, and your workload is not distributed (i.e., it doesn't require Spark's distributed computing capabilities). In that case, a single-node compute cluster might be sufficient. In a single-node compute cluster, the driver acts as both master and worker, with no worker nodes. This is intended for jobs that use small amounts of data or non-distributed workloads such as single-node machine learning libraries.

However, if your workload involves large-scale data processing or distributed machine learning tasks, having worker nodes of the same type as your driver node could improve performance. In a multi-node compute, worker nodes run the Spark executors and other services required for proper functioning compute. All the distributed processing happens on worker nodes.

I hope this answers your query!

Kind regards,

Ravi

Ravivarma
Databricks Employee
Databricks Employee

The choice between having a worker node of the same type as your driver node or using a single-node compute cluster depends on the nature of your workload.

Suppose you are running normal Python code on a notebook as a job on this cluster, and your workload is not distributed (i.e., it doesn't require Spark's distributed computing capabilities). In that case, a single-node compute cluster might be sufficient. In a single-node compute cluster, the driver acts as both master and worker, with no worker nodes. This is intended for jobs that use small amounts of data or non-distributed workloads such as single-node machine learning libraries.

However, if your workload involves large-scale data processing or distributed machine learning tasks, having worker nodes of the same type as your driver node could improve performance. In a multi-node compute, worker nodes run the Spark executors and other services required for proper functioning compute. All the distributed processing happens on worker nodes.

raphaelblg
Databricks Employee
Databricks Employee

Hello @pjv , 

Python code will run solely on the driver node, for this case only the driver compute matters. 

If you're submitting any pyspark transformations or actions through your code it will generate spark plans that will be later executed via the executors. 

Best regards,

Raphael Balogo
Sr. Technical Solutions Engineer
Databricks

pjv
New Contributor III

Thanks @raphaelblg ! That makes sense. 

SeanRay
New Contributor II

Yes, you are right, I agree with you.

And if you are searching for online writers then you can visit https://academized.com/professional-essay-writers here where you find them. I am also using that website link to find online writers.

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