400 likes | 820 Views
SBP301. BizTalk Hyper-V Virtualization Guidance. Ewan Fairweather Clint Huffman Program Manager Premier Field Engineer. Session Objectives. Share the best practices for using BizTalk with Hyper-V Provide guidance on the performance characteristics of BizTalk on Hyper-V
E N D
SBP301 BizTalk Hyper-V Virtualization Guidance Ewan Fairweather Clint Huffman Program Manager Premier Field Engineer
Session Objectives • Share the best practices for using BizTalk with Hyper-V • Provide guidance on the performance characteristics of BizTalk on Hyper-V • Introduce the BizTalk Server 2006 R2 Hyper-V Guide
Session Agenda • Hyper-V Overview • BizTalk Server Virtualization Assessment • Scenarios & Results • Hyper-V Performance Analysis • Lessons Learned • Reference guidance • BizTalk Server 2006 R2 Hyper-V Guide
VHD - single file sits on root NTFS volume Fixed, Dynamic, Differencing Pass-through – exclusive disk access to guest Root Partition Child Partition Child Partition Server Server VSPs VSPs I/OStack I/OStack I/OStack OS Kernel Enlightenments (WS08+) Drivers VSCs VSCs VMBus VMBus VMBus Shared Memory Hypervisor Devices Processors Memory Hyper-V Architecture 1 3 2 4 5
BizTalk Virtualization Licensing • License required for each physical processor • License for each virtual processor in each virtual operating system • Exception: BizTalk Enterprise Edition • License for the number of physical processors in the server • Enables unlimited virtual processors • http://www.microsoft.com/biztalk/en/us/pricing-licensing-faq.aspx
Hyper-V Supportability Overview • BizTalk Server 2004/2006/2006 R2 fully supported • http://support.microsoft.com/kb/842301 • SQL Server 2005 provides commercially reasonable support • BizTalk Server 2009 will provide full Hyper-V support • SQL Server 2008 will provide full Hyper-V support
Hyper-V Performance Overview • Our results indicate that performance is good • Virtual processors scale well • Storage design should be considered carefully • Hyper-V provides more pieces to monitor: • Performance counters • xPerf/ETW should be used for performance analysis
Session Agenda • Hyper-V Overview • BizTalk Server Virtualization Assessment • Scenarios & Results • Hyper-V Performance Analysis • Lessons Learned • Reference guidance • BizTalk Server 2006 R2 Hyper-V Guide
Scenario 1: Results 2 • Throughput 75% in Virtual environment • Latency 20-30% less in Virtual environment 1 4 3
Throughput 75% in virtual environment Ratio of logical to virtual processors affects throughput Scenario 2: Results 4 3 2 1
Almost identical performance Virtual processors scale for SQL Scenario 3: Results 2 1
Scenario 4: Consolidated 1 2 3
Scenario 4: Results 1 2 3
Scenario 4: Results (cont.) • ~80% of the throughput relative to when the virtual BizTalk Server and SQL Server machines were hosted on separate hardware • ~10% overhead of running both groups simultaneously • Networking performs well • Running two groups only placed ~40% CPU load on the physical server • Adding additional virtual machines increases load on Hyper-Visor
Session Agenda • Hyper-V Overview • BizTalk Server Virtualization Assessment • Scenarios & Results • Hyper-V Performance Analysis • Lessons Learned • Reference guidance • BizTalk Server 2006 R2 Hyper-V Guide
Hyper-V Processor Utilization % Processor Time performance counters on the root partition are not accurate. Use the % Guest Run Time and % Total Run Time counters Virtual BizTalk Virtual BizTalk Root Partition (physical host) % Processor Time % Processor Time 3 1 100% 100% 100% 100% 4 Root Partition % Processor Time 2% 5% 4% 3% 2 \Hyper-V Hypervisor Logical Processor(*)\% Guest Run Time 90% 90% 90% 90% 5 \Hyper-V Hypervisor Logical Processor(*)\% Total Run Time 95% 95% 95% 95%
Hyper-V Performance Counters demo Clint Huffman Premier Field Engineer (PFE) Premier Field Engineering (PFE)
Virtual Processor Allocation 1 to 1 Mapping Overload Scenario 1 2 BizTalk Server BizTalk Server BizTalk Server BizTalk Server BizTalk Server BizTalk Server BizTalk Server BizTalk Server Virtual Processors Virtual Processors Virtual Processors Virtual Processors Virtual Processors Virtual Processors Virtual Processors Virtual Processors 0 0 0 0 0 0 0 0 1 1 1 1 1 2 3 1 2 3 Logical Processors Logical Processors 0 0
Session Agenda • Hyper-V Overview • BizTalk Server Virtualization Assessment • Scenarios & Results • Hyper-V Performance Analysis • Lessons Learned • Reference guidance • BizTalk Server 2006 R2 Hyper-V Guide
Processor Lessons Learned • % Processor Time on the Host does not measure physical processors • For high processor usage: • Most Efficient: 1:1 Logical to Virtual Processors • Better Performing, Less Efficient: 2:1 Logical to Virtual Mapping of Processors
Processor Lessons Learned • To measure Guest processors: • \Hyper-V Hypervisor Virtual Processor(*)\% Guest Run Time • \Hyper-V Hypervisor Virtual Processor(*)\% Total Run Time • To measure Physical processors: • \Hyper-V Hypervisor Logical Processor(*)\% Total Run Time • To measure Host processors: • \Hyper-V Hypervisor Root Virtual Processor(*)\% Total Run Time
Disk Lessons Learned • For VHDs use: • <RootPartition>\Logical Disk(*)\Avg. sec/Read • <RootPartition>\Logical Disk(*)\Avg. sec/Write • <Guest>\Logical Disk(*)\Avg. sec/Read • <Guest>\Logical Disk(*)\Avg. sec/Write • For PassThrough Disk Analysis use: • “Hyper-V Virtual Storage Device” counters • xPerf Tool http://msdn.microsoft.com/en-us/library/dd871252.aspx
Pass-Through Disk Perf * Other factors such as SAN performance could have been a factor
Disk Lessons Learned • Use PassThrough disks for high disk I/O: • BizTalk MessageBox Database • BizTalk Tracking Database • BizTalk File Adapter • %temp directory if BizTalk is streaming large files
Memory Lessons Learned • Virtual machines require non-paged memory (physical memory) • Ensure you have enough physical memory on both the host and guest computers • Use Traditional Counters: • <RootPartition>\Memory\Available Mbytes • <Guest>\Memory\Available Mbytes • <RootPartition>\Memory\Pages/sec • <Guest>\Memory\Pages/sec
Network Lessons Learned • For high network I/O: • Use a 1:1 mapping of physical to virtual network adapters • For measuring network adapters use: • <RootPartition>\Network Interface • Bytes Total Per Second • Output Queue Length • <RootPartition>\Hyper-V Virtual Network Adapter • Bytes Per Second • <RootPartition>\Hyper-V Virtual Switch
Perf Analysis Tools • Performance Monitor • Performance Analysis of Logs (PAL) tool • http://www.codeplex.com/PAL • xPerf from the Win2008 SDK • http://www.microsoft.com/whdc/system/sysperf/perftools.mspx • IOMeter • http://www.iometer.org/
Perf Analysis Tools (cont) • Visual Studio Command Line Profiler • http://go.microsoft.com/fwlink/?LinkId=105797 • BizTalk Artifact Duration Aggregations • http://blogs.technet.com/clint_huffman/archive/2008/05/06/biztalk-artifact-duration-aggregations.aspx
BizTalk Hyper-V Summary • Fundamental BizTalk design decisions have not changed • Performance or efficiency driven • To maximize performance use Fixed VHD not Dynamic or Differencing disks • >1:1 Virtual:Logical processors can degrade performance • Pass-through for High I/O • BizTalk – file receive locations, %temp folder • SQL Server – System and User Databases • Hyper-V Planning and Deployment Guide • http://download.microsoft.com/download/8/1/5/81556693-1f05-494a-8d45-cdeeb6d735e0/HyperV_Deploy.doc
Where to learn more • Tony Voellm’s Blog - go here first! • http://blogs.msdn.com/tvoellm • Windows virtualization discussion (virttalk)
Session Agenda • Hyper-V Overview • BizTalk Server Virtualization Assessment • Scenarios & Results • Hyper-V Performance Analysis • Lessons Learned • Reference guidance • BizTalk Server 2006 R2 Hyper-V Guide
BizTalk Server 2006 R2 Hyper-V Guide Announcing MSDN: http://msdn.microsoft.com/en-us/library/cc768518.aspx
Key Takeaways • BizTalk and SQL perform well on Hyper-V • BizTalk Server 2006 R2/2009 is supported on Hyper-V • SQL 2005 currently provides commercially reasonable support • SQL 2008 will fully support Hyper-V • BizTalk Server 2009 will enable 4 VP support • Fully assess the risks/benefits before deploying BizTalk on Hyper-V
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista 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.