question

RyanAbbey-0701 avatar image
0 Votes"
RyanAbbey-0701 asked RyanAbbey-0701 commented

Stop Spark cluster

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

HimanshuSinha-MSFT avatar image
0 Votes"
HimanshuSinha-MSFT answered RyanAbbey-0701 commented

Hello @RyanAbbey-0701,
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






· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the response, I am not looking to reduce the idle time as there may be situations where we want the pool to stay alive

An alternative is different pools but always a potential for them getting messy

0 Votes 0 ·