的&QUOT意义;总在" Azure上的网站设置意义、网站、QUOT、Azure

2023-09-03 04:00:59 作者:白魅影

我们有免费的BizSpark订阅的Azure和承载我们的应用程序作为Azure的网站。 永远在线的设置我们无法在目前的认购。

We have free BizSpark subscription on Azure and host our application as Azure Web Site. "Always on" settings unavailable for us in current subscription.

正如你可能知道,IIS有两种设置其中回收的应用程序。

As you may know IIS has two settings which recycle application.

1)默认情况下,每个应用程序将被终止每1740     分钟(29小时) - 定期重启超时 。     2)也可以申请,如果是未使用回收     20分钟 - 空闲超时

1) By default, each application will be terminated every 1740 minutes (29 hours) - periodic restart timeout. 2) Also application be recycled if it's unused for 20 minutes - idle timeout.

我想知道我们是否会开启的总在的设置,我们可以肯定,这将 prevent通过空闲超时应用程序回收和周期时间?

I would like to know if we will turn on "Always on" setting, can we be sure that it will prevent application recycle by idle timeout and periodic time?

另外,我发现这个问题: Will "总在"设置prevent BOTH的idleTimeout和periodicRestart?的类似话题。

Also, I found this question: Will "Always On" setting prevent BOTH idleTimeout and periodicRestart? with similar topic.

不过,我想可以肯定,这是真的。因为我的应用程序总是有后台线程,其中中断是不可接受的。

But I want be sure, that it's true. Because my application always has background threads and interruption of them is unacceptable.

谢谢!

推荐答案

永远在线开启时,你有pvented是双方将$ P $上。这个问题的答案您链接到的问题(Will "始终在与QUOT;设置prevent BOTH的idleTimeout和periodicRestart )包含了全部细节?如果你运行永远在线的多个实例也将确保所有的人都保持运行。

Yes both will be prevented when you have "Always On" turned on. The answer to the question you linked to (Will "Always On" setting prevent BOTH idleTimeout and periodicRestart?) contains the full details. If you have multiple instances running "Always On" will also ensure that all of them stay running.

对于长时间运行的进程我会强烈,如果你能推荐使用Azure的网上工作。 Azure的Webjobs SDK将让你的开发生活变得更加简单,并为你提供了很多很好的监控是免费的。看看本教程由Scott Hanselman的位置: http://www.hanselman.com/blog/IntroducingWindowsAzureWebJobs。 ASPX

For long running processes I'd highly recommend using Azure Web Jobs if you can. The Azure Webjobs SDK will make your development life a lot easier and provide you with a lot of nice monitoring for free. Check out this tutorial by Scott Hanselman here: http://www.hanselman.com/blog/IntroducingWindowsAzureWebJobs.aspx

仅供参考,Webjobs运行在你的网站的情况下,因此,如果您的网站被回收(如果老是被禁用),那么你的Webjob也将停止运行。启用永远在线将保留两个您的网站的工作和你的网站了。

FYI, Webjobs run in the context of your website, so if your website is recycled (if Always On is disabled) then your Webjob will also stop running. Enabling "Always On" will keep both your web jobs and your web site up.