SQL Consolidation Planning

Slides:



Advertisements
Similar presentations
Monitoring and Testing I/O
Advertisements

SQL Performance Management with SCOM 2007
SLA-Oriented Resource Provisioning for Cloud Computing
System Center 2012 R2 Overview
© 2009 IBM Corporation Statements of IBM future plans and directions are provided for information purposes only. Plans and direction are subject to change.
Denny Cherry MVP, MCSA, MCDBA, MCTS, MCITP.
Justin Langford Principal Consultant
Consolidation and Virtualization with SQL Server Rob Reinauer Product Unit Manager SQL Server Engine Melbourne User Group September 10, 2009.
Microsoft Virtual Server 2005 Product Overview Mikael Nyström – TrueSec AB MVP Windows Server – Setup/Deployment Mikael Nyström – TrueSec AB MVP Windows.
Virtualized Workloads Supported Instant Messaging (IM) IM Conferencing Presence Enterprise Voice (PSTN) Audio/Video Conferencing Web Conferencing.
Chapter 9 Overview  Reasons to monitor SQL Server  Performance Monitoring and Tuning  Tools for Monitoring SQL Server  Common Monitoring and Tuning.
Module 8: Monitoring SQL Server for Performance. Overview Why to Monitor SQL Server Performance Monitoring and Tuning Tools for Monitoring SQL Server.
Windows Server Virtualization Infrastructure Planning and Design Series.
Presented by Jacob Wilson SharePoint Practice Lead Bross Group 1.
Upgrading to SQL Server 2012 “Done Right” Dandy Weyn DBI335.
Denny Cherry Senior Database Administrator / Architect MVP, MCSA, MCDBA, MCTS, MCITP.
Key Perf considerations & bottlenecks Windows Azure VM characteristics Monitoring TroubleshootingBest practices.
Get More out of SQL Server 2012 in the Microsoft Private Cloud environment Guy BowermanMadhan Arumugam DBI208.
Microsoft Azure Virtual Machines. Networking Compute Storage Virtual Machine Operating System Applications Data & Access Runtime Provision & Manage.
Improving Disk Latency and Throughput with VMware Presented by Raxco Software, Inc. March 11, 2011.
Get More out of SQL Server 2012 in the Microsoft Private Cloud environment Steven Wort, Xin Jin Microsoft Corporation.
Module 19 Managing Multiple Servers. Module Overview Working with Multiple Servers Virtualizing SQL Server Deploying and Upgrading Data-Tier Applications.
Session objectives Discuss whether or not virtualization makes sense for Exchange 2013 Describe supportability of virtualization features Explain sizing.
Learningcomputer.com SQL Server 2008 – Profiling and Monitoring Tools.
© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Perfmon and Profiler 101.
SQLRX – SQL Server Administration – Tips From the Trenches SQL Server Administration – Tips From the Trenches Troubleshooting Reports of Sudden Slowdowns.
1© Copyright 2012 EMC Corporation. All rights reserved. EMC PERFORMANCE OPTIMIZATION FOR MICROSOFT FAST SEARCH SERVER 2010 FOR SHAREPOINT EMC Symmetrix.
Clint Huffman Microsoft Premier Field Engineer (PFE) Microsoft Corporation SESSION CODE: VIR315 Kenon Owens Technical Product Manager Microsoft Corporation.
Hosted SharePoint. Part 3/3: Office Live as a WSS solution Speaker Name Microsoft Corporation Hosted.
Consolidation and Optimization Best Practices: SQL Server 2008 and Hyper-V Dandy Weyn | Microsoft Corp. Antwerp, March
Troubleshooting SQL Server Performance: Tips &Tools Amit Khandelwal.
Self Service BI: 21 st November 2009 Bob Duffy Database Architect Prodata SQL Centre of Excellence Project Gemini PowerPivot.
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.
Prem Mehra Program Manager Microsoft Corporation SESSION CODE: DAT308 Sung Hsueh Program Manager Microsoft Corporation.
Dawie Human Infrastructure Architect Inobits Consulting VIR202.
Jérôme Jaussaud, Senior Product Manager
Central Management Server Managing Your SQL Server Environment 1.
Load Testing Analysis Services 30 th march 2012 Bob Duffy Database Architect Prodata SQL Centre of Excellence.
27-29 August NIMHANS Convention Centre, Bangalore, India. Modernizing The Data Platform Flying Through the Clouds Performance Tuning in Azure Joey.
Configuring SQL Server for a successful SharePoint Server Deployment Haaron Gonzalez Solution Architect & Consultant Microsoft MVP SharePoint Server
Optimizing SQL Server Performance in a Virtual Environment Denny Cherry twitter.com/mrdenny.
When Good Design Goes Bad Bob Duffy. SQLSaturday #467 Sponsors.
Honest Bob’s Cube Processing Bob Duffy Database Architect.
SQL Server as a Cloud Service April 15th 2016 Warner Chaves Data Platform MVP/SQL Server MCM.
Indexing strategies and good physical designs for performance tuning Kenneth Ureña /SpanishPASSVC.
Virtualization Fundamentals for DBAs Joey D’Antoni February 3, 2015 DBA Fundamentals VC.
SQL 2012 – Always On Deep Dive Bob Duffy Database Architect Prodata SQL Centre of Excellence 11 th April 2013.
When Good Design Goes Bad Bob Duffy Database Architect Prodata SQL Centre of Excellence March 2015.
SharePoint 2010 Performance and Capacity Planning Best Practices
Monitoring SQL with System Center
SharePoint Solutions Architect, Protiviti
Benchmarking the forgotten Role of Performance Tuning
Anything But, Troubleshooting when it’s not SQL Server
Rick Heiges, SQL Server MVP
Windows Azure Migrating SQL Server Workloads
Installation and database instance essentials
04 – Azure SQL Database Bret Stateham | Senior Technical Evangelist​
Optimizing SQL Server Performance in a Virtual Environment
Introduction of Week 3 Assignment Discussion
Upgrading to Microsoft SQL Server 2014
Migration Strategies – Business Desktop Deployment (BDD) Overview
Storage Team (Controller Performance) Aggregate Utilization
SQL Storage Fundamentals for Azure IaaS
SQL 2014 In-Memory OLTP What, Why, and How
Migrating your SQL Server Instance
Microsoft Virtual Academy
Microsoft Exchange Server Virtualisation: Does It Make Sense?
Microsoft Virtual Academy
06 | SQL Server and the Cloud
Presentation transcript:

SQL Consolidation Planning 8th April 2011 SQL Consolidation Planning Bob Duffy Database Architect Prodata SQL Centre of Excellence

Speaker Profile – Bob Duffy SQL Server MVP Microsoft Certified Architect and Certified Master 18 years in database sector, 250+ projects Senior SQL Consultant with Microsoft 2005-2008 Regular speaker for TechNet, MSDN, Users Groups, Irish and UK Technology Conferences Database Architect at Prodata SQL Centre Excellence, Dublin Blog http://blogs.prodata.ie/bob (deck and demos up there)

Agenda Consolidation Overview Pre-Planning Service Planning and Design Storage Considerations

SQL Server Consolidation Today Currently a variety of consolidation strategies exist and are utilized Typically, as isolation goes up, density goes down and cost goes up Higher Isolation, Higher Costs Higher Density, Lower Costs HOST CONSOLIDATION DATABASE CONSOLIDATION IT Managed Environment Virtual Machines Instances Databases Multi-Tenant (2 flavours) MyServer Sales_1 Marketing_1 Online_Sales ERP_10 ERP_11 DB_1 DB_2 DB_3 Consolidate_1

Virtualization v Multiple Instances Debate Comparison of system qualities for Host Consolidation System Quality Feature Hyper-V \ESX SQL Inst. Manageability Ability to build and provide canned environment Yes No Deploy/Rollback Benefits End-to-End (development through production) use Simple migration to new host during server retire/replacement Simplicity for Instance scale up Simplicity for cloning a production environment (e.g. to Test) Less operating systems to manage Security Transparent to accomplish same level of security as with a dedicated host? Scalability Dynamic sharing of processor resources Processors Supported per environment 4 \ 8 256 NUMA / affinity benefits in guest No* Performance Acceptable Performance Availability Sql Clustering Option Not Easy Supports Sql Business Continuity features? Live Migration or VMotion Protected from OS failures in guests Supportability SQL 2005 and 2008 CSS Support Migration Fast and efficient migration from old to new environment

Some Practical Guidance Usually Virtualisation trumps Instance consolidation Often it is already a company strategy Edge cases are: High compute unit workloads > 4 cores Ultra low IO latency requirements Protection from OS failure (RTO Coverage in SLA) Avoidance of shared storage Most large firms NEED to look at database consolidation Migrating old server is expensive Green Fields approach is cheap Operating System “Sprawl” can be an issue

High Level Planning Support Deploy Build Plan Envision

SQL Discovery & Inventory Envision SQL Discovery/Inventory Plan Build/Test Deploy Support/Monitor

SQL Discovery & Inventory Tools Discovery Tools MAP (Microsoft Assessment & Planning) Toolkit System Centre (config or operations manager) Free Tools SqlPing SqlRecon Inventory Tools SQLH2 (on codeplex) SQL Tools

What you should now know Server Names and specs How many SQL Servers What Editions and Versions How much memory How many CPU and what type How much disk space How much data and log space

Envision – Environment Assessment SQL Discovery /Inventory Environment Assessment Plan Build/Test Deploy Support/Monitor

Environment Assessment Overview Determine Technical Factors Throughput (IOPS) CPU Compute Units used Disk Space Used Memory Used Some Performance Base lining Check for problem children Determine Business Factors Location Criticality Owners SLA’s Sensitivity Applications*

Technical factor Perform Counters Object Counter Why Logical Disk Disk Reads/Sec(Total) Disk Writes/Sec(Total) Disk Throughput in IOPS Processor %Processor Time(Total) CPU Throughput Network Bytes Total/Sec(Total) Network Throughput What tools to use to capture MAP Tool SCOM Manually in perfmon SQLH2 Tool (codeplex) Consolidation Planning Toolkit

Analysing IOPS distribution Group IOPS to nearest 50, 100 or 500 step Plot out all data for 15 min to 60 min intervals Count occurrences of each range Don’t for get about SLA hours http://blogs.prodata.ie/post/Using-MAP-Tool-and-Excel-to-Analyse-IO-for-SQL-Consolidation-Part-I-e28093-basic-distribution.aspx

Analysing CPU Requirements Comparing disparate processors is difficult Enter the compute unit (www.spec.org) CPU can have the same distribution issues as IOPS May need to replace the “avg” with a higher figure: High Average. The highest avg sustained for an hour. The 80% percentile The best tool here is the SQL Consolidation Planning Toolkit (CPT) Plugs into Excel Imports MAP Data

Performance Perfmon Counters Object Counter Target Logical Disk Disk Secs/Read(*) Disk Secs/Write(*) Disk Queue Length <20ms for OLTP <50 for DWH Processor %User Time(Total) %Privileged Time (Total) %Privileged < 20% of %user Time System Processor Queue Length Context Switches/Sec Queue <1 Switches < 10k per core SQL Server:Buffer Manager Page Life Expectancy > 300 avg SQL Server:SQL Statistics Batch Requests/sec < 1,000 per core avg SQLServer:General Statistics User Connections Logins / Sec <10 Databases Transactions/sec Compilations/Sec < 20% of Batch Requests per Sec

What you should now know Disk IOPS Required CPU resources required “Problem” workloads

Goals Principles and Constraints Project Goals and Success Factors Big bang, phased strategy or green fields Upgrade Scope consolidation Strategy (Host v Database) Isolation v Shared resources Cost, time and other constraints Overcommit strategy (CPU)

Identify Target Platform SQL Server 2008R2 or mixed Windows 2008R2 or mixed Virtualisation Platform (Hyper-V or ESX) Hardware Platform Choices 2 x six core or bigger.. Chargeback approach Storage Platform Discussed later

Designing the New Platform Plan Design new Platform(s) Plan Migrations Plan Monitoring Envision Use technical factors to estimate resources Use business factors to exclude and isolate Use both to plan allocation

Consolidation Planning Goals CPU Compute Units Required IOPS Required Memory Required Disk Space Required Mapping of workloads to new hosts

Microsoft Consolidation Planning Tool for SQL Server Excel Add-In (CPT) CPT Add In: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=eda8f544-c6eb-495f-82a1-b6ae53b30f0a

SQL Shared Storage Planning How to Specify Requirements Latency 8-20ms for Data files AND 1-5ms for Log files Throughout Avg IOPS Max IOPS %write ratio Service Levels Latency and throughout during events: Backup Disk failure Site failure Hours of Coverage http://blogs.prodata.ie/post/How-to-Specify-SQL-Storage-Requirements-to-your-SAN-Dude.aspx http://blogs.prodata.ie/post/How-to-Specify-IO-Requirements-Part-II.aspx

Common Storage Questions Can we mix SQL Server and Non SQL Workloads? At Disk Group Level At CFS or NFS Level Can we mix data and log and TempDb? Many disk groups or one large one? How many disks do we need and what RAID Type? How much cache do I need? Should pay the big bucks for 128GB Tier 0 SSD Cache? SSD, SAS, FC or SATA?

Yin and Yang Approach to Storage The Bad stuff Using a Shared Disk Group Using Clustered Shared Volumes (or NFS on ESX) Use of filing system on host instead of “pass through” Multiple VM guests on a single host Use of RAID 5/6 Sharing Log spindles Dynamic Disks The good stuff 8 Gbit /10 Gbit controllers Load balanced HBA cards and controllers Lots of IOPS and spindles Low latency disk subsystem SSD Lots of cache for writes http://blogs.msdn.com/b/boduff/archive/2010/03/31/general-guidance-for-sql-server-on-virtualisation.aspx

Wrap Up Generally Virtualisation Trumps Sql Instances Its hard to avoid database consolidation MAP will help gather resource requirements CPT Tool with help design new environment Good Storage subsystem is essential

Questions ?

Additional References Microsoft® Consolidation Planning tool for SQL Server 1.0 http://www.microsoft.com/downloads/en/details.aspx?FamilyID=eda8f544-c6eb-495f-82a1-b6ae53b30f0a Tools for SQL Discovery & Inventory https://blogs.msdn.com/boduff/archive/2009/09/16/tools-for-sql-discovery.aspx SQL Server Workload Consolidation (ESX 3.5) http://www.vmware.com/pdf/SQL_Server_consolidation.pdf SQL Server Consolidation in Microsoft IT http://www.msarchitecturejournal.com/pdf/Journal18.pdfhttp://msdn.microsoft.com/en-us/architecture/dd393309.aspx SQL Server 2008 Consolidation White Paper http://download.microsoft.com/download/6/9/D/69D1FEA7-5B42-437A-B3BA-A4AD13E34EF6/SQLServer2008Consolidation.docx Free eBook – The case for SQL Server Consolidation http://media.techtarget.com/digitalguide/images/Misc/sqlsc_ebook.pdf SPEC – Standard Performance Evaluation Corporation (Compute Unit Definition) http://www.spec.org/

Thank You!