<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to prevent my cluster to shut down after inactivity in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-prevent-my-cluster-to-shut-down-after-inactivity/m-p/29608#M21331</link>
    <description>&lt;P&gt;Currently, I am running a cluster that is set to terminate after 60 minutes of inactivity. However, in one of my notebooks, one of the cells is still running. How can I prevent this from happening, if  want my notebook to run overnight without monitoring it and why is this happening?&lt;/P&gt;</description>
    <pubDate>Thu, 03 Feb 2022 21:38:15 GMT</pubDate>
    <dc:creator>ckwan48</dc:creator>
    <dc:date>2022-02-03T21:38:15Z</dc:date>
    <item>
      <title>How to prevent my cluster to shut down after inactivity</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-prevent-my-cluster-to-shut-down-after-inactivity/m-p/29608#M21331</link>
      <description>&lt;P&gt;Currently, I am running a cluster that is set to terminate after 60 minutes of inactivity. However, in one of my notebooks, one of the cells is still running. How can I prevent this from happening, if  want my notebook to run overnight without monitoring it and why is this happening?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 21:38:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-prevent-my-cluster-to-shut-down-after-inactivity/m-p/29608#M21331</guid>
      <dc:creator>ckwan48</dc:creator>
      <dc:date>2022-02-03T21:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent my cluster to shut down after inactivity</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-prevent-my-cluster-to-shut-down-after-inactivity/m-p/29609#M21332</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Kevin Kim​&amp;nbsp; As mentioned in the docs at &lt;A href="https://docs.databricks.com/clusters/clusters-manage.html#automatic-termination-1" target="test_blank"&gt;https://docs.databricks.com/clusters/clusters-manage.html#automatic-termination-1&lt;/A&gt;  an autoterminating cluster may be terminated while it is running commands. From docs  &amp;gt; The auto termination feature monitors only Spark jobs, not user-defined local processes. Therefore, if all Spark jobs have completed, a cluster may be terminated even if local processes are running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to keep the cluster active all the time, either you can disable "Automatic termination"(if allowed) or create a notebook with simple print or "%sql select 1" commands and schedule it to run at regular intervals(avoid scheduling forever) to keep the cluster active all the time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, did you explore scheduling the notebook as a job? since auto termination is applicable only for all-purpose clusters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Note: Idle clusters continue to accumulate DBU and cloud instance charges during the inactivity period before termination.***&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 22:07:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-prevent-my-cluster-to-shut-down-after-inactivity/m-p/29609#M21332</guid>
      <dc:creator>Ravi</dc:creator>
      <dc:date>2022-02-03T22:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent my cluster to shut down after inactivity</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-prevent-my-cluster-to-shut-down-after-inactivity/m-p/29610#M21333</link>
      <description>&lt;P&gt;Can you just turn off the auto turn off?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 00:18:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-prevent-my-cluster-to-shut-down-after-inactivity/m-p/29610#M21333</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-04T00:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent my cluster to shut down after inactivity</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-prevent-my-cluster-to-shut-down-after-inactivity/m-p/29611#M21334</link>
      <description>&lt;P&gt;indeed, uncheck the 'Terminate after x minutes of inactivity' flag&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 07:41:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-prevent-my-cluster-to-shut-down-after-inactivity/m-p/29611#M21334</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-02-04T07:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent my cluster to shut down after inactivity</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-prevent-my-cluster-to-shut-down-after-inactivity/m-p/29613#M21336</link>
      <description>&lt;P&gt;If a cell is already running ( I assume it's a streaming operation), then I think it doesn't mean that the cluster is inactive. The cluster should be running if a cell is running on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand, if you want to keep running your clusters for a specific period of time (say 10pm to 8am), then you can schedule a cron job to invoke at 55th minute to run a basic command in a simple notebook on that very cluster. You can schedule the job execution using a cron expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, using cluster API, you can monitor if the cluster is running or not.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 14:13:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-prevent-my-cluster-to-shut-down-after-inactivity/m-p/29613#M21336</guid>
      <dc:creator>AmanSehgal</dc:creator>
      <dc:date>2022-02-10T14:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent my cluster to shut down after inactivity</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-prevent-my-cluster-to-shut-down-after-inactivity/m-p/82279#M36593</link>
      <description>&lt;P&gt;How do you uncheck this? Where can I find this button?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 19:31:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-prevent-my-cluster-to-shut-down-after-inactivity/m-p/82279#M36593</guid>
      <dc:creator>SteveByun</dc:creator>
      <dc:date>2024-08-07T19:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent my cluster to shut down after inactivity</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-prevent-my-cluster-to-shut-down-after-inactivity/m-p/92389#M38420</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I've been using this solution to keep my session alive when the process needs it. Put 10 minutes auto shutdown and some process uses a "keep alive" feature (or not).&lt;/P&gt;&lt;P&gt;We made a thread and it does a basic spark.sql("select 1").collect()&lt;BR /&gt;It worked well in 10.4 LTS run time. Now we had to move our databricks from France Central (Azure) to West Europe + upgrade to 12.2 LTS run time, and the query is not considered as an activity query.&lt;BR /&gt;&lt;BR /&gt;Meaning that the query is sent a periodic even, but does not keep anymore the cluster alive. The cluster shutdown and when a tick comes to do the "select 1" it restart the cluster. But we lost the spark session and all our dataframes.&lt;BR /&gt;&lt;BR /&gt;Any idea on how to fix this ?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 07:02:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-prevent-my-cluster-to-shut-down-after-inactivity/m-p/92389#M38420</guid>
      <dc:creator>Etyr</dc:creator>
      <dc:date>2024-10-01T07:02:10Z</dc:date>
    </item>
  </channel>
</rss>

