我们如何在Windows Azure中选择我们需要多少升级域来实现可伸缩性?

时间:2015-08-24 10:48:40

标签: azure

此问题适用于:考试70-487(开发Windows Azure和Web服务)

问题是:

You are developing a Microsoft Azure web application. The application will be deployed to
10 web role instances. A minimum of 8 running instances is needed to meet scaling
requirements.
You need to configure the application so that upgrades are performed as quickly as
possible, but do not violate scaling requirements.
How many upgrade domains should you use?

选项

A. 1
B. 2
C. 5
D. 10

我的问题是什么是正确的答案,为什么?我们如何得出问题陈述的解决方案。

由于

3 个答案:

答案 0 :(得分:12)

根据我对升级域的理解,正确的答案是5.

5个升级域和10个实例表示每个域包含2个实例。我们知道更新Cloud Service涉及一次更新一个升级域。有5个升级域,这意味着其中2个实例将被更新,而其余8个将继续工作。

答案 1 :(得分:1)

升级域的默认数量是5.我发现这个读取非常有用。 https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-update-azure-service

答案 2 :(得分:0)

我也认为正确答案是5。

您有10个Web角色实例。如果您使用5个更新域,则将具有以下分布:

WR - UD
1-0
2-1
3-2
4-3
5-4
6-0
7-1
8-2
9-3
10 -4

因此,当系统更新域#0时,辅助角色#1和#6将关闭,但您仍将有8个正在运行的辅助角色实例。

https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-update-azure-service