Synpase Spark Pool -InvalidHttpRequestToLivy: Your Spark job requested 48 vcores. However, the workspace only has 2 vcores available out of quota of 50 vcores

Shivank.Agarwal 61 Reputation points
2021-06-23T14:37:11.113+00:00

Getting below error while starting the spark session in notebook.

Synpase Spark Pool -InvalidHttpRequestToLivy: Your Spark job requested 48 vcores. However, the workspace only has 2 vcores available out of quota of 50 vcores.

I have setup large type of server for spark pool while starting spark session in notebook it uses around 48 vcores as default which is restricting other users to start the session.

Is there any way to reduce the number of vcores for the active session? If not then what should be standard number of cores to be requested for increasing the quota?

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.
5,378 questions
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA 90,651 Reputation points Moderator
    2021-06-24T10:48:17.143+00:00

    Hello @Shivank.Agarwal ,

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

    Every Azure Synapse workspace comes with a default quota of vCores that can be used for Spark. The quota is split between the user quota and the dataflow quota so that neither usage pattern uses up all the vCores in the workspace. The quota is different depending on the type of your subscription but is symmetrical between user and dataflow. However if you request more vCores than are remaining in the workspace, then you will get the following error:

    Is there any way to reduce the number of vcores for the active session?

    No, when you define a Spark pool you are effectively defining a quota per user for that pool, if you run multiple notebooks or jobs or a mix of the 2 it is possible to exhaust the pool quota.

    If not then what should be standard number of cores to be requested for increasing the quota?

    It's based on your business requirement, you can pick any number of vcores.

    Important Logic: If you request for 50-100 vcores, the backend team will approve asap without any business requirement. If you are going for more than 100 vcores they may ask for the business requirement and based on the credit limit which you have they will approve the quota request.

    To resolve this issue, you need to request a capacity increase via the Azure portal by creating a new support ticket.

    Step1: Create a new support ticket and select issue type as Service and subscription limits (quotas) and quota type as Azure Synapse Analytics.

    108984-image.png

    Step2: In the Details tab, click on Enter details and choose quota type as Apache Spark (vCore) per workspace , select workspace, and request quota as shown below.

    108986-image.png

    Step3: Select support method and create the ticket.

    For more details, refer to Apache Spark in Azure Synapse Analytics Core Concepts.

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

    ---------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Peter Görtz 1 Reputation point
    2022-04-04T09:47:07.683+00:00

    Hi I ran into the same problem this morning. Suprisingly everything until the end of the last week. Is there a change in the archicteture?


Your answer

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