使用容量和性能解决方案(已弃用)规划 Hyper-V 虚拟机容量Plan Hyper-V virtual machine capacity with the Capacity and Performance solution (deprecated)

容量和性能符号

Note

容量和性能解决方案已弃用。The Capacity and Performance solution has been deprecated. 已安装该解决方案的客户可以继续使用它,但“容量和性能”无法添加到任何新的工作区。Customers who have already installed the solution can continue to use it, but Capacity and Performance can not be added to any new workspaces.

可以使用 Monitor 中的容量和性能解决方案来帮助了解 Hyper-V 服务器的容量。You can use the Capacity and Performance solution in Monitor to help you understand the capacity of your Hyper-V servers. 可以通过该解决方案查看在这些 Hyper-V 主机上运行的主机和 VM 的总体利用率(CPU、内存和磁盘),从而深入了解 Hyper-V 环境。The solution provides insights into your Hyper-V environment by showing you the overall utilization (CPU, memory, and disk) of the hosts and the VMs running on those Hyper-V hosts. 将收集在这些 Hyper-V 主机上运行的所有主机和 VM 的 CPU、内存和磁盘的指标。Metrics are collected for CPU, memory, and disks across all your hosts and the VMs running on them.

解决方案:The solution:

  • 显示 CPU 和内存利用率最高和最低的主机Shows hosts with highest and lowest CPU and memory utilization
  • 显示 CPU 和内存利用率最高和最低的 VMShows VMs with highest and lowest CPU and memory utilization
  • 显示 IOPS 和吞吐量利用率最高和最低的 VMShows VMs with highest and lowest IOPS and throughput utilization
  • 显示哪些 VM 运行在哪些主机上Shows which VMs are running on which hosts
  • 显示群集共享卷中吞吐量、IOPS 和延迟较高的前几个磁盘Shows the top disks with high throughput, IOPS, and latency in cluster shared volumes
  • 允许根据组进行自定义和筛选Allows you to customize and filter based on groups

Note

名为“容量管理”的旧版容量和性能解决方案需要 System Center Operations Manager 和 System Center Virtual Machine Manager。The previous version of the Capacity and Performance solution called Capacity Management required both System Center Operations Manager and System Center Virtual Machine Manager. 此更新后的解决方案没有这些依赖项。This updated solution doesn't have those dependencies.

连接的源Connected sources

下表介绍了该解决方案支持的连接的源。The following table describes the connected sources that are supported by this solution.

连接的源Connected Source 支持Support 说明Description
Windows 代理Windows agents Yes 解决方案从 Windows 代理收集容量和性能数据信息。The solution collects capacity and performance data information from Windows agents.
Linux 代理Linux agents No 解决方案不从直接 Linux 代理收集容量和性能数据信息。The solution does not collect capacity and performance data information from direct Linux agents.
Azure 存储帐户Azure storage account No Azure 存储不包括容量和性能数据。Azure storage does not include capacity and performance data.

先决条件Prerequisites

  • 必须在 Windows Server 2012 或更高版本的 Hyper-V 主机而非虚拟机上安装 Windows 或 Operations Manager 代理。Windows or Operations Manager agents must be installed on Windows Server 2012 or higher Hyper-V hosts, not virtual machines.

配置Configuration

执行以下步骤,将容量和性能解决方案添加到工作区。Perform the following step to add the Capacity and Performance solution to your workspace.

管理包Management packs

如果 SCOM 管理组已连接到 Log Analytics 工作区,则添加该解决方案时会在 SCOM 中安装以下管理包。If your SCOM management group is connected to your Log Analytics workspace, then the following management packs will be installed in SCOM when you add this solution. 无需对这些管理包进行任何配置或维护。There is no configuration or maintenance of these management packs required.

  • Microsoft.IntelligencePacks.CapacityPerformanceMicrosoft.IntelligencePacks.CapacityPerformance

1201 事件类似于:The 1201 event resembles:

New Management Pack with id:"Microsoft.IntelligencePacks.CapacityPerformance", version:"1.10.3190.0" received.

更新容量和性能解决方案后,版本号会更改。When the Capacity and Performance solution is updated, the version number will change.

使用解决方案Using the solution

将容量和性能解决方案添加到工作区时,会将“容量和性能”添加到“概览”仪表板。When you add the Capacity and Performance solution to your workspace, the Capacity and Performance is added to the Overview dashboard. 此磁贴显示当前处于活动状态的 Hyper-V 主机的计数,以及曾在所选时间段内受监视的活动虚拟机的计数。This tile displays a count of the number of currently active Hyper-V hosts and the number of active virtual machines that were monitored for the time period selected.

“容量和性能”磁贴

查看利用率Review utilization

单击“容量和性能”磁贴,打开“容量和性能”仪表板。Click on the Capacity and Performance tile to open the Capacity and Performance dashboard. 仪表板包含下表中的列。The dashboard includes the columns in the following table. 每个列按照指定范围和时间范围列出了匹配该列条件的最多十项。Each column lists up to ten items matching that column's criteria for the specified scope and time range. 可单击该列底部的“查看全部”或单击列标题运行返回所有记录的日志搜索。You can run a log search that returns all records by clicking See all at the bottom of the column or by clicking the column header.

  • 主机Hosts
    • 主机 CPU 利用率:根据所选时间段显示主计算机的 CPU 利用率图形趋势和主机的列表。Host CPU Utilization Shows a graphical trend of the CPU utilization of host computers and a list of hosts, based on the selected time period. 将鼠标悬停在折线图上即可查看特定时间点的详细信息。Hover over the line chart to view details for a specific point in time. 单击图表即可在日志搜索中查看更多详细信息。Click the chart to view more details in log search. 单击任意主机名称即可打开日志搜索并查看托管 VM 的 CPU 计数器详细信息。Click any host name to open log search and view CPU counter details for hosted VMs.
    • 主机内存利用率:根据所选时间段显示主计算机的内存利用率图形趋势和主机的列表。Host Memory Utilization Shows a graphical trend of the memory utilization of host computers and a list of hosts, based on the selected time period. 将鼠标悬停在折线图上即可查看特定时间点的详细信息。Hover over the line chart to view details for a specific point in time. 单击图表即可在日志搜索中查看更多详细信息。Click the chart to view more details in log search. 单击任意主机名称即可打开日志搜索并查看托管 VM 的内存计数器详细信息。Click any host name to open log search and view memory counter details for hosted VMs.
  • 虚拟机Virtual Machines
    • VM CPU 利用率:根据所选时间段显示虚拟机的 CPU 利用率图形趋势和虚拟机的列表。VM CPU Utilization Shows a graphical trend of the CPU utilization of virtual machines and a list of virtual machines, based on the selected time period. 将鼠标悬停在折线图上即可查看前 3 个 VM 在特定时间点的详细信息。Hover over the line chart to view details for a specific point in time for the top 3 VMs. 单击图表即可在日志搜索中查看更多详细信息。Click the chart to view more details in log search. 单击任意 VM 名称即可打开日志搜索并查看 VM 的聚合 CPU 计数器详细信息。Click any VM name to open log search and view aggregated CPU counter details for the VM.
    • VM 内存利用率:根据所选时间段显示虚拟机的内存利用率图形趋势和虚拟机的列表。VM Memory Utilization Shows a graphical trend of the memory utilization of virtual machines and a list of virtual machines, based on the selected time period. 将鼠标悬停在折线图上即可查看前 3 个 VM 在特定时间点的详细信息。Hover over the line chart to view details for a specific point in time for the top 3 VMs. 单击图表即可在日志搜索中查看更多详细信息。Click the chart to view more details in log search. 单击任意 VM 名称即可打开日志搜索并查看 VM 的聚合内存计数器详细信息。Click any VM name to open log search and view aggregated memory counter details for the VM.
    • VM 总磁盘 IOPS:根据所选时间段显示虚拟机的总磁盘 IOPS 图形趋势和包含其 IOPS 的虚拟机的列表。VM Total Disk IOPS Shows a graphical trend of the total disk IOPS for virtual machines and a list of virtual machines with the IOPS for each, based on the selected time period. 将鼠标悬停在折线图上即可查看前 3 个 VM 在特定时间点的详细信息。Hover over the line chart to view details for a specific point in time for the top 3 VMs. 单击图表即可在日志搜索中查看更多详细信息。Click the chart to view more details in log search. 单击任意 VM 名称即可打开日志搜索并查看 VM 的聚合磁盘 IOPS 计数器详细信息。Click any VM name to open log search and view aggregated disk IOPS counter details for the VM.
    • VM 总磁盘吞吐量:根据所选时间段显示虚拟机的总磁盘吞吐量图形趋势和包含其总磁盘吞吐量的虚拟机的列表。VM Total Disk Throughput Shows a graphical trend of the total disk throughput for virtual machines and a list of virtual machines with the total disk throughput for each, based on the selected time period. 将鼠标悬停在折线图上即可查看前 3 个 VM 在特定时间点的详细信息。Hover over the line chart to view details for a specific point in time for the top 3 VMs. 单击图表即可在日志搜索中查看更多详细信息。Click the chart to view more details in log search. 单击任意 VM 名称即可打开日志搜索并查看 VM 的聚合总磁盘吞吐量计数器详细信息。Click any VM name to open log search and view aggregated total disk throughput counter details for the VM.
  • 群集共享卷Clustered Shared Volumes
    • 总吞吐量:显示群集共享卷上读取数和写入数的总和。Total Throughput Shows the sum of both reads and writes on clustered shared volumes.
    • 总 IOPS:显示群集共享卷上每秒输入/输出操作数的总和。Total IOPS Shows the sum of input/output operations per second on clustered shared volumes.
    • 总延迟:显示群集共享卷上的总延迟。Total Latency Shows the total latency on clustered shared volumes.
  • 主机密度:顶部磁贴显示适用于解决方案的主机和虚拟机的总数。Host Density The top tile shows the total number of hosts and virtual machines available to the solution. 单击顶部磁贴即可在日志搜索中查看其他详细信息。Click the top tile to view additional details in log search. 此外还列出了所有主机以及所托管的虚拟机数。Also lists all hosts and the number of virtual machines that are hosted. 单击某个主机即可深入查看日志搜索中的 VM 结果。Click a host to drill into the VM results in a log search.

仪表板“主机”边栏选项卡

仪表板虚拟机边栏选项卡

评估性能Evaluate performance

不同组织的生产计算环境相差很大。Production computing environments differ greatly from one organization to another. 另外,容量和性能工作负荷可能取决于 VM 的运行方式以及你所认为正常的标准。Also, capacity and performance workloads might depend on how your VMs are running, and what you consider normal. 特定的用于衡量性能的过程可能不适用于环境。Specific procedures to help you measure performance would probably not apply to your environment. 因此,更通用的说明性指导帮助性更大。So, more generalized prescriptive guidance is better suited to help. Azure 发布了各种说明性的关于如何衡量性能的指导文章。Azure publishes a variety of prescriptive guidance articles to help you measure performance.

总之,该解决方案从包括性能计数器在内的各种源收集容量和性能数据。To summarize, the solution collects capacity and performance data from a variety of sources including performance counters. 请使用在解决方案的各个图面中提供的该容量和性能数据,并将结果与 Measuring Performance on Hyper-V(衡量 Hyper-V 上的性能)一文中的结果进行比较。Use that capacity and performance data that presented in various surfaces in the solution and compare your results to those at the Measuring Performance on Hyper-V article. 虽然该文已发布了一段时间,但指标、注意事项和准则仍然有效。Although the article was published some time ago, the metrics, considerations, and guidelines are still valid. 该文包含指向其他有用资源的链接。The article contains links to other useful resources.

示例日志搜索Sample log searches

下表提供的示例日志搜索针对该解决方案所收集和计算的容量和性能数据。The following table provides sample log searches for capacity and performance data collected and calculated by this solution.

查询Query 说明Description
所有主机内存配置All host memory configurations Perf 其中 ObjectName == "Capacity and Performance" 且 CounterName == "Host Assigned Memory MB" summarize MB = avg(CounterValue) by InstanceNamePerf | where ObjectName == "Capacity and Performance" and CounterName == "Host Assigned Memory MB" | summarize MB = avg(CounterValue) by InstanceName
所有 VM 内存配置All VM memory configurations Perf 其中 ObjectName == "Capacity and Performance" 且 CounterName == "VM Assigned Memory MB" summarize MB = avg(CounterValue) by InstanceNamePerf | where ObjectName == "Capacity and Performance" and CounterName == "VM Assigned Memory MB" | summarize MB = avg(CounterValue) by InstanceName
所有 VM 的总磁盘 IOPS 明细Breakdown of Total Disk IOPS across all VMs Perf 其中 ObjectName == "Capacity and Performance" 且 (CounterName == "VHD Reads/s" 或 CounterName == "VHD Writes/s") summarize AggregatedValue = avg(CounterValue) by bin(TimeGenerated, 1h), CounterName, InstanceNamePerf | where ObjectName == "Capacity and Performance" and (CounterName == "VHD Reads/s" or CounterName == "VHD Writes/s") | summarize AggregatedValue = avg(CounterValue) by bin(TimeGenerated, 1h), CounterName, InstanceName
所有 VM 的总磁盘吞吐量明细Breakdown of Total Disk Throughput across all VMs Perf 其中 where ObjectName == "Capacity and Performance" 且 (CounterName == "VHD Read MB/s" 或 CounterName == "VHD Write MB/s") summarize AggregatedValue = avg(CounterValue) by bin(TimeGenerated, 1h), CounterName, InstanceNamePerf | where ObjectName == "Capacity and Performance" and (CounterName == "VHD Read MB/s" or CounterName == "VHD Write MB/s") | summarize AggregatedValue = avg(CounterValue) by bin(TimeGenerated, 1h), CounterName, InstanceName
所有 CSV 的总 IOPS 明细Breakdown of Total IOPS across all CSVs Perf 其中 ObjectName == "Capacity and Performance" 且 (CounterName == "CSV Reads/s" 或 CounterName == "CSV Writes/s") summarize AggregatedValue = avg(CounterValue) by bin(TimeGenerated, 1h), CounterName, InstanceNamePerf | where ObjectName == "Capacity and Performance" and (CounterName == "CSV Reads/s" or CounterName == "CSV Writes/s") | summarize AggregatedValue = avg(CounterValue) by bin(TimeGenerated, 1h), CounterName, InstanceName
所有 CSV 的总吞吐量明细Breakdown of Total Throughput across all CSVs Perf 其中 ObjectName == "Capacity and Performance" 且 (CounterName == "CSV Reads/s" 或 CounterName == "CSV Writes/s") summarize AggregatedValue = avg(CounterValue) by bin(TimeGenerated, 1h), CounterName, InstanceNamePerf | where ObjectName == "Capacity and Performance" and (CounterName == "CSV Reads/s" or CounterName == "CSV Writes/s") | summarize AggregatedValue = avg(CounterValue) by bin(TimeGenerated, 1h), CounterName, InstanceName
所有 CSV 的总延迟明细Breakdown of Total Latency across all CSVs Perf 其中 ObjectName == "Capacity and Performance" 且 (CounterName == "CSV Read Latency" 或 CounterName == "CSV Write Latency") summarize AggregatedValue = avg(CounterValue) by bin(TimeGenerated, 1h), CounterName, InstanceNamePerf | where ObjectName == "Capacity and Performance" and (CounterName == "CSV Read Latency" or CounterName == "CSV Write Latency") | summarize AggregatedValue = avg(CounterValue) by bin(TimeGenerated, 1h), CounterName, InstanceName

后续步骤Next steps