Azure 应用服务设置 CPU 和 RAM 配额

标签 azure azure-appservice azure-app-service-plans

是否可以为 azure 应用服务可以使用的 CPU 和 RAM 使用量设置配额(或限制)?

假设我有一个应用服务计划 plan-one 和在该计划上运行的两个应用服务:AB。我可以以某种方式说 A 只允许使用 70% 的 cpu 和 50% 的 ram 吗?

最佳答案

Azure app service set quotas for cpu and ram:

检查以下几点:

  • 通过访问 webapp -> Quotas 检查 Web 应用程序的文件系统使用情况

    enter image description here

    注意:经过我的解决方案后,每个应用级别都没有限制策略或限制,如in MSDoc所述。 .

  • Azure 网站上存在适用于免费或共享缩放模式的资源配额限制。访问 Azure 网站时,如果网站已达到其资源配额限制,您可能会遇到“错误 403 - 此 Web 应用程序已停止”,这可以通过免费或共享扩展选项来实现。 AzureWebsites Online-tools

  • 您可以通过访问 appserviceplan 下的指标来检索 CPU 使用率。内存(ram)以及其他相关指标。

enter image description here

  • 通过访问应用服务计划中存在的网站来检查 CPU 使用率以及内存分析:
 Diagnose and solve problems -> Availability and Performance -> High CPU Analysis

enter image description here

  • 每次构建 Azure 网站时,您还会获得一个用于管理和调试的“SCM”(站点控制管理器)。 您可以按如下所示访问它: 例如:如果我有像这样的网络应用程序 https://< webapp >.azurewebsites.net那么SCM站点将是
    https://< webapp >.scm.azurewebsites.net

enter image description here

您还可以检查“azurewebsite”上运行的所有进程。

Appservice Plan Cost

关于Azure 应用服务设置 CPU 和 RAM 配额,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74543949/

相关文章:

azure - Terraform - 在多个地方重复使用 block 定义

azure - 在 Bicep 部署中的 AppService 上设置 `customDomainVerificationId` 属性没有效果

azure - 带有应用程序服务计划的 Web 应用程序

azure - Azure 中的 "No route registered for '/ZipDeployUI'

c# - 在 WebService 中找不到 Windows Azure 管理证书

c# - Azure Cosmos/Document DB ResourceResponse<Document> 使用反射错误进行单元测试

azure - 备份 Azure API 管理开发人员门户的内容

azure - 正确的 azure keyvault 配置

Azure 应用服务为 Blazor 应用程序设置环境吗?

azure - Azure 应用服务可以获得什么样的 CPU 能力?