Consolidation and Virtualization with SQL Server Rob Reinauer Product Unit Manager SQL Server Engine Melbourne User Group September 10, 2009.

Slides:



Advertisements
Similar presentations
Capacity Planning in a Virtual Environment
Advertisements

Virtual Machine Technology Dr. Gregor von Laszewski Dr. Lizhe Wang.
Virtualisation From the Bottom Up From storage to application.
1 Vladimir Knežević Microsoft Software d.o.o.. 80% Održavanje 80% Održavanje 20% New Cost Reduction Keep Business Up & Running End User Productivity End.
VMware Virtualization Last Update Copyright Kenneth M. Chipps Ph.D.
Virtualization and Cloud Computing Virtualization David Bednárek, Jakub Yaghob, Filip Zavoral.
Adam Duffy Edina Public Schools.  The heart of virtualization is the “virtual machine” (VM), a tightly isolated software container with an operating.
MCITP Guide to Microsoft Windows Server 2008 Server Administration (Exam #70-646) Chapter 11 Windows Server 2008 Virtualization.
Copyright 2009 FUJITSU TECHNOLOGY SOLUTIONS PRIMERGY Servers and Windows Server® 2008 R2 Benefit from an efficient, high performance and flexible platform.
Microsoft Virtual Server 2005 Product Overview Mikael Nyström – TrueSec AB MVP Windows Server – Setup/Deployment Mikael Nyström – TrueSec AB MVP Windows.
Lesson 7: Creating and Configuring Virtual Machine Settings
MICROSOFT CONFIDENTIAL Microsoft Confidential Integrated Virtualization Fireside Chat – November 3 rd, 2009 Kenon Owens Technical Product Manager Integrated.
VIRTUALIZATION AND YOUR BUSINESS November 18, 2010 | Worksighted.
Virtualization for Cloud Computing
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.
1 AFCOM 2011 studyAFCOM 2011 study 2 Information Week 2011 surveyInformation Week 2011 survey 3 Worldwide Executive Council 2011 survey on 100 CIOsWorldwide.
Copyright © 2005 VMware, Inc. All rights reserved. VMware Virtualization Phil Anthony Virtual Systems Engineer
Implementing Failover Clustering with Hyper-V
Virtual Network Servers. What is a Server? 1. A software application that provides a specific one or more services to other computers  Example: Apache.
5205 – IT Service Delivery and Support
Windows Server Virtualization Infrastructure Planning and Design Series.
VMware vCenter Server Module 4.
Virtualization Performance H. Reza Taheri Senior Staff Eng. VMware.
Virtual Desktop Infrastructure Solution Stack Cam Merrett – Demonstrator User device Connection Bandwidth Virtualisation Hardware Centralised desktops.
VMware vSphere 4 Introduction. Agenda VMware vSphere Virtualization Technology vMotion Storage vMotion Snapshot High Availability DRS Resource Pools Monitoring.
1 Management Pain points now Existing tools: Do not map to virtual environments Provisioning Backup Health monitoring Performance monitoring / management.
Hyper-V High-Availability & Mobility: Designing the Infrastructure for Your Private Cloud Symon Perriman Technical Evangelist Microsoft
Tanenbaum 8.3 See references
Yury Kissin Infrastructure Consultant Storage improvements Dynamic Memory Hyper-V Replica VM Mobility New and Improved Networking Capabilities.
Windows Server 2012 VSP Windows Kernel Applications Non-Hypervisor Aware OS Windows Server 2008, 2012 Windows Kernel VSC VMBus Emulation “Designed for.

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.
SAIGONTECH COPPERATIVE EDUCATION NETWORKING Spring 2009 Seminar #1 VIRTUALIZATION EVERYWHERE.
Virtualization. Virtualization  In computing, virtualization is a broad term that refers to the abstraction of computer resources  It is "a technique.
Module 7: Hyper-V. Module Overview List the new features of Hyper-V Configure Hyper-V virtual machines.
Chapter 8 Implementing Disaster Recovery and High Availability Hands-On Virtual Computing.
Appendix B Planning a Virtualization Strategy for Exchange Server 2010.
Gopal Ashok Program Manager Microsoft Corp. Agenda SQL Server Consolidation Virtualization & Microsoft Hyper-V Architecture Consolidation Performance.
Get More out of SQL Server 2012 in the Microsoft Private Cloud environment Steven Wort, Xin Jin Microsoft Corporation.
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.
CERN IT Department CH-1211 Genève 23 Switzerland t Evolution of virtual infrastructure with Hyper-V Juraj Sucik, Slavomir Kubacka Internet.
Server Virtualization
Rob Reinauer Product Unit Manager SQL Server Engine Microsoft Corporation Lindsey Allen Principal Program Manager Lead Microsoft Corporation DAT318.
Rob Reinauer Product Unit Manager, SQL Server Engine Microsoft Corporation SESSION CODE: DAT307.
Clint Huffman Microsoft Premier Field Engineer (PFE) Microsoft Corporation SESSION CODE: VIR315 Kenon Owens Technical Product Manager Microsoft Corporation.
Consolidation and Optimization Best Practices: SQL Server 2008 and Hyper-V Dandy Weyn | Microsoft Corp. Antwerp, March
VMware vSphere Configuration and Management v6
 The End to the Means › (According to IBM ) › 03.ibm.com/innovation/us/thesmartercity/in dex_flash.html?cmp=blank&cm=v&csr=chap ter_edu&cr=youtube&ct=usbrv111&cn=agus.
1 | SharePoint Saturday Calgary – 31 MAY 2014 About Me.
Full and Para Virtualization
Hosting Websites and Web Applications with Microsoft ® SQL Server ® 2008.
70-412: Configuring Advanced Windows Server 2012 services
Cloud Computing Lecture 5-6 Muhammad Ahmad Jan.
Turn Bare Metal Into Silver Lining With SCVMM 2012, Today! Mark Rhodes OBS SESSION CODE: SEC313 (c) 2011 Microsoft. All rights reserved.
Prem Mehra Program Manager Microsoft Corporation SESSION CODE: DAT308 Sung Hsueh Program Manager Microsoft Corporation.
Cloud Computing – UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary->
Virtual Machine Movement and Hyper-V Replica
Capacity Planning in a Virtual Environment Chris Chesley, Sr. Systems Engineer
Unit 2 VIRTUALISATION. Unit 2 - Syllabus Basics of Virtualization Types of Virtualization Implementation Levels of Virtualization Virtualization Structures.
A Measured Approach to Virtualization Don Mendonsa Lawrence Livermore National Laboratory NLIT 2008 by LLNL-PRES
U N C L A S S I F I E D LA-UR Leveraging VMware to implement Disaster Recovery at LANL Anil Karmel Technical Staff Member
Brian Lauge Pedersen Senior DataCenter Technology Specialist Microsoft Danmark.
Virtualization for Cloud Computing
1. 2 VIRTUAL MACHINES By: Satya Prasanna Mallick Reg.No
Windows Virtual PC / Hyper-V
Microsoft Virtual Academy
Microsoft Virtual Academy
Presentation transcript:

Consolidation and Virtualization with SQL Server Rob Reinauer Product Unit Manager SQL Server Engine Melbourne User Group September 10, 2009

Agenda SQL Server Consolidation Today Virtualization and Microsoft Hyper-V Architecture Capabilities with SQL Server Managing virtualized environments Performance of SQL Server with Hyper-V Scalability across multiple VMs on a system IO Performance Achieving Scalability with Virtualization CPU, Memory, Network and Disk subsystems Microsoft IT Case Study Questions

Forces Driving Consolidation Hardware Utilization Efficiency Datacenter deployment efficiency Power Utilization Hardware standardization initiatives Management Efficiency Fewer physical servers to manage and maintain Centralized management of multiple/many servers Infrastructure Agility Load Balancing Lowered cost and complexity for High Availability

SQL Server Consolidation Today Higher Isolation, Higher Costs Higher Density, Lower Costs MyServer Databases Instances IT Managed Environment Virtual Machines Schemas Microsoft Confidential Sales_1 Marketing_1 Online_Sales ERP_10 DB_1 DB_2 DB_3 Consolidate_1 Currently a variety of consolidation strategies exist and are utilized. Typically, as isolation goes up, density goes down and cost goes up.

Schema level consolidation Multiple databases are collapsed into a single database Forces common security model on all applications Typically requires changes to application and scripts Many opportunities for subtle cross interactions Namespace collisions and conflicts Unexpected dependencies / performance contentions SQL Server Consolidation Today Higher Isolation, Higher Costs Higher Density, Lower Costs Microsoft Confidential

Database level consolidation Multiple databases hosted on 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. SQL Server Consolidation Today Higher Isolation, Higher Costs Higher Density, Lower Costs Microsoft Confidential

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 System Memory and CPU are typical density limiters SQL Server Consolidation Today Higher Isolation, Higher Costs Higher Density, Lower Costs Microsoft Confidential

SQL Server Consolidation Today Higher Isolation, Higher Costs Higher Density, Lower Costs Microsoft Confidential 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

What is Virtualization? Multiple operating systems images supporting separate independent applications running simultaneously on the same computer system. Strong hardware enforced isolation between the VMs Server Child Partition Root Partition DevicesProcessorsMemory Hypervisor Hardware One Physical Server Server Child Partition SP2 RC Server Child Partition

Virtualization Scenario: Windows Server 2008 is installed on the bare system, Hyper-V enabled DevicesProcessorsMemory Hardware Hypervisor One Physical Server Running one application on one OS Root Partition

Virtualization Scenario: Windows Server 2008 is installed on the bare system, Hyper-V enabled DevicesProcessorsMemory Hypervisor Hardware One Physical Server Server Child Partition Running one application on one OS Windows Server 2008 and SQL Server 2008 are installed or imaged into a child partition. Root Partition

We would like to try out our application running against SQL Server 2008 running on Windows Server 2008 SP2 RC. But… we need to keep our existing application online and running. DevicesProcessorsMemory Hypervisor Hardware One Physical Server Server Child Partition SP2 RC Server Child Partition Virtualization Scenario: Deploying Test Bed Environments New OS and SQL Server installed or imaged into new child partition Root Partition

Server Child Partition We would like to retire old hardware servers But… we don’t want to purchase new hardware or go through a re- verification on new operating system and SQL Server versions. DevicesProcessorsMemory Hypervisor Hardware One Physical Server Server Child Partition SP2 RC Server Child Partition Virtualization Scenario: Consolidating Legacy Applications System Center VMM migrates a physical server image to a Hyper-V partition. Root Partition

Hyper-V Architectural overview The Hyper-V Hypervisor runs directly on the hardware Provides virtualized execution environment for operating systems Operating systems and applications run in partitions on top of the Hypervisor Enlightenments provide fast paths to mitigate overhead

Windows Server 08 R2 Hyper-V Improvements Virtualization Feature WS08 Hyper-V RTM WS08 Hyper-V SP2 Windows Server 2008 R2 Hyper-V (Windows 7) Logical Processor Support Physical Socket Support 448 Total number of running VMs Address Space Management Software Emulation Hardware (SLAT / IOMMU) Effective Core Parking Limited Yes Zero Down Time Load Migration No (Quick Migration) Yes (Live Migration) Cluster Shared Volumes (CSV) No Yes Network stack offloading No Yes Online storage provisioning No Yes

High Availability for SQL Server In Virtualized Environments Consolidation Increases the importance of High Availability Features Consolidation serves to increase cost for a single system failure Increasing focus on planned outages vs. unplanned outages Microsoft Confidential Shared Disk Environments - SANs, iSCSI, NAS, Windows Fail-Over Clusterin g Host based Clustering Child partition based Clustering Non-Shared Disk Environments SQL Server Mirroring Transactional and Peer-to-Peer replication Log Shipping Resource Isolation Hyper-V Manager SCVMM SQL Server Resource Manager

High Availability In Virtualized Environments Windows Fail-Over Clustering - Host Level Clustering One complete system fails over to another system All VMs on the source system fail over Each VM can target different physical systems for fail-over. Each VM is re-started on fail-over target system WFC migrates LUNs to target system(s) Enables Live Migration in Windows 2008 R2

Child Partition 1 SQL 2008 Child Partition 2 SQL S005 Parent Partition Lun1->E: Hypervisor D1.VHD->S: E:\D1.VHD E:\D2.VHD F:\D1.VHD F:\D2.VHD D2.VHD->S: D1.VHD->T:D2.VHD->T: System 1 SAN FiberChannel or iSCSI System 2 Lun2->F: LUN 1 Windows Failover Clustering No Child Partitions In Existence. SQL Server High Availability with Hyper-V Host Level Clustering - Partition movement, Drive routings Pre-Failover LUN 2

Child Partition 1 SQL 2008 Child Partition 2 SQL S005 Parent Partition Lun1->E: Hypervisor D1.VHD->S: E:\D1.VHD E:\D2.VHD F:\D1.VHD F:\D2.VHD D2.VHD->S: D1.VHD->T:D2.VHD->T: System 1 SAN FiberChannel or iSCSI System 2 Lun2->F: LUN 1 Windows Failover Clustering SQL Server High Availability with Hyper-V Host Level Clustering - Partition movement, Drive routings After-Failover LUN 2 System Failure

High Availability In Virtualized Environments Windows Fail-Over Clustering - Guest Level Clustering Clustering applied at the individual VM level A single VM on the source system fails over to another VM Each VM can target different physical systems for fail-over. WFC does not migrate LUNs to target system(s) iSCSI typically required

Child Partition 1 SQL 2008 Child Partition 2 SQL S005 Parent Partition Hypervisor D1.VHD->S:D2.VHD->S: System 1 SAN iSCSI System 2 LUN 1 Windows Failover Clustering SQL Server High Availability with Hyper-V Guest Partition Clustering - Partition movement, Drive routings Pre-Failover LUN 2 Child Partition 1 Child Partition 2 Parent Partition Hypervisor D1.VHD->T:D2.VHD->T:

Child Partition 1 SQL 2008 Child Partition 2 SQL S005 Parent Partition Hypervisor D1.VHD->S:D2.VHD->S: System 1 SAN iSCSI System 2 LUN 1 Windows Failover Clustering SQL Server High Availability with Hyper-V Guest Partition Clustering - Partition movement, Drive routings After-Failover LUN 2 Child Partition 2 Parent Partition Hypervisor D1.VHD->T:D2.VHD->T: Child Partition 1 SQL 2008 D1.VHD->S: D1.VHD->T: Partition Failure

Delivered in Windows 2008 R2 Migrates a running VM with essentially zero down time Actually, several seconds of downtime, but connections are maintained Allows essentially zero down time: Hardware maintenance Patching and servicing of host OS Currently does not allow zero down time; Patching and servicing of guest OS Patching and servicing of applications within guest VMs Hyper-V Live Migration

Root Partition Hypervisor Hardware Physical Server Source Child Partition Partition Memory Network Connections Hypervisor Hardware Changed Pages Storage Connections Root Partition Physical Server Destination Child Partition Step 1: Snapshot VM memory Copy partition memory from source VM to Destination Partition Memory Shared Storage LUN 2LUN 1 Network Connections Hyper-V Live Migration How it works: step by step

Step 2: Copy changed pages from source VM to destination Root Partition Hypervisor Hardware Physical Server Source Child Partition Partition Memory Network Connections Hypervisor Hardware Changed Pages Storage Connections Root Partition Physical Server Destination Child Partition Partition Memory Shared Storage LUN 2LUN 1 Network Connections Changed Pages Hyper-V Live Migration How it works: step by step

Step 3: Storage connections are migrated from the source VM to the destination VM. Root Partition Hypervisor Hardware Physical Server Source Child Partition Partition Memory Network Connections Hypervisor Hardware Changed Pages Storage Connections Root Partition Physical Server Destination Child Partition Partition Memory Shared Storage LUN 1 Network Connections Changed Pages Storage Connections LUN 2 Hyper-V Live Migration How it works: step by step

Step 4: Network connections are migrated from source VM to destination VM Root Partition Hypervisor Hardware Physical Server Source Child Partition Partition Memory Network Connections Hypervisor Hardware Changed Pages Storage Connections Root Partition Physical Server Destination Child Partition Partition Memory Shared Storage LUN 1 Changed Pages Storage Connections Network Connections LUN 2 Hyper-V Live Migration How it works: step by step

Source Child Partition Step 5: Destination VM is brought online, Source VM is taken off line Root Partition Hypervisor Hardware Physical Server Destination Child Partition Hypervisor Hardware Root Partition Physical Server Partition Memory Shared Storage LUN 1 Changed Pages Storage Connections Network Connections LUN 2 Hyper-V Live Migration How it works: step by step

Centralized management of Virtual Machine creation, configuration and provisioning Provides wizards for creation and provisioning of VMs and devices Provides tools for creation and provisioning of Virtual Hard Drives (VHDs) Limited import capabilities Creating and managing Virtual Machines Hyper-V Role in Windows 2008 Server Manager

System Center Virtual Machine Manager 2008 Creating and managing Virtual Machines Physical to Virtual and Virtual to Virtual image creation In place physical systems can be provisioned to VMs VMWare VMs can be translated to Hyper-V Rapid Virtual Machine Provisioning – Virtual Machine Library Multi-machine management across system and VMs PRO - Performance and Resource Optimization and automation

System Center VMM Multi-Machine Monitoring and Management System Center Virtual Machine Manager 2008 Creating and managing Virtual Machines

Evaluating Virtual Machine Efficiency We wanted to address the following questions: Hypervisor Hardware SQL running in 8 Separate virtual machines running on a single system Hardware R2 8 Separate SQL Instances running on a single system If Consolidating Servers: 1. Is it more efficient to utilize multiple instances (Scenario 1 below) or multiple virtual machines (Scenario 2) 2. How much overhead develops with larger numbers of instances and Virtual Machines? Scenario 1Scenario 2

Hyper-V + Processor virtualization support = Huge Win! SLAT (second level address translation) 1% - 2% overhead per Virtual Machine Measurement Configuration  AMD Shanghai CPUs  SLAT support  No IOMMU  HP DL Cores  HP EVA8000 SAN  Windows 2008 R2 RC  VM Configurations  4 Virtual Processors  7GB RAM  Fixed VHDs  Approximately 10% CPU utilization / VM  Relative Throughput is normalized per VM BatchRequests/SecBatchRequests/Sec TotalCPUUtilizztionTotalCPUUtilizztion Evaluating Virtual Machine Efficiency

Achieving Scalability With Virtualization CPU Utilization The sum of the CPU utilizations of consolidated applications should not exceed the capacity of the target system CPU cores can be explicitly allocated to Virtual Machines CPU reserves, limits and relative priorities can be specified CPU cores can be over committed For example: - On an 8 core system 4 VMs can each be allocated 4 virtual CPUs -System scheduling provides load balancing across the VMs -The administrator could specify limits and reserves across the VMs Scalability requires balanced system capabilities CPU, Memory, Network and Disk subsystem bandwidth

Achieving Scalability With Virtualization Scalability requires balanced system capabilities CPU, Memory, Network and Disk subsystem bandwidth Memory Allocation and Utilization Memory is allocated to virtual machines in fixed amounts Assume ~1.5 GB consumed by Operating System and SQL Server instance code pages Remaining memory utilized for data caching, mostly for SQL Server Network subsystem bandwidth Sufficient bandwidth must be provided for the sum total of the consolidated applications Task Manager and Perfmon can provide statistics on application network utilization

Achieving Scalability With Virtualization Scalability requires balanced system capabilities CPU, Memory, Network and Disk subsystem bandwidth Disk subsystem bandwidth I/O Bandwidth is typically gated on number of random I/Os not MB/Sec. throughput Throughput typically scales with number of drives not with the speed of the attach bus Throughput essentially never scales with the space of the storage subsystem Disk attach bus bandwidth may become significant when: The work loads generate significant percentages of sequential I/O Multiple I/O intensive applications generate large numbers of I/Os Solid State storage is being utilized Perfmon can provide statistics on number of I/Os, latency and bandwidth utilization.

Evaluating Virtual Machine Efficiency Qlogic Fiber Channel SAN Performance Benchmark Windows Server 2008 with fiber channel SAN achieves more than 200,000 I/O operations per second. On a range of tests, Hyper-V based I/O workloads were between 88% and 99% of native performance 90% 88% 97% 99% Hyper-V I/O operations per second compared to Native OS IOPS Non-IOMMU Enabled CPUs

Case Study – MSIT SQL Consolidation Pre-Consolidation State ~2,700 Applications in MSIT Portfolio ~4797 SQL Server Instances ~100,000 databases ~20% end-of-life hosts/year ~10% CPU utilization across hosts Consolidation Approach Microsoft IT evaluated database, instance and host based consolidation Resource Management Approach Resource Management effectiveness considered critical issue Instance based would utilize WSRM Hyper-V allows explicit allocation of CPU and IO channels Microsoft IT Infrastructure Overview

Case Study – MSIT SQL Consolidation Consolidation Strategy Host Consolidation utilizing Hyper-V Target of 6 to 1 consolidation ratio Fixed Virtual Drives (VHDs) over Dynamic and Pass Through Consolidation Approach Decision starting point was instance based consolidation Evaluation led to decision change: Hyper-V based host consolidation WSRM vs. Hyper-V Microsoft IT evaluated WSRM vs. Hyper-V & ultimately chose Hyper-V Microsoft IT Consolidation Conclusions

Case Study - Microsoft IT Consolidation Operational Results

Summary Hyper-V based virtualization is an effective server consolidation platform for SQL Server Modern CPUs easily achieve efficient SQL Server scalability out beyond 8 virtual machines. The Microsoft Hyper-V platform and SQL Server work together to implement robust high availability environments. Windows 2008 R2 Live Migration offers effectively zero down time load migration between two systems. Microsoft IT has documented a successful server consolidation strategy utilizing Hyper-V. The System Center Virtual Machine Manager provides powerful tools to manage Virtual Machines Migrating existing native system images to Hyper-V images Administration and monitoring for multiple Virtual Machines PRO - Performance and load balancing automation

SQL Server Community Resources Become a FREE PASS Member: Learn more about the PASS organization Additional Community Resources SQL Server Community Center TechNet Community for IT Professionals Developer Center SQL Server 2008 Learning Portal The Professional Association for SQL Server (PASS) is an independent, not-for-profit association, dedicated to supporting, educating, and promoting the Microsoft SQL Server community.

References Running SQL 2008 in Hyper-V Environment environment-best-practices-and-performance-recommendations.aspx Microsoft IT virtualization case study Green IT in Practices: SQL Server Consolidation in Microsoft IT Qlogic Hyper-V IO performance benchmarks Windows Server Hyper-V site System Center Virtual Machine Manager 2008 R2 site Hyper-V Technet center SQL Server 2008 Business Value Calculator:

Questions?