您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

将 Azure Service Fabric 群集与 Windows Server 和 Linux 上的独立 Service Fabric 群集进行比较Comparing Azure and standalone Service Fabric clusters on Windows Server and Linux

Service Fabric 群集是一组通过网络连接在一起的虚拟机或物理计算机,微服务会在其中部署和管理。A Service Fabric cluster is a network-connected set of virtual or physical machines into which your microservices are deployed and managed. 群集中的计算机或 VM 称为群集节点。A machine or VM that is part of a cluster is called a cluster node. 群集可以扩展到数千个节点。Clusters can scale to thousands of nodes. 如果向群集添加新节点,Service Fabric 会在新增加的节点间重新平衡服务分区副本和实例。If you add new nodes to the cluster, Service Fabric rebalances the service partition replicas and instances across the increased number of nodes. 应用程序总体性能提高,访问内存的争用减少。Overall application performance improves and contention for access to memory decreases. 如果没有高效使用群集中的节点,可以减少群集中节点的数量。If the nodes in the cluster are not being used efficiently, you can decrease the number of nodes in the cluster. Service Fabric 会再次在减少的节点间重新平衡分区副本和实例以更加充分利用每个节点上的硬件。Service Fabric again rebalances the partition replicas and instances across the decreased number of nodes to make better use of the hardware on each node.

使用 Service Fabric 可在运行 Windows Server 或 Linux 的任何 VM 或计算机上创建 Service Fabric 群集。Service Fabric allows for the creation of Service Fabric clusters on any VMs or computers running Windows Server or Linux. 这意味着,可以在包含一组互连 Windows Server 或 Linux 计算机(无论是本地计算机、Microsoft Azure 计算机还是任何云提供商的计算机)的任何环境中部署和运行 Service Fabric 应用程序。This means you are able to deploy and run Service Fabric applications in any environment where you have a set of Windows Server or Linux computers that are interconnected, be it on-premises, Microsoft Azure, or with any cloud provider.

Azure 上的群集的优点Benefits of clusters on Azure

在 Azure 上,我们提供与其他 Azure 功能和服务的集成,这样可使群集的操作和管理更容易且更可靠。On Azure, we provide integration with other Azure features and services, which makes operations and management of the cluster easier and more reliable.

  • Azure 门户: Azure 门户使群集易于创建和管理。Azure portal: Azure portal makes it easy to create and manage clusters.
  • Azure 资源管理器: 使用 Azure 资源管理器可以单元的形式方便地管理群集使用的所有资源,并简化了成本跟踪和计费。Azure Resource Manager: Use of Azure Resource Manager allows easy management of all resources used by the cluster as a unit and simplifies cost tracking and billing.
  • 用作 Azure 资源的 Service Fabric 群集 Service Fabric 群集是一种 Azure 资源,因此可以像在 Azure 中对其他资源建模一样为它建模。Service Fabric Cluster as an Azure Resource A Service Fabric cluster is an Azure resource, so you can model it like you do other resources in Azure.
  • 与 Azure 基础结构集成 Service Fabric 与适用于 OS、网络和其他升级的 Azure 基础结构相协调,以提高应用程序的可用性与可靠性。Integration with Azure Infrastructure Service Fabric coordinates with the underlying Azure infrastructure for OS, network, and other upgrades to improve availability and reliability of your applications.
  • 诊断: 在 Azure 上,我们提供的集成与 Azure 诊断和 Azure Monitor 日志。Diagnostics: On Azure, we provide integration with Azure diagnostics and Azure Monitor logs.
  • 自动缩放: 对于 Azure 上的群集,我们借助虚拟机缩放集提供内置自动缩放功能。Auto-scaling: For clusters on Azure, we provide built-in auto-scaling functionality due to Virtual Machine scale-sets. 在本地和其他云环境中,必须构建自己的自动调整规模功能或使用 Service Fabric 为调整群集规模而公开的 API 来手动调整规模。In on-premises and other cloud environments, you have to build your own auto-scaling feature or scale manually using the APIs that Service Fabric exposes for scaling clusters.

独立群集的优点Benefits of standalone clusters

  • 可以自由选择任何云提供商来托管群集。You are free to choose any cloud provider to host your cluster.
  • Service Fabric 应用程序在编写之后,可以在多个宿主环境中运行,只需进行最小程度的更改,甚至无需更改。Service Fabric applications, once written, can be run in multiple hosting environments with minimal to no changes.
  • 构建 Service Fabric 应用程序的知识可从一个宿主环境转移到另一个环境。Knowledge of building Service Fabric applications carries over from one hosting environment to another.
  • 运行和管理 Service Fabric 群集的操作经验可从一个环境转移到另一个环境。Operational experience of running and managing Service Fabric clusters carries over from one environment to another.
  • 广泛的客户范围不会受宿主环境约束的限制。Broad customer reach is unbounded by hosting environment constraints.
  • 存在针对大范围中断的额外一层可靠性和保护,因为可以在数据中心或云提供商中断时会服务转移到其他部署环境。An extra layer of reliability and protection against widespread outages exists because you can move the services over to another deployment environment if a data center or cloud provider has a blackout.

后续步骤Next steps