Best Practices for Virtualizing Mission Critical Applications Christopher Blog: Christopher Blog:

Slides:



Advertisements
Similar presentations
Housekeeping Utilities for VMware. 11 June Housekeeping is preparing meals for oneself and family and the managing of other domestic concerns.
Advertisements

Storage, Backup & Recovery Considerations in Hyper-V Christopher Global Virtualization Lead EMC Consulting Blog:
Capacity Planning in a Virtual Environment
What’s New: Windows Server 2012 R2 Tim Vander Kooi Systems Architect
1© Copyright 2013 EMC Corporation. All rights reserved. ACCELERATING MICROSOFT EXCHANGE PERFORMANCE WITH EMC XtremSW Cache EMC VNX Storage and VMware vSphere.
VSphere 4 Best Practices/ Common Support Issues Paul Hill Research Engineer, System Management VMware.
© 2010 VMware Inc. All rights reserved Confidential Performance Tuning for Windows Guest OS IT Pro Camp Presented by: Matthew Mitchell.
Best Practices for Virtualizing Mission Critical Applications Christopher Kusek, vExpert Blog: Christopher Kusek, vExpert.
SQL Server on VMware Jonathan Kehayias (MCTS, MCITP) SQL Database Administrator Tampa, FL.
Created by the Community for the Community Kent Weare.
Low Control | Low Maintenance Shared Lower cost Dedicated Higher cost High Control | High Maintenance Hybrid On premises Off premises SQL Server Physical.
VIRTUALIZATION AND YOUR BUSINESS November 18, 2010 | Worksighted.
Yes, yes it does! 1.Guest Clustering is supported with SQL Server when running a guest operating system of Windows Server 2008 SP2 or newer.
Storage Management Module 5.
1© Copyright 2012 EMC Corporation. All rights reserved. EMC INFRASTRUCTURE FOR MICROSOFT APPLICATIONS IN THE PRIVATE CLOUD EMC Symmetrix VMAX 10K, EMC.
Microsoft ® Application Virtualization 4.5 Infrastructure Planning and Design Series.
Implementing Failover Clustering with Hyper-V
Windows Server Virtualization Infrastructure Planning and Design Series.
Presented by Jacob Wilson SharePoint Practice Lead Bross Group 1.
VMware vCenter Server Module 4.
Scalability Module 6.
Elad Hayun Agenda What's New in Hyper-V 2012 Storage Improvements Networking Improvements VM Mobility Improvements.
Microsoft ® Application Virtualization 4.6 Infrastructure Planning and Design Published: September 2008 Updated: February 2010.
VMware vSphere 4 Introduction. Agenda VMware vSphere Virtualization Technology vMotion Storage vMotion Snapshot High Availability DRS Resource Pools Monitoring.
Tales from the Trenches About
Robert Larson Delivery Architect Microsoft Corporation SESSION CODE: WSV316 David Lef Principal Systems Architect Microsoft Corporation.
Yury Kissin Infrastructure Consultant Storage improvements Dynamic Memory Hyper-V Replica VM Mobility New and Improved Networking Capabilities.

Microsoft ® Application Virtualization 4.6 Infrastructure Planning and Design Published: September 2008 Updated: November 2011.
Key Perf considerations & bottlenecks Windows Azure VM characteristics Monitoring TroubleshootingBest practices.
How to Resolve Bottlenecks and Optimize your Virtual Environment Chris Chesley, Sr. Systems Engineer
Get More out of SQL Server 2012 in the Microsoft Private Cloud environment Guy BowermanMadhan Arumugam DBI208.
Microsoft Virtual Academy. 2 Competitive Advantages I - Core VirtualizationII - Private Cloud.
Appendix B Planning a Virtualization Strategy for Exchange Server 2010.
VMware Infrastructure 3 The Next Generation in Virtualization.
Planning and Designing Server Virtualisation.
Adam Duffy Edina Public Schools.  Traditional server ◦ One physical server ◦ One OS ◦ All installed hardware is limited to that one server ◦ If hardware.
From Virtualization Management to Private Cloud with SCVMM 2012 Dan Stolts Sr. IT Pro Evangelist Microsoft Corporation
Session objectives Discuss whether or not virtualization makes sense for Exchange 2013 Describe supportability of virtualization features Explain sizing.
1© Copyright 2012 EMC Corporation. All rights reserved. EMC PERFORMANCE OPTIMIZATION FOR MICROSOFT FAST SEARCH SERVER 2010 FOR SHAREPOINT EMC Symmetrix.
Windows Server 2012 Hyper-V Networking
Eric Burgener VP, Product Management A New Approach to Storage in Virtual Environments March 2012.
Hyper-V Performance, Scale & Architecture Changes Benjamin Armstrong Senior Program Manager Lead Microsoft Corporation VIR413.
Queensland University of Technology CRICOS No J VMware as implemented by the ITS department, QUT Scott Brewster 7 December 2006.
MDC323B SMB 3 is the answer Ned Pyle Sr. PM, Windows Server
Rick Claus Sr. Technical Evangelist,
1EMC CONFIDENTIAL—INTERNAL USE ONLY FAST VP and Exchange Server 2010 Don Turner Consultant Systems Integration Engineer Microsoft TPM.
1 | SharePoint Saturday Calgary – 31 MAY 2014 About Me.
© Copyright 2011 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. HP Restricted Module 7.
Microsoft ® System Center Virtual Machine Manager 2008 R2 Infrastructure Planning and Design Series Published: June 2008 Updated: September 2009.
Capacity Planning in a Virtual Environment Chris Chesley, Sr. Systems Engineer
1 Best Practices for Monitoring Databases on VMware Dean Richards Senior DBA, Confio Software.
REMINDER Check in on the COLLABORATE mobile app Best Practices for Oracle on VMware - Deep Dive Darryl Smith Chief Database Architect Distinguished Engineer.
Planning Server Deployments Chapter 1. Server Deployment When planning a server deployment for a large enterprise network, the operating system edition.
Extending Auto-Tiering to the Cloud For additional, on-demand, offsite storage resources 1.
Configuring SQL Server for a successful SharePoint Server Deployment Haaron Gonzalez Solution Architect & Consultant Microsoft MVP SharePoint Server
1 SQL Server on VMware? Rob Mandeville Senior DBA, Confio Software 1 Virtualizing Our Environment: Lessons Learned Rob Mandeville.
Virtualization Fundamentals for DBAs Joey D’Antoni February 3, 2015 DBA Fundamentals VC.
Hitting the SQL Server “Go Faster” Button Rob Douglas #509 | Brisbane 2016.
Level 300 Exchange Server 2010 and Virtualization Scott Schnoll, Microsoft Corporation
VSPHERE 6 FOUNDATIONS BETA Study Guide QUESTION ANSWER
Hitting the SQL Server “Go Faster” Button
2016 Citrix presentation.
Windows Azure Migrating SQL Server Workloads
Installation and database instance essentials
Optimizing SQL Server Performance in a Virtual Environment
Hitting the SQL Server “Go Faster” Button
HC Hyper-V Module GUI Portal VPS Templates Web Console
Microsoft Exchange Server Virtualisation: Does It Make Sense?
SQL Server performance tuning on Azure IaaS
Presentation transcript:

Best Practices for Virtualizing Mission Critical Applications Christopher Blog: Christopher Blog:

Housekeeping When tweeting about the sessions use #TEC2011 Include commentary in this session For voting commentary feel free to vote by adding – #cxirocks – #cxisucks – Be sure to add some constructive feedback to your vote

Virtualizing Tier 1 is Impossible

Maturity begets virtualization 32-bit Windows 900MB Database Cache 4Kb block size High read/write ratio 64-bit Windows 32+ GB Database Cache 8Kb block size 1:1 read/write ratio 70% reduction in disk I/O 64-bit Windows 32Kb block size I/O pattern optimization I/O reduced 50% more

Who ran first so I can run too? United States Navy/Marine Corps – 750,000 mailboxes University of Plymouth – 40,000 mailboxes VMware IT – 9,000 very heavy mailboxes University of Texas at Brownsville – 25,000 mailboxes

Where do I start?

Virtual Exchange Start here Refer to Support Policies, Recommendations and Best Practice Documents Architect for the application, not for the virtualization solution Pretend like you’re doing it physically… and Just do it virtually Defaults unless requiring optimization!

Start Simple Deploy VMs with similar roles on separate hosts – MBX VMs in same DAG should not co-locate – Spread your CAS around – Deploy with VMFS or Fixed Disk VHD – Scale up and scale out

Licensing Exchange in the Virtual!!! One server license is required for each running instance of Exchange Server 2010 – whether it is installed natively on a physical machine or on a virtual machine That’s pretty simple!

Configure Storage Review the Exchange Calculator to determine your memory, spindle and IOPS requirement Configure your storage how you would handle it physically, then present it to your VMs Size your MBX VHD or VMDK <2TB – Some suggest 2040GB to be on the safe side

Configure Storage Continued Array Snapshots for any virtualization vendor are not supported with Exchange Server – Support and supportability needs to be supplied by your storage vendor Live Migration and VMotion are supported with Exchange Server, but not with DAGs* Do exactly the same virtually as you would physically when it comes to allocation

Configure Storage Continued Take advantage of “Optimized for Virtualization” acceleration technologies by storage vendors – Storage Offloading – Per VHD / VMDK Locking Unlike in the physical world, most data stores host more than one VM so account for that IO

Exchange Best Practices Do not P2V your Exchange Servers – Build new servers virtually and move mailboxes Split your roles and size their CPU/Mem on a role by role basis Analyze performance characteristics before and after if performing migration Less physical servers != fewer resources

Get on the road to Virtual SQL

Virtual SQL Start here Refer to Support Policies, Recommendations and Best Practice Documents Architect for the application, not for the virtualization solution Pretend like you’re doing it physically… and Just do it virtually Defaults unless requiring optimization!

Start Simple The average physical SQL Server uses 2 CPUs is 6% utilized, 3Gb Mem, 60% utilized, ~20 IOPS Light workload? – Start with 2vCPUs, 3Gb ram Heavy workload? – Start with 4vCPUs, 8Gb+ ram Really Heavy workload? – Architect as if physical in the virtual

Licensing SQL in the Virtual?!? Standard, Workgroup, Enterprise per proc – You must license SQL for each virtual processor Standard, Workgroup per Server/CAL – You must license each virtual operating system Enterprise per physical proc – Licensing each physical processor entitles you to run any number of SQL server instances Unsure? Contact licensing professionals!

Virtualized SQL is blazing fast!

Configure Storage Correctly Database LUN needs enough spindles Log LUN needs enough spindles Mixing sequential (logs) and random (database) can result in random behavior – Avoid mixing workloads, refer to storage vendor Fixed-size VHD or Eager-Zeroed Thick VMDK for your Database and Log volumes

Configure Storage Continued Array Snapshots for any virtualization vendor are not supported with SQL Server – Support and supportability needs to be supplied by your storage vendor Live Migration and VMotion are supported with SQL Server Do exactly the same virtually as you would physically when it comes to allocation

Configure Storage Continued Try to leverage Array Tiering and Acceleration technologies if possible – Use Array based caching to improve performance Most DBs, even High IO ones are hot ~10-15% of the database, the rest is cold IO – Automatic Tiering makes for higher performance and higher efficiency while reducing cost

Migrating SQL Analyze your existing environment Perform a virtualization assessment Pay attention to disk spindles not total space Easy Migration: Use converter to clone server Easier mgmt and provisioning: Use Templates

Database Best Practices Follow Microsoft Best Practices for SQL Server Evaluate workloads for SQL-intensive ops Consider ScalingOut for high end deployments Defrag SQL Databases Design back-end to support workload (IOPS) Monitor DB/Logs for Disk r/w, Disk Queues Use Fibre-channel connectivity for storage

Configuring Physical Files Os/App, Data, Log and TempDB on separate spindles – Separate LUNs on single datastore will not provide IO separation Use RAID10 or RAID5 (read-only) – Refer to your storage vendors best practices Pre-size data files, do not AUTOGROW Pre-size log files, ~10% of DB on average

Configuring TempDB Move TempDB to dedicated LUN # of TempDB files = # of CPU cores All TempDB files should be equal in size Pre-Allocate TempDB space for workload Set file growth increment to minimize expand Microsoft recommends FILEGROWTH incr 10%

SQL Failover Clustering Best Practices Failover clustering is supported with caveats – Follow best practices guide for SQL Clustering – Use RDMS for DB and Log volumes – Use eagerthickzeroed disks – Use separate vSCSI controller for OS and Data – Use separate vSwitches for Public and Heartbeat – Team NICs for network redundancy

General Best Practices Best Practices for – Memory – CPU – Networking

Memory is Key

Memory Practices Allocate your memory based upon your application workload Database memory doesn’t dedupe well Do not over subscribe mission critical workloads Do NOT OVER SUBSCRIBE MISSION CRITICAL WORKLOADS

Hyper-V and Memory Hyper-V Dynamic Memory is fully supported with SQL Server. Only SQL Server versions and editions (Enterprise and Datacenter) that support Hot Add Memory can see memory that is added by using Hyper-V Dynamic Memory Exchange Server doesn’t change memory on the fly – No real value to enable

VMware and Memory Enable memory ballooning and memory page sharing Do not over-commit memory Set memory reserves to match VM config – Setting reservations could limit vMotion Enable DRS* where supported Avoid swapping by configuring VM with greater than average memory usage

Can has more CPU

CPU Practices Only allocate vCPUs which are being used – Idle vCPUs will compete for system resources If workload is unknown, size for fewer vCPUs – You can always add more later if reqs demand For Performance Critical VMs – Try to ensure total number of vCPUs assigned to all VMs is <= total number of cores on the host – CPU load average of <=1. If greater, add more cpu

FCoTR is the key to the future

Networking Best Practices Separate LiveMotion/vMotion, Logging and console traffic; or use VLAN tagging Use a paravirtualized vNIC for high performance workloads Leverage 802.1q using Virtual Switch Tagging (VST). - VST is most common configuration Follow networking design guidelines Do NOT use Jumbo Frames*

Clusters Microsoft does not support migration of running virtual machines running cluster software. – Caveat: Internal testing and customer POCs have found no affect on operation of cluster members

Alignment Ensure your VMs have their disks aligned – Boot alignment is auto in 2008, manual in 2003 – Application LUN is manual, follow application and storage vendor best practices

Thank you!

Links if you don’t see presenter notes! Microsoft Support Policies and Recommendations for Exchange Servers in Hardware Virtualization Environments Exchange 2010 on VMware - Best Practices Guide Microsoft Virtualization Best Practices for Exchange HP recommended configuration for Exchange Server 2010 and Hyper-V R2 for 5,000 users Exchange Server 2007 and Hyper-V: Best Practices Blog Post Policies and Recommendations for Exchange Servers in Virtualization Environments Refer to these great blog series which covers Exchange and VMware Duncan Epping Best Practices for SQL Server with VMware Microsoft SQL Server and VMware Virtual Infrastructure Best Practices Running SQL in a Hyper-V Environment Consolidation Guidance for SQL Server High Performance SQL Server Workloads on Hyper-V SQL Server 2008 on Hyper-V - Best Practices & Performance Licensing SQL Alignment

Credits Christopher Kusek, vExpert, CISSP, MCT Technology Evangelist Blog: Yes that is my tiny head!