将 Desired State Configuration 扩展添加到服务结构 VMSS
Adding Desired State Configuration extension to a service fabric VMSS
我们最近需要将 Microsoft.Powershell.DSC 扩展添加到包含我们的服务结构集群的 VMSS。我们使用我们的 ARM 模板重新部署了集群,并添加了新的 DSC 扩展。在部署期间,我们观察到 5 个规模集实例中有多达 4 个在给定时间处于重新启动阶段。我们集群中的服务在那段时间也没有响应。中断只有几分钟,但这似乎是不应该发生的事情。
- 可靠性等级:白银
- 耐久等级:青铜
我建议阅读 this 文章。它是一个 MS 员工博客。我把相关部分抄出来:
如果您不介意所有虚拟机同时重启,您可以将升级策略设置为“自动”。否则将其设置为“手动”并自行将对规模集模型的更改应用到各个 VM。在保持应用程序正常运行时间的同时编写脚本向 VM 推出更新相当容易。有关详细信息,请参阅 https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-upgrade-scale-set。
如果您的规模集位于 Service Fabric 群集中,某些更新(例如更改 OS 版本)会被阻止(目前 - 将来会更改),建议将升级策略设置为“自动” ,因为 Service Fabric 负责在保持可用性的同时安全地应用模型更改(如更新的扩展设置)。
这是由选择的 durability 级别 'bronze' 引起的。
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. In the non-primary node types,
this privilege allows Service Fabric to pause any VM level
infrastructure requests like VM reboot, VM reimage, VM migration etc.,
that impact the quorum requirements for your stateful services running
in it.
Bronze - No privileges. This is the default and is recommended if you are only > running stateless workloads in your cluster.
我们最近需要将 Microsoft.Powershell.DSC 扩展添加到包含我们的服务结构集群的 VMSS。我们使用我们的 ARM 模板重新部署了集群,并添加了新的 DSC 扩展。在部署期间,我们观察到 5 个规模集实例中有多达 4 个在给定时间处于重新启动阶段。我们集群中的服务在那段时间也没有响应。中断只有几分钟,但这似乎是不应该发生的事情。
- 可靠性等级:白银
- 耐久等级:青铜
我建议阅读 this 文章。它是一个 MS 员工博客。我把相关部分抄出来:
如果您不介意所有虚拟机同时重启,您可以将升级策略设置为“自动”。否则将其设置为“手动”并自行将对规模集模型的更改应用到各个 VM。在保持应用程序正常运行时间的同时编写脚本向 VM 推出更新相当容易。有关详细信息,请参阅 https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-upgrade-scale-set。
如果您的规模集位于 Service Fabric 群集中,某些更新(例如更改 OS 版本)会被阻止(目前 - 将来会更改),建议将升级策略设置为“自动” ,因为 Service Fabric 负责在保持可用性的同时安全地应用模型更改(如更新的扩展设置)。
这是由选择的 durability 级别 'bronze' 引起的。
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. In the non-primary node types, this privilege allows Service Fabric to pause any VM level infrastructure requests like VM reboot, VM reimage, VM migration etc., that impact the quorum requirements for your stateful services running in it.
Bronze - No privileges. This is the default and is recommended if you are only > running stateless workloads in your cluster.