long creation time for concurrent sessions

Kyle1245 440 Reputation points
2024-03-15T05:28:07.3533333+00:00

I'm noticing longer Spark session creation times (over 25 minutes) for notebooks running concurrently in my pipelines. These times seem to decrease as fewer notebooks are left to execute, reaching under a minute for the final one. Could the initial delay be due to the large number of Spark sessions being created simultaneously?

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
{count} votes

Answer accepted by question author
  1. Smaran Thoomu 32,525 Reputation points Microsoft External Staff Moderator
    2024-03-15T06:03:27+00:00

    Hi @HideyoshiAkaio

    Thanks for the question and using MS Q&A platform.

    Based on your description, it is possible that the longer Spark session creation times are due to the large number of Spark sessions being created simultaneously. To provide more relevant information, could you please share a few screenshots of the pipeline that has multiple notebooks? This will help us better understand your scenario and provide more specific guidance.

    In general, when you connect to a Spark pool, create a session, and run a job, a new Spark instance is created. As multiple users may have access to a single Spark pool, a new Spark instance is created for each user that connects. When you submit a second job, if there is capacity in the pool, the existing Spark instance also has capacity. Then, the existing instance will process the job. Otherwise, if capacity is available at the pool level, then a new Spark instance will be created.

    Here are a few example scenarios related to Synapse Spark pool allocation with respect to notebook job executions that might give you more clarity: Apache Spark in Azure Synapse Analytics Core Concepts

    247881-image.png

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.