Friday, June 23, 2023

Azure Synapse Analytics - Can 2 different spark notebooks connect to a same spark pool and execute in parallel?

 

Azure synapse analytics – Spark

 

FAQ  1- Can 2 different spark notebooks connect to a same spark pool and execute in parallel?

 

Answer: Yes

I’m having workspace capacity of 80vCores

Taking an example, if you have created a spark pool of Node size: Small (4 vCore – 32 GB size) with 8 nodes.

Total pool size = 32vCores


You can set the number of nodes to be used for each notebook

Notebook 1: Total 3 nodes = (1 driver node and 2 executor nodes)

4vCores x 3 nodes = 12 vCores used



 

Notebook 2:

Total 4 nodes (1 driver node and 3 executor nodes)

4vCores x 4 = 16 vCores used

 

 




12 vCores + 16 vCores = 28 vCores

 

Total of pool size with 32vCores, 28vCores were utilized which is 87.5% utilization.

You can run 2 notebooks having a single Spark pool

 

FAQ 2: Can these share the variables or Temporary views created in their notebooks as they are attached to same pool?

Answer: No

 

Explanation:

Apache Spark for Synapse is designed as a job service and not a cluster model. It creates a separate Apache Spark application to run each notebook.

 



 

 

5 comments:

  1. Every time I come here, the outback menu with prices makes it easy to plan my meal. The selection is extensive, flavors authentic, and prices reasonable. Combined with attentive service and a welcoming atmosphere, it’s always a fantastic dining experience.

    ReplyDelete
    Replies
    1. Running multiple Spark notebooks in parallel on a shared Spark pool is an important consideration when designing efficient data engineering workflows. As this example demonstrates, understanding available vCores, driver and executor allocation, and overall resource utilization helps teams plan concurrent workloads more effectively. Proper resource management can improve throughput while reducing unnecessary infrastructure costs in cloud-based analytics environments.

      PySpark enables developers to process large datasets using distributed computing and build scalable data transformation pipelines. Learning how Spark executors, DataFrames, partitioning, and parallel execution work can help data engineers optimize workloads and make better use of available computing resources. Professionals looking to strengthen these skills can explore PySpark Online Training in India.

      Delete
    2. Data engineering involves more than writing Spark code; it also requires understanding data ingestion, transformation, orchestration, storage, and cloud-based processing architectures. Developing these skills helps professionals design reliable pipelines and manage data efficiently across analytics platforms. Those interested in expanding their knowledge of modern data workflows can explore Data Engineering Online Training in India.

      Delete
  2. I’m really impressed by this Raising Cane’s menu with prices page. The clean design and easy navigation make it stand out. It’s very helpful for checking meal options and prices quickly before placing an order online or visiting.

    ReplyDelete
  3. I really enjoy browsing the cookout menu with prices website. It’s clean, informative, and very easy to navigate, which makes checking menu options and prices a quick and pleasant experience every time.

    ReplyDelete

Global Certifications: