gpt4 book ai didi

azure - 主虚拟机集重新启动时故障转移如何工作?

转载 作者:行者123 更新时间:2023-12-03 05:48:36 25 4
gpt4 key购买 nike

enter image description here

以上是 Azure Service Fabric 的示例配置。

  1. 我使用向导创建了一个 Asp.net core 应用程序,并且我可以从外部访问该应用程序。

  2. 现在,如果您查看下图,Service Fabric 正在通过 sfclustertemp.westus2.cloudapp.azure.com 进行访问。我可以通过以下方式访问应用程序sfclustertemp.westus2.cloudapp.azure.com/api/values。

  3. 现在,如果我重新启动主虚拟机设置,它应该将负载转移到辅助虚拟机,我认为它应该自动完成,但事实并非如此,因为第二个负载均衡器具有不同的 DNS 名称。 (如果我指定不同的 dns 名称,则可以访问)。

我知道 cluser 有一个 id,因此这对于两个负载均衡器来说都是常见的。

这样的配置可以吗?

最佳答案

也许你可以使用Azure Traffic Manager与健康探测器。

但是,不要在重新启动期间使用多个节点类型作为故障转移选项,而是查看“Durability tiers” '。使用银牌或金牌将产生在计算机组(按故障域分组)上按顺序执行重新启动的效果,而不是一次全部执行。

The durability tier is used to indicate to the system the privileges that your VMs have with the underlying Azure infrastructure. In the primary node type, this privilege allows Service Fabric to pause any VM level infrastructure request (such as a VM reboot, VM reimage, or VM migration) that impact the quorum requirements for the system services and your stateful services.

关于azure - 主虚拟机集重新启动时故障转移如何工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50653748/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com