透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Microsoft SQL Server Always On 可用性群組 (AG) 可讓您跨多個 SQL Server Enterprise 執行個體複製資料庫。
與 SQL Server 容錯移轉叢集執行個體類似,Always On 可用性群組會使用 Windows Server 容錯移轉叢集 (WSFC) 實作高可用性。但這兩項功能在多方面有所不同,包括:
|
Always On 可用性群組 |
容錯移轉叢集執行個體 |
容錯移轉範圍 |
資料庫群組 |
執行個體 |
儲存空間 |
未共用 |
共用 |
如需更詳細的比較,請參閱「容錯移轉叢集執行個體與可用性群組的比較」。
Always On 可用性群組支援多種可用性模式。
本教學課程說明如何以同步認可模式部署 Always On 可用性群組,為一或多個資料庫實作高可用性。
在設定過程中,您將建立三個 VM 執行個體。兩個 VM 執行個體 (node-1
和 node-2
) 會做為叢集節點,並執行 SQL Server。第三個 VM 執行個體「witness
」用於在容錯移轉情境中達到法定人數。這三個 VM 執行個體會分布在三個可用區,並共用一個子網路。
使用 SQL Server Always On 可用性群組時,範例資料庫 bookshelf
會在兩個 SQL Server 執行個體之間同步複製。
在內部部署的 Windows Server 容錯移轉叢集環境中,ARP 宣告會觸發 IP 位址容錯移轉。Google Cloud,但會忽略 ARP 公告。因此,您必須實作下列其中一個選項:使用內部負載平衡器和分散式網路名稱 (DNN)。本文假設您已在 Google Cloud 上部署 Active Directory,且具備 SQL Server、Active Directory 和 Compute Engine 的基本知識。如要進一步瞭解 Google Cloud上的 Active Directory,請參閱「開始使用」一節。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-04 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-04 (世界標準時間)。"],[[["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."]]],[]]