Hig
he
r Is
ola
tio
n, H
igh
er
Co
sts H
ighe
r De
nsity, Lo
we
r Co
sts
Databases Instances
Virtual Machines
Sales_1
Marketing_1
Online_Sales
ERP_10
ERP_10
Currently a variety of consolidation approaches exist and are utilized.
Typically, as isolation goes up, density goes down and operation cost
goes up.
IT Managed Environment
Schemas
Hig
he
r Is
ola
tio
n, H
igh
er
Co
sts H
ighe
r De
nsity, Lo
we
r Co
sts
Virtual Machine consolidation
Strong isolation between applications
Ease of capturing and moving execution loads
Out of the box High Availability configuration
Flexible storage management
Fewer systems, but just as many OS images to manage
Increased resource usage
Databases
DB_1
DB_2
DB_3
Consolidate_1
Instances
Sales_1
Marketing_1
Online_Sales
ERP_10
ERP_10
Virtual Machines
Instance level consolidation
Multiple Instances running on one system
Full schema and security isolation
Partial system resource & management isolation
Potential conflicts in namespace, resources and system roles
IO, System Memory and CPU are typical density limiters
Hig
he
r Is
ola
tio
n, H
igh
er
Co
sts
High
er D
en
sity, Low
er C
osts
Databases
DB_1
DB_2
DB_3
Consolidate_1
Instances
Virtual Machines
Sales_1
Marketing_1
Online_Sales
ERP_10
ERP_10
Hig
he
r Is
ola
tio
n, H
igh
er
Co
sts H
ighe
r De
nsity, Lo
we
r Co
sts
Database level consolidation
Multiple databases are collapsed into a single instance Common security, manageability and compatibility models required
Might require changes to existing applications and scripts
Lower manageability costs
Better resource isolation and allocation capabilities through Resource
Governor
Databases
DB_1
DB_2
DB_3
Consolidate_1
Instances
Virtual Machines
Sales_1
Marketing_1
Online_Sales
ERP_10
ERP_10
Higher Isolation
Lower Density Instances Virtual
Machines Databases
Higher Density
Lower Isolation
Sysprep SQL setup Data Tier App
Utility Control Point and Managed Instances
>64 logical processors
New in
SQL 2008
R2 ® Resource Governor
Windows Server
Resource Manager
(WSRM)
Microsoft Assessment and Planning (MAP)
failover cluster
in guest VMs
System Center VM
Manager
Hyper-V
Live Migration
••
VHD
Size
On disk
storage space
needed
Fixed Sized Virtual Hard Disk
VHD
Size
On disk
storage space
needed
Dynamically Expanding Virtual Hard Disk
0
0.001
0.002
0.003
0.004
0.005
0.006
0.007
0.008
0.009
0
1,000
2,000
3,000
4,000
5,000
6,000
7,000
Low OLTP Workload Med OLTP Workload High OLTP Workload
Tota
l R
ead
IO
’s p
er
Seco
nd
Dedicated Pass-through vs. VHDs on Shared Disks
Total IO/s per Second and Disk Latency
Total Reads/sec
(Dedicated LUNs)
Total Reads/sec
(Common Volume
with VHDs)
Average Read
Latency (Dedicated
LUNs)
Average Read
Latency (Common
Volume with VHDs)
0
500
1000
1500
2000
2500
0
5
10
15
20
25
30
35
40
45
50
55
60
1Instances 2Instances 3Instances 4Instances
Batches/sec_Native
Batches/sec_VM
Batches/sec/Inst_Native
Batches/sec/Inst_VM
% Processor_Native
% Processor_VM
Relative
Throughput_Native
Relative
Throughput_VM
Performance and Scalability Comparison between Native and Virtual Instances: 16core 64GB RAM 12GB Per SQL Instance
Results
Same throughput attainable
There is more CPU overhead with hyper-v enabled or when running within a VM
Passthrough Performance ~5% Better than fixed size VHDs
Native Instances and Virtual Instances achieves the same level of scalability
0
10
20
30
40
50
60
70
80
90
0
0.01
0.02
0.03
0.04
0.05
0.06
0.07
Inst2 Inst4 Inst6 Inst8 Inst10 Inst12 Inst 14 Inst 16
Response Time_VM Response Time_Native %Processor_VM %Processor_Native
% P
rocess
or
tim
e
Resp
on
se T
ime (
sec)
Results: • Transaction response time comparable
• 32cores 7GB RAM per VM, fixed size VHD
• sub seconds application response time
• Test your own workload, may scale differently
Shared Storage iSCSI
Guest Cluster
Guest Cluster
1 2
Redundant Paths to storage
Shared Storage iSCSI, SAS, Fibre
Live Migration
1 2
Host cluster
1 2
Optimize Resources
– Centralized virtual machine deployment and
management for Hyper-V, Virtual Server, and
VMware ESX servers
– Fast and reliable P2V and V2V conversion
– Intelligent placement of Virtual Machines
– Comprehensive application and service-level
monitoring with Operations Manager and Integrated
Performance and Resource Optimization (PRO) of
VMs
Leverage Skills
– Familiar interface, common foundation
– Monitor physical and virtual machines from one
console
– Fully scriptable using Windows PowerShell
Increase Agility
– Rapid provisioning of new virtual machines with
templates
– Centralized library of infrastructure components
– Leverage and extend existing storage infrastructure
and clusters
– Allow for delegated management and access of VMs