一樣負載平衡深度探討Virtual Machine Load Balancing deep-dive

適用於:Windows Server(以每年次通道)、Windows Server 2016Applies to: Windows Server (Semi-Annual Channel), Windows Server 2016

Windows Server 2016 引入了一樣負載平衡功能最佳化的節點容錯移轉叢集使用量。Windows Server 2016 introduces the Virtual Machine Load Balancing feature to optimize the utilization of nodes in a Failover Cluster. 本文件告訴您如何設定及控制<abbr title="一樣This document describes how to configure and control VM負載平衡。VM Load Balancing.

適用於平衡 heuristicsHeuristics for balancing

VM一樣負載平衡評估節點負載平衡下列 heuristics:VM Virtual Machine Load Balancing evaluates a node's load based on the following heuristics:

  1. 目前記憶體不足壓力時: 記憶體是最常見的資源限制 HYPER-V 主機上Current memory pressure: Memory is the most common resource constraint on a Hyper-V host
  2. CPU 使用節點平均經過 5 分鐘視窗的: 降低叢集成為覆致力節點CPU utilization of the Node averaged over a 5 minute window: Mitigates a node in the cluster becoming over-committed

控制侵略平衡Controlling the aggressiveness of balancing

您可以使用設定的平衡根據的記憶體和 CPU heuristics 侵略叢集常見屬性 'AutoBalancerLevel'。The aggressiveness of balancing based on the Memory and CPU heuristics can be configured using the by the cluster common property 'AutoBalancerLevel'. 若要控制侵略執行中的 PowerShell:To control the aggressiveness run the following in PowerShell:

(Get-Cluster).AutoBalancerLevel = <value>
AutoBalancerLevelAutoBalancerLevel 侵略Aggressiveness 行為Behavior
1 (預設值)1 (default) Low 載入更多個 80%主機時移動Move when host is more than 80% loaded
22 媒體Medium 載入更多個 70%主機時移動Move when host is more than 70% loaded
33 High 載入更多個 60%主機時移動Move when host is more than 60% loaded

設定的平衡侵略 PowerShell 的圖形

控制<abbr title="一樣Controlling VM負載平衡VM Load Balancing

VM負載平衡預設會讓和負載平衡發生時可以叢集常見屬性 'AutoBalancerMode' 來設定。VM Load Balancing is enabled by default and when load balancing occurs can be configured by the cluster common property 'AutoBalancerMode'. 若要控制時節點公平性餘額叢集︰To control when Node Fairness balances the cluster:

使用容錯移轉叢集管理員:Using Failover Cluster Manager:

  1. 您叢集名稱上按一下滑鼠右鍵,然後選取 [「 屬性] 選項Right-click on your cluster name and select the "Properties" option
    ![選取 適用於叢集透過容錯移轉叢集管理員屬性的圖形

  2. 選取 [平衡] 窗格Select the "Balancer" pane
    選取 [平衡] 選項透過容錯移轉叢集管理員的圖形

使用 PowerShell:Using PowerShell:

執行下列動作:Run the following:

(Get-Cluster).AutoBalancerMode = <value>
AutoBalancerModeAutoBalancerMode 行為Behavior
00 停用Disabled
11 在節點加入負載平衡Load balance on node join
2 (預設值)2 (default) 負載平衡在節點加入,每隔 30 分鐘Load balance on node join and every 30 minutes

VM負載平衡與 System Center 一樣管理員動態最佳化VM Load Balancing vs. System Center Virtual Machine Manager Dynamic Optimization

節點公平性功能,提供方塊中的功能,這衝部署不 System Center 一樣 Manager (<abbr title="系統中心一樣管理員The node fairness feature, provides in-box functionality, which is targeted towards deployments without System Center Virtual Machine Manager (SCVMM)。SCVMM). <abbr title="System Center 一樣管理員System Center Virtual Machine Manager">SCVMM動態最佳化是建議的機制平衡一樣載入您叢集適用於<abbr title="系統中心一樣管理員SCVMM Dynamic Optimization is the recommended mechanism for balancing virtual machine load in your cluster for SCVMM部署。SCVMM deployments. <abbr title="System Center 一樣管理員System Center Virtual Machine Manager">SCVMM自動停用 Windows Server<abbr title="一樣SCVMM automatically disables the Windows Server VM負載平衡時支援動態最佳化。VM Load Balancing when Dynamic Optimization is enabled.

也了See Also