Stop Spark cluster

Ryan Abbey 1,186 Reputation points
2022-05-05T04:31:30.41+00:00

As I'm understanding it, a notebook runs under a spark session (application) for which many sessions can run within a pool. Also, the 15 minute auto-disable on the pool comes in to effect once all sessions/applications have completed, is that right?

Is there a way to bring down/disable the pool programmatically? Rather than waiting the 15 minutes, I want to be able to disable to pool earlier (only in certain circumstances, not every time) but all I can find are commands to stop a session ... but I assume that would only initiate the 15 minute countdown

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,373 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. HimanshuSinha-msft 19,486 Reputation points Microsoft Employee Moderator
    2022-05-06T19:55:50.33+00:00

    Hello @Ryan Abbey ,
    Thanks for the question and using MS Q&A platform.

    As I'm understanding it, a notebook runs under a spark session (application) for which many sessions can run within a pool. Also, the 15 minute auto-disable on the pool comes in to effect once all sessions/applications have completed, is that right?

    Correct. Once all the sessions are completed, idle time kicks and the cluster is terminated thereafter.

    Is there a way to bring down/disable the pool programmatically? Rather than waiting the 15 minutes, I want to be able to disable to pool earlier (only in certain circumstances, not every time) but all I can find are commands to stop a session ... but I assume that would only initiate the 15 minute countdown

    I don’t think this is possible. if you do not want to wait for 15 min, then we can lower the idle time setting at the pool level.I did tried a time of 5 min and atleast I was able to deploy the cluster .

    Please do let me if you have any queries.
    Thanks
    Himanshu


    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
      • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

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.