如何重新启动Azure App Service实例 [英] How to restart Azure App Service Instance

查看:529
本文介绍了如何重新启动Azure App Service实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Azure App Service,其中包含1个带1个插槽的Web App。我有2个实例分配给App Service。本周,App Service显示约60%的CPU使用率,通常约为10-15%。经过进一步调查,似乎两个实例中的一个已用尽。当打开每个实例的站点指标时,我可以看到一个实例的HTTP响应时间为1000毫秒,而另一个实例的响应时间不到200毫秒。我曾尝试在有问题的实例上重新启动W3P进程,但这似乎无济于事。我也尝试过扩展到其他实例。新实例看起来不错,但是当我缩小比例时,结构不会杀死有问题的实例。

I have an Azure App Service that contains 1 Web App with 1 slot. I have 2 instances assigned to the App Service. This week, the App Service shows about 60% CPU usage, and its usually about 10-15%. Upon further investigation, it looks like 1 of the two instances is maxed out. When opening up the Site Metrics per Instance, I can see that HTTP Response times are in the 1000s of milliseconds for one instance, and less than 200ms for the other. I have tried restarting the W3P process on the offending instance, but that doesn't seem to help. I have also tried scaling up to additional instances. The new instances look good, but when I scale back down, the fabric won't kill the offending instance.

如何强制结构控制器杀死

我在这里找到了AzureRestartRole powershell命令( https://msdn.microsoft.com/en-us/library/azure/dn495202.aspx ),但我的Azure Powershell命令提示符没有似乎无法识别该命令,因此我尝试使用install-module命令升级到Azure SDK 1.3,但是未找到 AzureRestartRole命令。

I found the AzureRestartRole powershell command here (https://msdn.microsoft.com/en-us/library/azure/dn495202.aspx), but my Azure Powershell Command Prompt doesn't seem to recognize the command, so I tried upgrading to Azure SDK 1.3 with the install-module command, but the 'AzureRestartRole' command isn't found.

推荐答案

我最近遇到了一个类似的问题(一个坏实例总是从 ConfigurationManager.AppSettings 读为null,而另一个实例很好)。我发现可以从Azure门户重新启动Azure应用服务(Web应用)的特定实例。 :D

I recently encounter a similar issue (one bad instance always read null from ConfigurationManager.AppSettings while the other instance was fine). I found that restarting a particular instance of a Azure App service (web app) is do-able from the Azure portal. :D

2019年8月16日更新:

Updated Aug 16th, 2019:

简短的版本是,如果您在诊断和解决问题下进入Web应用程序的门户,请搜索 Advanced Application Restart (高级应用程序重新启动),然后您会看到一个允许您只选择所需的实例。

The short version is that if you go in the portal for your web app under Diagnose and Solve Problems, search for Advanced Application Restart and you will get an option that allows you to pick just the instance you want.

希望有帮助。

这篇关于如何重新启动Azure App Service实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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