使用WebSiteManagement客户端更新Web应用程序的配置会导致停机 [英] Would using WebSiteManagement client to update configuration of a web app cause downtime

查看:55
本文介绍了使用WebSiteManagement客户端更新Web应用程序的配置会导致停机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在尝试使用Azure Management WebSiteManagementClient(UpdateConfiguration操作)以编程方式更新我的Web应用程序的配置文件。我想知道这是否会导致停机或者是否一次重启一个实例以获取
的更改。

I am trying to programmatically update the configuration file for my web app using the Azure Management WebSiteManagementClient (UpdateConfiguration operation). I want to know if this will cause downtime or does it restart one instance at a time to uptake the changes.

我阅读了有关从Azure门户更新应用程序设置的其他帖子,其中另一个容器被旋转以处理请求,而旧的容器在延迟后关闭。我想知道调用此操作是否也一样。 

I read other posts about updating application settings from Azure portal, where another container is spun up to handle the requests and old one is shut down after a delay. I'm wondering if calling this operation does the same. 

谢谢,

Mia

推荐答案

&mbsp; Hi Mia,

 Hi Mia,

使用时,您不应该看到任何停机时间UpdateConfiguration操作。但是,请检查是否启用了
始终开启。默认情况下,如果应用程序闲置一段时间,则会将其卸载。这使系统可以节省资源。如果你在 基本或标准层,您可以启用
始终开启以始终加载应用。应用服务在卸载应用之前使用默认的IIS限制20分钟。配置
始终开启每5分钟向您网站的根目录发送一次HTTP请求,以保持网站热播。

You shouldn't see any downtime when using the UpdateConfiguration operation. However, check to see if Always On is enabled . By default, apps are unloaded if they are idle for some period of time. This lets the system conserve resources. If you are on the  Basic or Standard tier, you can enable Always On to keep the app loaded all the time. App Services uses the default IIS limit of 20 minutes before unloading the app. Configuring Always On sends an HTTP request to the root of your site every 5 minutes in order to keep the site hot.

希望有所帮助。如果您有其他问题,请告诉我们。

Hope that helps. Please let us know if you have additional questions.


这篇关于使用WebSiteManagement客户端更新Web应用程序的配置会导致停机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆