gpt4 book ai didi

azure - "Always On"设置会阻止idleTimeout和periodicRestart吗?

转载 作者:行者123 更新时间:2023-12-03 17:17:56 25 4
gpt4 key购买 nike

您可能知道,Microsoft Azure 网站服务下托管的网站默认配置为空闲 20 分钟后超时 (idleTimeout),并且应用程序池每 29 小时重新启动一次 (periodicRestart)。这会导致第一个用户访问网站时速度很慢。

我想知道标准模式下可用的新“始终开启”设置是否会阻止这两种情况发生。

我发现有几篇文章提到了该功能,他们都非常清楚将避免空闲超时,但没有一篇明确谈论定期重启:

One of the other useful Web Site features that we are introducing today is a feature we call “Always On”. When Always On is enabled on a site, Windows Azure will automatically ping your Web Site regularly to ensure that the Web Site is always active and in a warm/running state. This is useful to ensure that a site is always responsive (and that the app domain or worker process has not paged out due to lack of external HTTP requests).

http://weblogs.asp.net/scottgu/archive/2014/01/16/windows-azure-staging-publishing-support-for-web-sites-monitoring-improvements-hyper-v-recovery-manager-ga-and-pci-compliance.aspx

Azure 文档也不是很明确:

Always On - By default, web sites are unloaded if they have been idle for some period of time. This lets the system conserve resources. You can enable the Always On setting for a site in Standard mode if the site needs to be loaded all the time. Because continuous web jobs may not run reliably if Always On is disabled, you should enable Always On when you have continuous web jobs running on the site.

http://www.windowsazure.com/en-us/documentation/articles/web-sites-configure/

最佳答案

是的,两者都会被阻止。

Azure 网站上从来没有默认的 29 小时定期重启。该功能是由 WAS 强制执行的 IIS 功能,旨在在服务器级别上运行,这意味着重新启动 IIS 服务器上的所有工作进程。这两件事(WAS 和 IIS 服务器)不适用于 Azure 网站,因为 WAS 是 IIS 的进程管理组件,并且非常特定于一体机设置。 Azure 网站使用不同的进程管理组件,该组件不具有定期重新启动功能。

关于azure - "Always On"设置会阻止idleTimeout和periodicRestart吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21840983/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com