azure - Azure 应用服务中的扩展如何进行?

标签 azure azure-web-app-service azure-app-service-plans

我试图理解 Azure 应用服务计划和 Azure 应用服务的概念,但没有成功。

我的理解是应用服务计划定义了容量和定价,分配给特定应用服务计划的所有应用将共享相同的资源,对吗?

如果这是正确的,那么横向扩展的好处是什么?扩展是否会创建同一应用程序的更多实例,这些实例最终将托管在同一应用程序服务计划上(共享相同的资源)?

我阅读了几乎所有有关Azure应用程序服务计划和应用程序服务的官方和非官方文档,但找不到这个问题的答案,他们都说扩展正在应用程序级别(而不是应用程序服务) plan),同时又说分配给同一个应用服务计划的应用实际上共享相同的资源,那么横向扩展功能有什么好处呢?

问候,

最佳答案

My understanding is that an App Service Plan defines the capacity and the pricing, all apps assigned to a specific App Service plan will share the same resources, is that right?

是的。

If that is right, then what is the benefit of the scaling-out? If the scale out will create more instances of the same app which at the end will be hosted on the same App Service Plan (sharing the same resources)?

没有人强制您将所有应用放在同一个应用服务计划中。当您创建应用程序时,您将其放入某些应用程序服务计划中。该(且仅该)应用服务计划上的所有应用都将共享资源,但您可以创建大量应用服务计划。
此外,当您横向扩展时,您会创建更多托管应用程序的 VM 的 PaaS 实例,因此当您横向扩展时,您不会在同一 IIS 中获得另一个应用程序池,而是会在另一个 VM 上的另一个 IIS 上获得另一个应用程序池。

编辑:为了澄清评论,应用服务计划是安装了 IIS 的 Windows VM 的集合。分配给该应用服务计划的所有应用程序都托管在这些虚拟机的所有实例上,当您横向扩展或纵向扩展时,您会更改这些虚拟机的数量或容量。
没有临时应用服务计划。 您为服务计划付费,而不是为应用程序付费。 应用程序不花钱,它们只是消耗服务计划上的资源,服务计划“吃”钱。 You are getting billed according to the Service Plan tier and scale .
定价基于您运行的虚拟机实例的大小和数量。

关于azure - Azure 应用服务中的扩展如何进行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40579661/

相关文章:

Azure Function App(后端)从 Azure 应用服务前端访问时出现 401 错误

azure - Traefik 持久卷超时 AKS

Azure 静态网站托管

azure - 为基于消耗的 Azure Functions 创建的应用程序服务计划是否可重复使用?

sql-server - 如何通过Azure App Service连接Linux机器中安装的SQL Server?

azure - 如何防止 azure 在其他实例准备就绪之前向外扩展?

Azure容器服务Kubernetes : How to Change VM Size?

Azure 应用服务交换任务受应用服务 IP 白名单阻碍 : Failed to update deployment history

azure - 如何将我的 webapp url 指向我的 frontdoor url?

azure - 如何使用 Azure Python SDK 将principal_id 转换为用户名