升级和更新 Service Fabric 独立群集Upgrading and updating a Service Fabric standalone cluster

对于任何现代系统,设计可升级性都是实现产品长期成功的关键。For any modern system, designing for upgradability is key to achieving long-term success of your product. Azure Service Fabric 独立群集是你拥有的资源。An Azure Service Fabric standalone cluster is a resource that you own. 本文介绍可以升级或更新的内容。This article describes what can be upgraded or updated.

控制在群集上运行的结构版本Controlling the fabric version that runs on your cluster

请确保群集始终运行受支持的 Service Fabric 版本Make sure that your cluster always runs a supported Service Fabric version. 当 Azure 宣布发布新版 Service Fabric 时,即标志着自宣布日期起至少 60 天后,将结束对旧版的支持。When Azure announces the release of a new version of Service Fabric, the previous version is marked for end of support after a minimum of 60 days from the date of the announcement. 新版本将在 Service Fabric 团队博客中宣布。New releases are announced on the Service Fabric team blog. 从该时间开始,便可以选择使用新版本。The new release is available to choose at that point.

可以将群集设置为 Azure 发布结构升级时自动接收该升级,也可以手动选择希望群集安装的受支持结构版本。You can set your cluster to receive automatic fabric upgrades as they are released by Azure or you can manually select a supported fabric version you want your cluster to be on. 有关详细信息,请阅读升级群集上运行的 Service Fabric 版本For more information, read Upgrade the Service Fabric version that runs on your cluster.

自定义配置设置Customize configuration settings

可以在 ClusterConfig.json 文件中设置许多不同的配置设置,例如群集的可靠性级别和节点属性 。Many different configuration settings can be set in the ClusterConfig.json file, such as the reliability level of the cluster and node properties. 若要了解详细信息,请阅读升级独立群集的配置To learn more, read Upgrade the configuration of a standalone cluster. 还可自定义许多其他更高级的设置。Many other, more advanced, settings can also be customized. 有关详细信息,请参阅 Service Fabric 群集结构设置For more information, read Service Fabric cluster fabric settings.

定义节点属性Define node properties

有时,可能需要确保仅在群集中特定类型的节点上运行某些工作负荷。Sometimes you may want to ensure that certain workloads run only on certain types of nodes in the cluster. 例如,某些工作负荷可能需要 GPU 或 SSD,而有些则不用。For example, some workload may require GPUs or SSDs while others may not. 对于群集中的每个节点类型,可以向群集节点添加自定义节点属性。For each of the node types in a cluster, you can add custom node properties to cluster nodes. 放置约束是附加到单个服务的语句,这些服务专供 1 个或多个节点属性选择。Placement constraints are the statements attached to individual services that select for one or more node properties. 放置约束定义服务运行的位置。Placement constraints define where services should run.

有关使用放置约束、节点属性以及如何定义它们的详细信息,请参阅节点属性和放置约束For details on the use of placement constraints, node properties, and how to define them, read node properties and placement constraints.

添加容量指标Add capacity metrics

对于每个节点类型,可以添加要在应用程序中用于报告负载的自定义容量度量值。For each of the node types, you can add custom capacity metrics that you want to use in your applications to report load. 有关使用容量指标来报告负载的详细信息,请参阅 Service Fabric 群集 Resource Manager 文档描述群集,以及指标和负载For details on the use of capacity metrics to report load, refer to the Service Fabric Cluster Resource Manager Documents on Describing Your Cluster and Metrics and Load.

修补群集节点的操作系统Patch the OS in the cluster nodes

修补业务流程应用程序 (POA) 是一个 Service Fabric 应用程序,可在 Service Fabric 群集中自动修补操作系统,而无需停机。The patch orchestration application (POA) is a Service Fabric application that automates operating system patching on a Service Fabric cluster without downtime. 适用于 Windows 的修补业务流程应用程序可部署在群集上,以便以协调一致的方式安装修补程序,同时使服务始终可用。The Patch Orchestration Application for Windows can be deployed on your cluster to install patches in an orchestrated manner while keeping the services available all the time.

后续步骤Next steps