Tech Ed North America 2010 11/19/2018 12:08 PM Required Slide SESSION CODE: DAT303 Architecting and Using Microsoft SQL Server Availability Technologies in a Virtualized World Damir Bersinic Senior Technology Advisor Microsoft Canada damirb@microsoft.com © 2010 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.
Virtualization Trends “What types of workloads have you deployed virtualization technology for 2006 vs. 2008” Source: Virtualization and Management: Trends, Forecasts, and Recommendations; Enterprise Management Associates (EMA); April 2008
Customers are Reaping the Benefits “By the time we hit our fifth virtual machine on a host, we’ve usually paid for the host. Long term, we will be able to reduce our total data center holdings by 75 percent.” Save Costs: Improve Resource Utilization Reduce server sprawl, save space Save on power and cooling costs Optimize usage of current hardware resources Robert McSkinsky, Senior Systems Administrator, Dartmouth-Hitchcock Medical Center “We can no longer tolerate service interruptions. With virtualization, we are creating a redundant data center in Normandy to ensure business continuity” Enhanced Business Continuity Increase availability of business applications Delivers cost effective high availability Improve service levels, less downtime Amaury Pitrou, Projects Architecture, Desktops and Mobility Director Bouygues Constructions “Building a physical server took almost four hours before virtualization. Hyper-V™ has helped decrease this time to 20 minutes.” Agile and Efficient Management Rapidly provision business applications Quickly test applications Increase administrative flexibility Vito Forte, Chief Information Officer WorleyParsons
SQL Server Consolidation Currently a variety of consolidation strategies exist and are utilized. Typically, as isolation goes up, density goes down and operation cost goes up. Higher Isolation, Higher Costs Higher Density, Lower Costs IT Managed Environment Virtual Machines Instances Databases Schemas Sales_1 Marketing_1 Online_Sales ERP_10 DB_1 DB_3 DB_2 MyServer Microsoft Confidential
SQL Server Consolidation Scalability Results: Increased throughput with consolidation Near linear scale in throughput with no CPU over-commit Improved performance with Windows Server 2008 R2 and SLAT processor architecture Configuration: OS: Microsoft® Windows Server® 2008 R2 Hyper-V™ Hardware: HP DL585 (16 core) with SLAT HP EVA 8000 storage Virtual Machines: 4 virtual processors and 7 GB RAM per virtual machine; Fixed size VHD ) Throughput (Batch requests/sec) % CPU Almost Linear Scale No CPU over-commit CPU over-commit Heavy Load Moderate Load Low Load Relative Throughput for Windows Server 2008
Hyper-V Advantages
Consolidation Considerations Multiple SQL Instances Multiple Virtual Machines (VM) Isolation Shared Windows instance Dedicated Windows instance CPU Resources Number of CPUs visible to Windows instance Up to 4 virtual CPUs CPU over-commit is supported Memory Server Limit Dynamic(max server memory) Statically allocated to VM (Offline changes only) 64GB limit per VM 2 TB Limit per Host Storage SQL Data Files with standard storage options SQL Data Files using Passthrough or Virtual Hard Disks exposed to VM Resource Management Windows System Resource Manager(process level) SQL Server Resource Governor Hyper-V guest VM Number of instances 50 Practical limit determined by physical resources High Availability Clustering, Database Mirroring, Log Shipping, Replication Live Migration, Guest Clustering, Database Mirroring, Log Shipping, Replication Performance Good Comparable with multiple instances, acceptable overhead
Session Objectives SQL Server 2008 HA Technologies 11/19/2018 Session Objectives SQL Server 2008 HA Technologies Windows Server 2008/Virtualization HA Technologies Planned vs. Unplanned Downtime Let’s break stuff - Demos © 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.
SQL Server HA Technologies Database Scale Out For Queries Failover Clustering Local server redundancy Database Mirroring Local server & storage redundancy Disaster recovery Log Shipping Additional disaster sites for databases App/user error recovery Replication Database reporting and read scale out with redundancy Always On Partner Solutions Highest hardware reliability Replication Database Mirroring Hot Standby Production Database Log Shipping Warm Standby Failover Clustering Log Shipping With Restore Delay App/User Error Recovery
Failover Clustering + Hyper-V To increase the availability of VM’s and the applications they host: Hardware health detection Host operating system health detection Virtual machine health detection Application/service health detection Automatic recovery VM mobility Clustering keeps you from putting all your VM eggs in 1 basket
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 Shared Storage iSCSI Guest Cluster 1 2 Redundant Paths to storage Shared Storage iSCSI, SAS, Fibre Live Migration 1 2 Host cluster Guest Clustering Live Migration & Host Clustering
What – is a Host Cluster? Cluster service runs inside parent partition of a Hyper-V enabled server Cluster manages VM’s VM’s move from server to server SAN
VM Mobility Planned Downtime VM’s can seamlessly move from one server to another with no client downtime Live Migration – No downtime Quick Migration – Session state saved to disk SAN
VM Mobility Unplanned Downtime Recovery from failures due to hardware or problem in parent partition VM’s are cold restarted on a surviving server SAN
OS Health Monitoring Enables any app to be covered by increased availability Virtual machines are health checked Requires Integration Components installed SAN
When – Host Clustering? Zero Downtime Host Patching Load Distribution Hardware changes Software updates to parent partition Load Distribution Live migrate VM’s to different servers to load balance Great answer for any / all Hyper-V deployments
Key Differentiators Takeaway Host clustering delivers two key values: If you need to patch the host OS you can move the VM to another node VM Mobility If the VM crashes or becomes unresponsive the VM health monitoring will detect and recover If the host has a failure, VMs will automatically be started on other nodes Health monitoring
What – is a Guest Cluster? Cluster service runs inside a Hyper-V guest Application and services running inside the VM are managed by the cluster Apps move from VM to VM iSCSI
When – Guest Clustering? Service or application health detection and automatic recovery Move service or application to a different VM to allow update of OS or service/application running in guest iSCSI
Why – App Mobility Applications and services running inside the guest are health checked Storage is presented to the VM directly via the Microsoft iSCSI Software Initiator iSCSI
Key Differentiators Takeaway Guest clustering delivers two key values: If you need to patch the Guest OS you can move the workload to another VM Host clustering does not enable patching the guest OS but live migration with host cluster allows no downtime when doing maintenance on the host. App Mobility If the app crashes or becomes unresponsive the app health monitoring will detect and recover Host clustering cannot monitor the health state of apps running inside of VM’s Systems Center OpsMgr may be an alternative App health monitoring
Quick Recap VM’s move from server to server Zero downtime to move a VM Works with any application or guest OS Host Clustering Apps move from VM to VM Downtime when moving applications Requires “cluster aware” applications running on Windows Server Requires double the resources – 2 VM’s for single workload Guest Clustering
DEMO Clustering Demo Tech Ed North America 2010 11/19/2018 12:08 PM © 2010 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.
Health Detection P Fault Host Cluster Guest Cluster Host hardware failure P Parent partition failure VM failure Guest OS failure Application Failure
Storage Options P Storage Host Cluster Guest Cluster Fibre Chanel (FC) Serial Attached SCSI (SAS) iSCSI File (SMB / NFS)
Host + Guest Clustering Best of both worlds Provides the most flexibility and protection VM and App mobility Consider host VM action’s effects on guest cluster Live migrate Quick migrate Shutdown VM Pause VM A cluster on a cluster does come at increased complexity…
Heartbeat Settings SameSubnetThreshold & SameSubnetDelay Where to configure: guest cluster Effect: increase tolerance for network responsiveness during live migration Configure Heartbeat and DNS Settings in a Multi-Site Failover Cluster. http://technet.microsoft.com/en-us/library/dd197562(WS.10).aspx
Keeping VM’s off the same Node AntiAffinityClassName Where to configure: host cluster Effect: attempts to avoid hosting VMs on the same node How to configure Windows clustering groups for hot spare support KB Article: 296799
Low Priority VM’s AutoStart (Windows Server 2008 R2) Where to configure: host cluster Effect: if set to “no”, VM will not automatically start if there is a node or group failure.
Ensuring Startup Persistent mode (Windows Server 2008 R2) Where to configure: host cluster Effect: When enabled, and the cluster starts, VMs will attempt to be placed on node that they were last moved to.
Mixing Physical and Virtual Can mix having both physical nodes and VM’s in the same cluster Supported – just pass validate Requires iSCSI storage Scenario: Workload regularly runs on physical node, but VM is secondary node iSCSI
Mixing Physical & Virtual Demo Tech Ed North America 2010 11/19/2018 12:08 PM Mixing Physical & Virtual Demo DEMO © 2010 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.
Remote Site Consolidation with DB Mirroring Scenario Description: Help protect from data loss with SQL Server® Database Mirroring. Automatically, failover from primary to standby using witness. Consolidate mirrored database servers on standby site with virtualization Use mirrored databases with database snapshots for reporting Ensure there is enough CPU capacity at the standby site to provide acceptable SLA upon failover VM SQL Server Database Mirroring 1 Reporting Server (DB Snapshot) 2 Virtualization Benefits: Better server utilization on standby site due to consolidation Cost effective disaster recovery solution without using costly specialized hardware Management efficiency based on SQL Server and System Center management tools 3 2 SQL Server Database Mirroring Click Here For More Information
SQL Azure No fuss scalability & availability Tech Ed North America 2010 11/19/2018 12:08 PM SQL Azure No fuss scalability & availability BENEFITS Virtually unlimited scalability Availability part of SLA Patching part of SLA Usage-based costs, i.e. no need to buy servers LIMITATIONS No support for Analysis Services, Integration Services, or Reporting Services Not all features available / implemented © 2007 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.
DEMO SQL Azure Demo Tech Ed North America 2010 11/19/2018 12:08 PM © 2010 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.
Session Resources SQL Server Consolidation Guidance Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub. Tech Ed North America 2010 11/19/2018 12:08 PM Session Resources SQL Server Consolidation Guidance SQL Server and Hyper-V Best Practices MSIT “Green” Case Study Using Consolidation & Virtualization Similarities and Differences of SQL Azure and SQL Server Hyper-V Live Migration with SQL Server Demo Video © 2010 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.
Related Content Breakout Sessions Required Slide Speakers, please list the Breakout Sessions, Interactive Sessions, Labs and Demo Stations that are related to your session. Tech Ed North America 2010 11/19/2018 12:08 PM Related Content Breakout Sessions DAT205 – Microsoft SQL Server Consolidation and Virtualization: Myths and Realities DAT207 – SQL Server High Availability: Overview, Considerations & Solution Guidance DAT307 – Microsoft SQL Server Consolidation: Building a Private SQL Server Cloud with Virtualization DAT401 – High Availability and Disaster Recovery: Best Practices for Customer Deployments DAT407 – Windows Server 2008R2 and Microsoft SQL Server 2008: Failover Clustering Implementations VIR314 – Virtualization Scenarios for Business Critical Applications © 2010 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.
Related Content Hands-on Labs DAT09-HOL Installing a Microsoft SQL Server 2008 + SP1 Clustered Instance DAT12-HOL Maintaining a Microsoft SQL Server 2008 Failover Cluster DAT18-HOL Rolling Upgrade to Microsoft SQL Server 2008
Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub. Tech Ed North America 2010 11/19/2018 12:08 PM DAT Track Scratch 2 Win Find the DAT Track Surface Table in the Yellow Section of the TLC Try your luck to win a Zune HD Simply scratch the game pieces on the DAT Track Surface Table and Match 3 Zune HDs to win © 2010 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.
Resources Learning Required Slide www.microsoft.com/teched Tech Ed North America 2010 11/19/2018 12:08 PM Required Slide Resources Learning Sessions On-Demand & Community Microsoft Certification & Training Resources www.microsoft.com/teched www.microsoft.com/learning Resources for IT Professionals Resources for Developers http://microsoft.com/technet http://microsoft.com/msdn © 2010 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.
Complete an evaluation on CommNet and enter to win! Tech Ed North America 2010 11/19/2018 12:08 PM Required Slide Complete an evaluation on CommNet and enter to win! © 2010 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.
Sign up for Tech·Ed 2011 and save $500 starting June 8 – June 31st http://northamerica.msteched.com/registration You can also register at the North America 2011 kiosk located at registration Join us in Atlanta next year
Tech Ed North America 2010 11/19/2018 12:08 PM © 2010 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. © 2010 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.
Required Slide Tech Ed North America 2010 11/19/2018 12:08 PM © 2010 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.