加入收藏 | 设为首页 | 会员中心 | 我要投稿 辽源站长网 (https://www.0437zz.com/)- 云专线、云连接、智能数据、边缘计算、数据安全!
当前位置: 首页 > 服务器 > 系统 > 正文

GCP - Running Windows Server Failover Clustering Step by Ste

发布时间:2021-01-10 19:18:31 所属栏目:系统 来源:网络整理
导读:手把手介紹如何在 Google Platform 上面建立 Windows Server 容錯移轉叢集並達到IIS Web Application HA 的效果。此篇為下集從叢集容錯管理設定到如何在 GCP 中達成 IIS 的請求移轉。 本篇架構參考 Google 官方文件的 Running Windows Server Failover Clust
副标题[/!--empirenews.page--]

手把手介紹如何在 Google Platform 上面建立 Windows Server 容錯移轉叢集並達到IIS Web Application HA 的效果。此篇為下集從叢集容錯管理設定到如何在 GCP 中達成 IIS 的請求移轉。

本篇架構參考 Google 官方文件的 Running Windows Server Failover Clustering。主要針對整體操作完整的手把手教學並針對細節描述。而針對讀者在閱讀上更能融入整體教學,稍微調整了原文的順序。

在上篇已建置完 GCP 主機並加入至 AD 內做管理,這邊將接手完成叢集容錯的安裝與設定

Setting up failover clustering

接著在 wsfc-1wsfc-2 完成以下動作

  • 遠端登入主機
  • 安裝 Failover Clustering,安裝時要用 WSFC.TESTclusteruser 進行操作,不然會無法完成安裝。這邊要注意不用安裝該功能在 wsfc-dc 主機上。
  • 將 wsfc-1 與 wsfc-2 設為叢集內的節點(node)
  • 透過驗證步驟就可以知道當前設定是否正確,並透過 Create the cluster now using the validated nodes 這個按鈕即可立即為當前驗測過的步驟建立叢集。
  • 在 Create Cluster Wizard 中的 Access point 內設定叢集名稱為 testcluster
  • 將位置設定為 10.0.0.8

首先完成 Failover Clustering 安裝:

GCP - Running Windows Server Failover Clustering Step by Ste

接著開始加入節點:

GCP - Running Windows Server Failover Clustering Step by Ste

GCP - Running Windows Server Failover Clustering Step by Ste

GCP - Running Windows Server Failover Clustering Step by Ste

GCP - Running Windows Server Failover Clustering Step by Ste

GCP - Running Windows Server Failover Clustering Step by Ste

GCP - Running Windows Server Failover Clustering Step by Ste

GCP - Running Windows Server Failover Clustering Step by Ste

完成後即可看到當前節點出現兩台新增的主機與當前配置狀態(Assigned Vote 與 Current Vote):

GCP - Running Windows Server Failover Clustering Step by Ste

詳細步驟可以參考微軟官方的 Create a Failover Cluster.aspx#Validate%20the%20configuration)

Creating the file share witness

而當成將兩台主機都加入叢集內作為可使用節點時,我們需要透過一個公平的投票機制選出誰為當前主要咦鞴濣c接手服務處理,為此我們需要建立一個 quorum 制度來做仲裁。

這部分很簡單的透過一個sharefolder的方式來傳給 AD ,告知當前哪一台主機離線則需要將判斷是否要將工作交給另外一台接手。 GCP 目前是相信可透過 Live Migration 與 automatic restart 來提供可信賴的 Share Witness 服務。

這邊透過以下步驟可以透過檔案分享建立起見證機制來控制當前叢集處理的角色分配:

建立檔案分享路徑

  1. 遠端連線進入 wsfc-dc
  2. 設定檔案分享的資料於該台主機上 C:shares ,透過滑鼠右鍵選擇分享。
  3. 分享成功後並在裡面再建立一個資料夾 clusterwitness-testcluster

GCP - Running Windows Server Failover Clustering Step by Ste

GCP - Running Windows Server Failover Clustering Step by Ste

GCP - Running Windows Server Failover Clustering Step by Ste

(编辑:辽源站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

推荐文章
    热点阅读