使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
通过 Microsoft SQL Server Always On 可用性组 (AG),您可以跨多个 SQL Server Enterprise 实例复制数据库。
与 SQL Server 故障切换集群实例类似,Always On 可用性组使用 Windows Server 故障切换集群 (WSFC) 来实现高可用性。但这两种功能在以下方面有所不同:
|
Always On 可用性组 |
故障切换集群实例 |
故障切换的范围 |
数据库组 |
实例 |
存储 |
未共享 |
共享 |
如需详细了解比较,请参阅故障切换集群实例与可用性组的比较。
Always On 可用性组支持多种可用性模式。本教程介绍如何在同步提交模式中部署 Always On 可用性组,以便为一个或多个数据库实现高可用性。
在设置过程中,您将创建三个虚拟机实例。node-1
和 node-2
两个虚拟机实例可充当集群节点并运行 SQL Server。第三个虚拟机实例 witness
用于在故障切换情景中实现仲裁。 三个虚拟机实例分布在三个可用区,并且共享一个子网。
使用 SQL Server Always On 可用性组,您可以跨两个 SQL Server 实例同步复制示例数据库 bookshelf
。
在本地 Windows Server 故障切换集群环境中,ARP 通知会触发 IP 地址故障切换。但是,Google Cloud会忽略 ARP 通知。因此,您必须实现以下两个选项之一:使用内部负载均衡器和分布式网络名称 (DNN)。本文假定您已在 Google Cloud 上部署了 Active Directory,并且您已掌握 SQL Server、Active Directory 和 Compute Engine 的基本知识。如需详细了解 Google Cloud上的 Active Directory,请参阅开始部分
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-06-25。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-06-25。"],[[["Microsoft SQL Server Always On availability groups (AG) replicate databases across multiple SQL Server instances using Windows Server Failover Clustering (WSFC) for high availability."],["AGs differ from Failover Cluster Instances in that they handle failover at the database group level and use non-shared storage, while Failover Cluster Instances fail over the entire instance and rely on shared storage."],["This tutorial demonstrates deploying Always On availability groups in synchronous commit mode, involving three VM instances across three zones: two SQL Server nodes (`node-1`, `node-2`) and one witness node (`witness`) for quorum."],["The example setup replicates a database (`bookshelf`) synchronously across the two SQL Server instances using an Always On availability group."],["Due to Google Cloud's handling of ARP announcements, implementing AGs requires the use of either an internal load balancer or a distributed network name (DNN) for IP address failover, differing from on-premises environments."]]],[]]