Energy Efficiency in Hyper-V Infrastructures
- Transfer
Discussing power management issues is

Windows Power Plans
If your goal is more balanced power consumption without negatively impacting performance, then it would be nice to start with Windows power plans. Nutrition plans are designed to help administrators achieve the right balance between energy and performance.
This approach makes us consider power plans as an automated tool to turn off the power of monitors and hard drives during a system downtime. While power plans, of course, can do all of the above, they also tend to affect processor speed.
For testing, we created a new virtual machine running Windows Server 2012 R2 on a

Figure 1. A study of nutrition plans with NovaBench.
Windows Server 2012 R2 uses the “Balanced” power plan by default. In the first test, we tested the “Energy Saving”, “Balanced” and “High Performance” plans, tuning them at the virtual machine level. Since NovaBench offers many different tests, it was decided to run a full set of tests and record the total score and processor test score. Higher scores reflect better performance.

Upon receipt of the first indicators (see Table 1), we noticed that scores gradually decreased with each test passed, regardless of which power plan was used. After several checks, it was discovered that this was caused by Windows Update, which were disabled before the analysis began.

Test 1 Table 1: Virtual Machine Power Plans
Complete test results for the power plan in Figure 2.

Fig. 2. Test results of a virtual machine configured to use an energy-saving power scheme.
For the second test (Table 2), the same power plans were checked, but this time configured at the host level. The VM was configured to use a balanced plan, and indicators were collected inside the VM.
Table 2 Test 2: Hypervisor Nutrition Plans
The results of these tests are quite interesting. When the power level at the VM level was adjusted to high-performance, this actually led to a lower score (probably as a result of the background system process performing
When the power plan was set up at the hypervisor level, there was a huge drop in performance when you turned on the power saving mode, and a slight increase in performance when you turned on the high-performance mode.
By the way, the power plan can be changed when you open the control panel and go to the indicators "Equipment / Energy Settings". It is worth noting that, as a rule, it is preferable to configure the power plan at the group policy level. You can find the necessary settings in the Computer Configuration | Administrative Templates | System | Power Management (Computer Configuration | Administrative Templates | System | Power Management). The parameter you need is “Select” the active power circuit, as shown in Figure 3.

Figure 3. Using group policies to manage the power plan
When implemented at the parent operating system level, the power plan determines how much power the server will consume and also affects server performance. In this regard, a number of questions arise:
- Does the cost offset the advantage of using more power?
- Is this high performance suitable for any load?
- Is there a way to use less energy without giving up high performance?
Since the first two questions cannot always be answered quickly, there are several different strategies that can be used to reduce power consumption while maintaining a high level of performance. It is worth noting that both of these strategies require the System Center Virtual Machine Manager (VMM), since the required functionality does not exist in
Using Host Groups
One option for managing
As you know, you can group servers in Active Directory and assign different group policies for each group. Thus, you can assign a balanced power plan for one group of
After
Such a distribution can be easily organized in many companies, since it is a generally accepted policy to organize host groups based on hardware capabilities. For example, we met a company that uses a host group called Gold Tier (or something similar) that contains the most high-performance virtualization hosts and is used for the most demanding virtual machines. Adding an appropriate power plan for servers included in this host group is a fairly simple task.
Power optimization
The second way you can control
There are several prerequisites that must be met in order to use energy optimization.
Typically, the fewest hosts that can support this model are five. In a
The second requirement is that the cluster nodes must be equipped with a Baseboard Management Controller (BMC). The controller provides out-of-band node management. This is a mechanism that allows a host to shut down and start up again without administrator involvement.
At Microsoft, setting up energy-saving features is easy: open the VMM console, then find the group of nodes containing the cluster for which you want to turn on energy optimization. Next, right-click on the host group and select the "Properties" command in the context menu. When you do this, the console will display the Properties window of the host group.
Power optimization options are located on the “Dynamic Optimization” tab. Dynamic Optimization is a VMM feature that automatically performs load balancing of virtual machines running in a host cluster. At the bottom of the window there is a checkbox with which you can enable energy-saving features. This checkbox is not available by default, but can be enabled by selecting the option of automatic transfer of virtual machines for workload distribution, as shown in Figure 4.

Figure 4. Enable automatic load balancing before enabling power consumption optimization.
Before you turn on the power saving function, you should pay attention to two parameters.
Another parameter is the frequency of load balancing. This number determines how often VMM checks if virtual machines need Live Migrations. The reason why you should pay attention to this value is because it is also used to optimize nutrition. When nodes are de-energized as a result of the power optimization function, VMM by default checks every 10 minutes to see if nodes need to be returned online.
If you click the “Settings” button, shown in Figure 4, you will be taken to the “Energy Optimization Schedule Settings” dialog box, shown in Figure 5. As you can see, this allows you to configure the energy optimization schedule and the corresponding set of threshold values.

Figure 5. Setting the schedule for optimizing energy consumption
Keep in mind that the cluster nodes will not automatically shut down only after reaching the set time. Before shutting down
Energy saving
Power management is a problem for large and small data centers because power and cooling typically make up a significant percentage of the total