Forum Discussion
Spark Session Broken in Custom Environment/Pool
Hello Team,
I’m facing an issue with Spark Session when running in High Concurrency mode using a custom pool and environment.
The pool is configured with 9 nodes, each having 8 CPUs and 56 GB memory.
Dynamic allocation is enabled, with the minimum number of executors set to 1. This means at least 8 cores should always be available.
When I run a Spark notebook that imports two other notebooks (with this custom environment selected), the startup takes over 13 minutes. During this time, Spark shows zero cores allocated for about a minute before finally allocating 8 cores.
Additionally, the session never scales beyond 8 cores, even when there are ~15 parallel tasks running, which should ideally trigger scale-out. and there were over 100 tasks as well in some point
Note: We are using a custom pool because:
We have implemented a private endpoint.
We need to use custom libraries (App Insights and OpenTelemetry
When i run the notebooks through pipeline with multi instance, the session is being stopped as soon as pipeline completes the execution of notebooks. I would expect the session is active until session idele time out specified 20 mins at environment
I also tried with configure magic command as first cell in notebook but same result, below is the full configuration
5 Replies
- Thomaslleblanc
Super User
createe a support ticket with micrsoft
- v-prasare
Community Support
you can raise a support ticket here. so, that they can assit you in addressing the issue you are facing. please follow below link on how to raise a support ticket:
How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn
- v-prasare
Community Support
we are following up once again regarding your query. Could you please confirm if the issue has been resolved through the support ticket with Microsoft?
If the issue has been resolved, we kindly request you to share the resolution or key insights here to help others in the community. If we don’t hear back, we’ll go ahead and close this thread.
Should you need further assistance in the future, we encourage you to reach out via the Microsoft Fabric Community Forum and create a new thread. We’ll be happy to help.
Thank you for your understanding and participation.- nagan277New Member
Thank you for your follow up and sorry for the delay from my side.
Yes, i have created Support ticket before i raise here but haven't got any resolution yet from the support. Support team is speaking to PG team.So far they mentioned that "
At the session level, there are no active notebooks running for one minute. This timeout is different from the 20-minute notebook idle timeout. This one-minute timeout is specific for High Concurrency (HC) sessions.
From a user experience, it is not the best, but they can adjust the config to increase the one-minute timeout."Thanks
Naga
- nagan277New Member
I haven't got the solution yet on this, microsoft are still investigating on this.