Professional Documents
Culture Documents
VS5ICM M10 ResourceMonitoring
VS5ICM M10 ResourceMonitoring
Module 10
Module Lessons
Lesson 1:
Lesson 2:
Resource Controls
Lesson 3:
Resource Pools
Lesson 4:
Lesson 5:
Using Alarms
10-4
2011 VMware Inc. All rights reserved
Lesson 1:
Virtual CPU and Memory Concepts
10-5
2011 VMware Inc. All rights reserved
Learner Objectives
10-6
2011 VMware Inc. All rights reserved
virtual machine
application
operating
system
VMware
ESXi host
guest OS
virtual memory
guest OS
physical memory
ESXi host
physical memory
10-7
2011 VMware Inc. All rights reserved
On
On
Off
On
256MB
256MB
256MB
256MB
VM 2
VM 3
VM 1
256 MB 256 MB 256 MB
.vswp .vswp .vswp
10-8
2011 VMware Inc. All rights reserved
10-9
2011 VMware Inc. All rights reserved
Memory Compression
4K
Guest OS
physical memory
2K
2K
10-10
2011 VMware Inc. All rights reserved
Virtual SMP
10-11
2011 VMware Inc. All rights reserved
Hyperthreading
10-12
2011 VMware Inc. All rights reserved
10-13
2011 VMware Inc. All rights reserved
10-14
2011 VMware Inc. All rights reserved
Lesson 2:
Resource Controls
10-15
2011 VMware Inc. All rights reserved
Learner Objectives
10-16
2011 VMware Inc. All rights reserved
Resource Contention
10-17
2011 VMware Inc. All rights reserved
available capacity
limit
0 MHz/MB
A virtual machine will
power on only if its reservation
can be guaranteed.
10-18
2011 VMware Inc. All rights reserved
Number of shares
Change number of
shares
Power on virtual
machine
Power off virtual
machine
1000
1000
1000
VM A
VM B
VM C
1000
3000
1000
VM A
VM B
VM C
1000
3000
1000
1000
VM A
VM B
VM C
VM D
1000
3000
1000
VM A
VM B
VM D
10-19
2011 VMware Inc. All rights reserved
Managed by VMkernel
VMware
vSphere Virtual
Symmetric
Multiprocessing
Hyperthreading
CPU
cycles
Load balancing
NUMA
Transparent page
sharing
vmmemctl
RAM
Configured by
virtual machine
creator
Limit
Reservation
Share allocation
Limit
Memory compression
Available
memory
Disk
bandwidth
Network
bandwidth
Reservation
Share allocation
Adjustable by
administrator
Virtual machine
file location
Multipathing
NIC teaming
Traffic shaping
10-20
2011 VMware Inc. All rights reserved
10-21
2011 VMware Inc. All rights reserved
Lesson 3:
Resource Pools
10-22
2011 VMware Inc. All rights reserved
Learner Objectives
10-23
2011 VMware Inc. All rights reserved
A resource pool is a
logical abstraction for
hierarchically managing
CPU and memory
resources.
It is used on standalone
hosts or clusters enabled
for vSphere Distributed
Resource Scheduler
(DRS).
resource
pools
root
resource
pool
10-24
2011 VMware Inc. All rights reserved
10-25
2011 VMware Inc. All rights reserved
Expandable reservation?
10-26
2011 VMware Inc. All rights reserved
10-27
2011 VMware Inc. All rights reserved
10-28
2011 VMware Inc. All rights reserved
10-29
2011 VMware Inc. All rights reserved
10-30
2011 VMware Inc. All rights reserved
Expandable Reservation
Root resource pool
total CPU: 10,200MHz
total memory: 3,000MB
Retail pool
reservation: 3,000MHz
expandable reservation: Yes
eCommerce Apps
pool
reservation:
1,200MHz
eCommerce Web
pool
reservation:
1,000MHz
expandable? Yes
expandable? No
10-31
2011 VMware Inc. All rights reserved
reservation: 3,000MHz
expandable reservation: No
eCommerce Apps
pool
reservation:
1,200MHz
eCommerce Web
pool
reservation:
1,000MHz
expandable? Yes
expandable? No
VM1
VM2
R=400
R=300
VM3
R=500
10-32
2011 VMware Inc. All rights reserved
Retail pool
reservation: 3,000MHz
expandable reservation: Yes
**full reservation used**
eCommerce Apps
pool
reservation:
1,200MHz
eCommerce Web
pool
reservation:
1,000MHz
expandable? Yes
expandable? Yes
VM4
R=500
VM5
R=500
VM6
R=500
VM7
R=500
VM1
R=400
VM2
R=300
VM3
R=500
10-33
2011 VMware Inc. All rights reserved
Succeed
Yes
Increase a pools
reservation.
No
Fail
No
Expandable
reservation?
10-34
2011 VMware Inc. All rights reserved
10-35
2011 VMware Inc. All rights reserved
10-36
2011 VMware Inc. All rights reserved
10-37
2011 VMware Inc. All rights reserved
Lab 15
In this lab, you will create and use resource pools on an ESXi host.
1. Create CPU contention.
2. Create a resource pool named Fin-Test.
3. Create a resource pool named Fin-Prod.
4. Verify resource pool functionality.
10-38
2011 VMware Inc. All rights reserved
10-39
2011 VMware Inc. All rights reserved
Lesson 4:
Monitoring Resource Usage
10-40
2011 VMware Inc. All rights reserved
Learner Objectives
CPU
Memory
Disk
Network bandwidth
10-41
2011 VMware Inc. All rights reserved
Performance-Tuning Methodology
Assess performance.
Use appropriate monitoring
tools.
Record a numerical
benchmark before changes.
Identify the limiting resource.
Make more resources
available.
Allocate more.
Reduce competition.
Log your changes.
Benchmark again.
10-42
2011 VMware Inc. All rights reserved
Iometer
Task Manager
10-43
2011 VMware Inc. All rights reserved
10-44
2011 VMware Inc. All rights reserved
Advanced charts:
10-45
2011 VMware Inc. All rights reserved
CPU Usage
chart for host
10-46
2011 VMware Inc. All rights reserved
10-47
2011 VMware Inc. All rights reserved
10-48
2011 VMware Inc. All rights reserved
10-49
2011 VMware Inc. All rights reserved
10-50
2011 VMware Inc. All rights reserved
10-51
2011 VMware Inc. All rights reserved
Chart option
Storage type
Host
Datastore
Host
Storage adapter
FC
Host
Storage path
FC, iSCSI
Virtual machine
Datastore
Virtual machine
Virtual disk
10-52
2011 VMware Inc. All rights reserved
The average time the physical device takes to complete a SCSI command.
High numbers (greater than 1520ms) represent a slow or overworked
array.
10-53
2011 VMware Inc. All rights reserved
Measure the effective bandwidth between the virtual machine and its
peer system.
Check for dropped receive packets and dropped transmit packets.
10-54
2011 VMware Inc. All rights reserved
Lab 16
In this lab, you will see how CPU workload is reflected by system
monitoring tools.
1. Use vCenter Server to monitor CPU utilization.
2. Undo changes made to your virtual machines.
10-55
2011 VMware Inc. All rights reserved
CPU
Memory
Disk
Network bandwidth
10-56
2011 VMware Inc. All rights reserved
Lesson 5:
Using Alarms
10-57
2011 VMware Inc. All rights reserved
Learner Objectives
10-58
2011 VMware Inc. All rights reserved
What Is an Alarm?
An alarm is a notification that
occurs in response to selected
events or conditions that occur
with an object in the inventory.
Default alarms exist for various
inventory objects:
Many default alarms for hosts and
virtual machines
Default
datacenter
alarms
(partial list)
10-59
2011 VMware Inc. All rights reserved
Alarm Settings
To create an alarm, right-click the
inventory object and select Alarm >
Add Alarm.
10-60
2011 VMware Inc. All rights reserved
Alarm Triggers
An alarm requires a trigger. Types of triggers:
Condition or state trigger Monitors the current condition or state.
Example:
10-61
2011 VMware Inc. All rights reserved
10-62
2011 VMware Inc. All rights reserved
10-63
2011 VMware Inc. All rights reserved
Avoid
small
fluctuations.
Avoid
repeats.
10-64
2011 VMware Inc. All rights reserved
Configuring Actions
Every alarm type has these actions:
Send a notification email, send a notification trap, or run a command.
Virtual machine alarms and host alarms have more actions.
10-65
2011 VMware Inc. All rights reserved
Select SNMP to
specify trap
destinations.
10-66
2011 VMware Inc. All rights reserved
10-67
2011 VMware Inc. All rights reserved
Lab 17
In this lab, you will demonstrate the vCenter Server alarm feature.
1. Create a virtual machine alarm that monitors for a condition.
2. Create a virtual machine alarm that monitors for an event.
3. Trigger virtual machine alarms and acknowledge them.
4. Disable virtual machine alarms.
10-68
2011 VMware Inc. All rights reserved
10-69
2011 VMware Inc. All rights reserved
Key Points
10-70
2011 VMware Inc. All rights reserved