Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
spencer_sa
Continued Contributor
Continued Contributor

[TooManyRequestsForCapacity] issue with multiple notebook users on an F128 Fabric instance

We're getting the following issue with 16 concurrent users trying to either "Load into tables" in a Fabric lakehouse or executing PySpark/SparkSQL notebooks.

InvalidHttpRequestToLivy: [TooManyRequestsForCapacity] This spark job can't be run because you have hit a spark compute or API rate limit. To run this spark job, cancel an active Spark job through the Monitoring hub, choose a larger capacity SKU, or try again later. HTTP status code: 430 {Learn more} HTTP status code: 430.

Of the 16 users, around 6 are having this error appear and preventing them from running notebooks/load jobs.  What am I missing?  I've done the following to no avail.

We are operating an F128 capacity instance and have a workspace per pair of users (so 8 workspaces in total)
I've tried creating new Spark pools (Large) for 3 of the workspaces with issues.
I've tried changing the cores available for each workspace (from 4 up to 16)
I've tried to get individuals to close down multiple notebooks in case they had them open
There are never more than 10 items "Progressing" in the Monitoring Hub.

5 REPLIES 5
12angrymentiger
Advocate III
Advocate III

We fixed the concurrent notebook issue by using the runMultiple method like the example below.

You create a DAG with the order and dependencies when calling the notebooks. They all end up using the same spark compute and environment and the concurrency issue is mitigated in the backend.

 

mssparkutils.notebook.runMultiple(DAG, {"p1":True, "p2":"spectral", "p3":11})

 

 

runMultiple , on the other hand, allows you to create a Direct Acyclic Graph (DAG) of notebooks to execute notebooks in parallel and in specified order, similar to a pipeline run except in a notebook. The advantages here are that you can:

  • programmatically define the execution order

  • run notebooks in parallel or in squence

  • define dependencies between notebook runs

  • efficient use of the compute resources as it will use the compute of the orchestrating notebook

  • Depending on the F SKU and the node size, you may get TooManyRequestsForCapacity error if you run multiple notebooks at the same time because of concurrency limits. Since runMultiple uses the same compute, you can mitigate this error. Advancing Analytics has an excellent blog that goes in-depth into this. My colleague Will Crayger also has also researched this topic and summarized his findings here.

12angrymentiger_0-1709843927524.png

 

 

Using runMultiple To Orchastrate Notebook Execution in Microsoft Fabric

Thanks for replying.  I have seen this blog post.  The issue we were having wasn't that we had 1 'user'/process wanting to execute multiple notebooks, but multiple people each wanting to run notebooks in different workspaces.  We were running a 'learn Fabric' workshop.

Hello are the 16 notebooks writing to the same lakehouse? or even the same table in a lakehouse? 
Did you check the Fabric Capacity Metrics App? What can you see in the Utililzation, Throttling and overages graphs? Check out the following blog to better understand the different metrics being reported.

v-cboorla-msft
Community Support
Community Support

Hi @spencer_sa 

 

Thanks for using Microsoft Fabric community.

Apologies for the issue you have been facing. 

It's difficult to tell what could be the reason for this performance. 

Please reach out to our support team so they can do a more thorough investigation on why this it is happening. Our support engineers will definitely would understand the route cause and properly address it.

Please go ahead and raise a support ticket to reach our support team:

https://support.fabric.microsoft.com/support

After creating a Support ticket please provide the ticket number as it would help us to track for more information.

 

Thank you.

Thanks for replying.
Case 2403070050004917

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.