Top Banner
41
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Availability Configuration PerformanceCapacity.
Page 2: Availability Configuration PerformanceCapacity.

Key Metric, Performance, and Capacity Monitoring Using Microsoft System Center 2012 R2 Operations ManagerRaymond Chou | MVP, vTSP

Page 3: Availability Configuration PerformanceCapacity.
Page 4: Availability Configuration PerformanceCapacity.

Understand Different Performance and Capacity Measurements for Hyper-VLook at scenarios to identify performance issuesUse System Center Operations Manager for centralized monitoring

Session Objectives

Page 5: Availability Configuration PerformanceCapacity.

What is causing VMs to operate slowly?

Page 6: Availability Configuration PerformanceCapacity.

What do we monitor?

Availability Configuration

Performance Capacity

Page 7: Availability Configuration PerformanceCapacity.

Monitoring Hyper-V Performance / Capacity

CPU

• Hyper-V Hypervisor Logical Processor

• Hyper-V Hypervisor Root Virtual Processor

• Hyper-V Hypervisor Virtual Processor

• Processor

Memory

• Hyper-V Hypervisor Partition

• Hyper-V Hypervisor Root Partition

• Hyper-V Dynamic Memory Balancer

• Hyper-V Dynamic Memory VM

• Memory\ Available Mbytes

• Memory\Pages/sec

Network

• Hyper-V Virtual Switch

• Hyper-V Legacy Network Adapter

• Hyper-V Virtual Network Adapter

• Network Interface

Storage

• Logical Disk• Hyper-V Virtual

IDE Controller• Hyper-V Virtual

Storage Device

Page 8: Availability Configuration PerformanceCapacity.

Measure CPU Utilization across all nodes in the ClusterDetermine if failover scenarios are tolerable

Is Processing Power Enough?

Page 9: Availability Configuration PerformanceCapacity.

Is this the correct way to measure Processor Utilization?

Task Manager?

Page 10: Availability Configuration PerformanceCapacity.

Why monitoring Host CPU counters are inaccurate?

Page 11: Availability Configuration PerformanceCapacity.

Monitoring Hyper-V Performance / Capacity

CPU

• Hyper-V Hypervisor Logical Processor

• Hyper-V Hypervisor Root Virtual Processor

• Hyper-V Hypervisor Virtual Processor

• Processor

{LPTR} Measure guest operating system processor utilization [Hyper-V Hypervisor Logical Processor(_Total)\% Total Run Time]• Less than 60% consumed = Healthy• 60% - 89% consumed = Monitor or Caution• 90% - 100% consumed = Critical, performance will be

adversely affected

{VPTR} [\Hyper-V Hypervisor Virtual Processor(*)\%Guest Run Time]

Guest operating system processors do not have a set affinity to physical processors/cores

Page 12: Availability Configuration PerformanceCapacity.

Demo

Using Performance Monitor to monitor Processor Utilization Metrics

Page 13: Availability Configuration PerformanceCapacity.

High LPTR = Too many VMs and Virtual Processors consumingLow LPTR, High VPTR = the VM needs more Virtual ProcessorsHigh LPTR, Low VPTR = Too many VPTR has been assigned

Interpreting the Values

Page 14: Availability Configuration PerformanceCapacity.

Determine if failover scenarios are tolerableIs our Dynamic Memory enabled VMs optimized?Do we need more or faster performing Memory Chips?

Do we have enough Memory?

Page 15: Availability Configuration PerformanceCapacity.

Monitoring Memory PerformanceMemory

• Memory\ Available Mbytes

• Memory\Pages/sec

• Measure available memory on the Hyper-V host operating system [Memory\Available Mbytes]• 50% of free memory available or more = Healthy• 25% of free memory available = Monitor• 10% of free memory available = Warning• Less than 5% of free memory available = Critical,

performance will be adversely affected

• Measure available memory on the Hyper-V host operating system [\Memory\Pages/sec ]• Less than 500 = Healthy• 500 - 1000 = Monitor or Caution• Greater than 1000 = Critical, performance will be

adversely affected

Page 16: Availability Configuration PerformanceCapacity.

Dynamic Memory Demand

Page 17: Availability Configuration PerformanceCapacity.

Monitoring Dynamic Memory PerformanceDynamic Memory

• Hyper-V Dynamic Memory Balancer

• Hyper-V Dynamic Memory VM

• Measure the available Dynamic Memory [Hyper-V Dynamic Memory Balancer\Available Memory]

• Measure the pressure of Memory Demand on the VM [Hyper-V Dynamic Memory Balancer\Average Pressure]• Under 100 = Healthy• Greater than 100 = Critical, performance will be

adversely affected

Page 18: Availability Configuration PerformanceCapacity.

Demo

Using Performance Monitor to monitor Dynamic Memory Utilization Metrics

Page 19: Availability Configuration PerformanceCapacity.

Network Utilization determines if you need to load balance across NICsFaulty network cards can be huge load contributor

Is the Network a bottleneck?

Page 20: Availability Configuration PerformanceCapacity.

• Simple Network Tests• Test Network Latency – Ping

• Test Packet Loss – pathping

• Test Network File Transfers – Copy

Monitoring Physical Network Performance

Physical Network

• Hyper-V Virtual Switch

• Hyper-V Legacy Network Adapter

• Hyper-V Virtual Network Adapter

• Network Interface

• Packet Outbound/Inbound

Page 21: Availability Configuration PerformanceCapacity.

Monitoring Physical Network Performance

Physical Network

• Hyper-V Virtual Switch

• Hyper-V Legacy Network Adapter

• Hyper-V Virtual Network Adapter

• Network Interface

• Packet Outbound/Inbound

• Network Utilization Monitoring: \Network Interface(*)\Bytes Total/sec

• Compare the result against the NIC capability• A 1GB NIC= 125 million Bytes/sec• A 10GB NIC = 1250 million Bytes/sec

• Less than 40% = Healthy• 41%-64% = Monitor or Caution• 65-100% = Critical, performance will be adversely

affected

Page 22: Availability Configuration PerformanceCapacity.

Demo

Using Performance Monitor to monitor Network Utilization Metrics

Page 23: Availability Configuration PerformanceCapacity.

Monitoring Physical Network Performance

Physical Network

• Hyper-V Virtual Switch

• Hyper-V Legacy Network Adapter

• Hyper-V Virtual Network Adapter

• Network Interface

• Packet Outbound/Inbound

• Bottlenecks: \Network Interface(*)\Output Queue Length • 0 = Healthy• 1-2 = Monitor or Caution• Greater than 2 = Critical, performance will be

adversely affected.

• MTU settings must be the same for ALL

Page 24: Availability Configuration PerformanceCapacity.

Hyper-V Virtual Switch\Bytes/sec Amount of traffic that is flowing through that virtual switch

Hyper-V Virtual Network Adapter\Bytes/sec

Determine how much traffic is going through to the VM.

For Legacy Adapters, Hyper-V Legacy Network Adapter\Bytes sent/secHyper-V Legacy Network Adapter\Bytes Received/sec

Monitoring the Hyper-V Switch Layer

Page 25: Availability Configuration PerformanceCapacity.

Calculate IOPS needs versus what is capableDisk Errors

Is Storage causing slow experiences?

Page 26: Availability Configuration PerformanceCapacity.

Physical Disk = physical hardwareLogical Disk = partitions / LUNs

Logical Disk or Physical Disk?

Which would you choose?

Page 27: Availability Configuration PerformanceCapacity.

Monitoring Storage Throughput and IOPSStorage

• Logical Disk• Hyper-V Virtual

IDE Controller• Hyper-V Virtual

Storage Device

• Use Data Collector Sets• Measure Disk Latency –

• \Logical Disk(*)\Avg. sec/Read • \Logical Disk(*)\Avg. sec/Write

• Under Value of 0.015 sec (15ms) = Healthy• Between the Value of 0.015 and 0.025 sec (15ms –

25ms) = Monitor or Caution• Above the value of 0.026 sec (25ms) = Critical,

performance affected

• Logical Disk\Current Disk Queue Length

Page 28: Availability Configuration PerformanceCapacity.

Monitoring Storage Throughput and IOPSStorage

• Logical Disk\Disk Transfers/sec (_Total)

Page 29: Availability Configuration PerformanceCapacity.

Sometimes we just don’t have the time…Use Quick ChecksCheck if all Integration Services is updatedWhere possible use the Synthetic Network CardCheck your Running Task List (Task Manager) and remove unneeded ServicesRemove unnecessary User SessionsUse Central Monitoring Tools

Page 30: Availability Configuration PerformanceCapacity.

System Center Operations Manager 2012 R2

Using a Central Monitoring Tool

Centrally Monitor all Hyper-V Servers

Configure Alerts on Thresholds

Historical Reporting

Page 31: Availability Configuration PerformanceCapacity.

Demo

Creating Hyper-V Performance Monitoring in SCOM 2012 R2

Page 32: Availability Configuration PerformanceCapacity.

PREVIEW

Veeam Hyper-V Management Pack

Page 33: Availability Configuration PerformanceCapacity.

Anti-Virus Exclusions MUST be setCheckpoints take up space. Manage it well.Manage Dynamic Memory Pressure extensively

General Tips

Page 34: Availability Configuration PerformanceCapacity.

Platform Application Monitoring

Foundation

Floors

Tenants

Hyper-V

Operating System

Applications

Page 36: Availability Configuration PerformanceCapacity.

Monitoring Hyper-V Bloghttp://blogs.msdn.com/b/tvoellm/archive/2009/04/23/monitoring-hyper-v-performance.aspx

Monitoring Processor Utilizationhttp://blogs.technet.com/b/chrisavis/archive/2013/03/25/performance-management-monitoring-cpu-resources.aspx

Monitoring Network Interfacehttp://msdn.microsoft.com/en-us/library/ms803962.aspx

Monitoring Hyper-V WhitePaper (by Raymond Chou)

Releasing on 19th May 2014 @ http://mymomexperience.blogspot.com

Additional Resources

Page 37: Availability Configuration PerformanceCapacity.

Come Visit Us in the Microsoft Solutions Experience!

Look for Datacenter and Infrastructure ManagementTechExpo Level 1 Hall CD

For More InformationWindows Server 2012 R2http://technet.microsoft.com/en-US/evalcenter/dn205286

Windows Server

Microsoft Azure

Microsoft Azurehttp://azure.microsoft.com/en-us/

System Center

System Center 2012 R2http://technet.microsoft.com/en-US/evalcenter/dn205295

Azure PackAzure Packhttp://www.microsoft.com/en-us/server-cloud/products/windows-azure-pack

Page 38: Availability Configuration PerformanceCapacity.

Resources

Learning

Microsoft Certification & Training Resources

www.microsoft.com/learning

msdn

Resources for Developers

http://microsoft.com/msdn

TechNet

Resources for IT Professionals

http://microsoft.com/technet

Sessions on Demand

http://channel9.msdn.com/Events/TechEd

Page 39: Availability Configuration PerformanceCapacity.

Complete an evaluation and enter to win!

Page 40: Availability Configuration PerformanceCapacity.

Evaluate this session

Scan this QR code to evaluate this session.

Page 41: Availability Configuration PerformanceCapacity.

© 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.