Benchmarking like a PRO

Slides:



Advertisements
Similar presentations
SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field Engineer SQLRAP, WS+ SQL Server Performance Tuning, WS+
Advertisements

Help! My table is getting too big! How to divide and conquer SQL Relay 2014.
Module 17 Tracing Access to SQL Server 2008 R2. Module Overview Capturing Activity using SQL Server Profiler Improving Performance with the Database Engine.
Media Partners.
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
Connect Learn Share Performance Optimization for Microsoft Dynamics CRM Presented by: Walter Grow Austin Jones.
Module 19 Managing Multiple Servers. Module Overview Working with Multiple Servers Virtualizing SQL Server Deploying and Upgrading Data-Tier Applications.
Intro to SQL Server Performance Tuning By Robert Biddle.
How to solve a SQL performance problem Paul Zgondea.
1 Performance Optimization In QTP Execution Over Video Automation Testing Speaker : Krishnesh Sasiyuthaman Nair Date : 10/05/2012.
ADAPTING YOUR ETL SOLUTION TO USE SSIS 2012 Presentation by Devin Knight
SQL Query Analyzer. Graphical tool that allows you to:  Create queries and other SQL scripts and execute them against SQL Server databases. (Query window)
Testing With Your Data, Your Way! Distributed Replay 1 SQLSat 470 Washington DC December 5, 2015.
Load Testing Analysis Services 30 th march 2012 Bob Duffy Database Architect Prodata SQL Centre of Excellence.
SQL Server High Availability Introduction to SQL Server high availability solutions.
SQL Advanced Monitoring Using DMV, Extended Events and Service Broker Javier Villegas – DBA | MCP | MCTS.
Improve query performance with the new SQL Server 2016 query store!! Michelle Gutzait Principal Consultant at
Session Name Pelin ATICI SQL Premier Field Engineer.
ROLLING DATABASE SNAPSHOTS David Cobb Daveslog.com.
Make my day Distributed Replay. Meet the speakers Raoul Illyés Raoul Illyés is a SQL Server MVP, CEO and Mentor at SolidQ Denmark.
Sitecore upgrades The Past, The Present, The Future.
SQL Saturday #509 | Brisbane 2016 #509 | Brisbane 2016 Martin Catherall Moving from Profiler to Extended Events.
Maintaining a Microsoft SQL Server 2008 Database
Planning a Migration.
Backups for Azure SQL Databases and SQL Server instances running on Azure Virtual Machines Session on backup to Azure feature (manual and managed) in SQL.
Analysis Services in times of Continuous Integration
Programming with FileStream Object
Securing SQL Server Processes with Certificates
Got stress? Sometimes the SQL Server needs some too
Tips for SQL Server Performance and Resiliency
A big party is being held to honor relational database systems and their impact on modern society. Outside the venue, the host awaits the guests. The.
SQL Server Baselining, Benchmarking and Workload Analysis
Navigating the options for Data Redundancy
SQL Server Data Collector From Every Angle
Lead SQL BankofAmerica Blog: SQLHarry.com
Hitting the SQL Server “Go Faster” Button
Solving the Hard Problems
SQL Server Monitoring Overview
Got stress? Sometimes the SQL Server needs some too
Where to Start, What You Need
DEA Will Be Your New Best Friend!
Simplifying XEvents Management with dbatools
Upgrading to Microsoft SQL Server 2014
Tips for SQL Server Performance and Resiliency
The Ins and Outs of Indexes
Performance Tuning for Mere Mortals Part II
Mission critical application testing with Distributed Replay
Making PowerShell Useful
Re-Indexing - The quest of ultimate automation
What’s new in SQL Server 2016 Availability Groups
Migrating your SQL Server Instance
dbatools - PowerShell and SQL Server Working Together
SQL Server 2016 Query Data Store
Azure SQL Database - Managing your database on the cloud
Performance Tuning for Mere Mortals Part II
SQL Server Performance Tuning Nowadays
Targeting Wait Statistics with Extended Events
Delivering Business Value Faster
Moving from SQL Profiler to xEvents
Using Power Bi to troubleshoot SQL Server instances
The Ins and Outs of Indexes
Upgrading to Microsoft SQL Server 2014
Andrew Fryer Microsoft UK
Analyzing Performance Problems Using XEvents, DMVs & Query Store
Performance And Scalability In Oracle9i And SQL Server 2000
Using wait stats to determine why my server is slow
Extended Events: Successful troubleshooting recipes
Managing the mystery database
Analyzing Performance Problems Using XEvents, DMVs & Query Store
The Ins and Outs of Indexes
Presentation transcript:

Benchmarking like a PRO Gianluca Sartori

THANKS to all Sponsors! EVENT SPONSORS EXPO SPONSORS EXPO LIGHT SPONSORS

Meet me at the Community Zone After this session, you can speak with me in the Community Zone WE MIGHT Discuss additional questions Review parts of my session in more detail Network Take selfies…  IMPORTANT : ONLY SHOW THIS SLIDE IF YOU HAVE COMMITED TO BE AT THE COMMUNITY ZONE

Gianluca Sartori Independent SQL Server consultant SQL Server MVP, MCTS, MCITP, MCT Works with SQL Server since version 7 DBA @ Scuderia Ferrari Blog: spaghettidba.com Twitter: @spaghettidba

Agenda Baselining & Benchmarking scenarios Tools Capturing in production Running the Replay Comparing results

WARNING: I will demo PowerShell scripts Nobody is going to get hurt WARNING: I will demo PowerShell scripts Nobody is going to get hurt. Promised.

Baselining and Benchmarking Scenarios

What is a benchmark? Describes performance in a given scenario Evaluates whatif scenarios HW/Software Upgrade Virtualization… Helps rating tuning efforts Server-wide configuration changes Addition / removal of indexes

Benchmarking Scenarios Patching SW Upgrade Consolidation Virtualization HW Upgrade Configuration change Database Tuning

Synthetic Workload TPC benchmarks DVD Store HammerDB DBA’s LAPTOP

Production vs. Test Patching SW Upgrade Consolidation Virtualization HW Upgrade DBA’s LAPTOP

Test vs. Test Configuration change Database Tuning DBA’s LAPTOP

Tools

Capture Tools Profiler Extended Events SQL Trace Non-negligible performance impact on the server Extended Events Low performance overhead Big files Non compatible with all versions of SQL Server SQL Trace «Old school» Compatible with all versions Compatible with more analysis/replay tools

Analysis Tools RML Utilities SQLNexus ClearTrace PAL ReadTrace Reporter SQLNexus Based on RML Utilities ClearTrace Can analyze trace files PAL Performance counters analysis with thresholds

Replay Tools Profiler RML Utilities Distributed Replay Can set breakpoints for debugging RML Utilities Ostress Stress / Replay mode Distributed Replay Introduced in SQL Server 2012 Can replay a workload from multiple clients Supports synchronization mode

Capturing in production

What to capture Queries Performance data Database SQL Trace vs. Profiler vs. Extended Events Which events? Which columns? Any templates? Performance data Performance counters Which counters? PAL threshold file Database Full database backup All databases involved Synchronize with the trace

Capturing workloads in production DEMO Capturing workloads in production

Running the replay

Prepare the environment Server Logins Any server object captured in the source workload Database Restore the database(s) Queries Pre-process the trace files (Synchronize with the backup time, apply filters…)

Replay Tools Profiler Ostress Distributed Replay Multithreading YES Debugging NO Synchronization mode Stress mode Distributed mode Input format Trace RML SQL XEL

DEMO Running the replay

Comparing executions

RML Reporter

PAL

Database Experimentation Assistant

DEMO Comparing Executions

Alternatives? Frequent issues Possible solutions Database is too big for backup / restore (e.g. 10 TB) Workload is too heavy to capture Too much space on disk, too many .TRC files to analyze Not enough time captured => not meaningful enough Possible solutions Replay events with XEvents streaming API Avoid replay completely and run a representative workload Query Store

Resources Samples on GitHub RML Utilities PAL ClearTrace https://github.com/spaghettidba/DBA-Scripts/tree/master/Replay RML Utilities https://support.microsoft.com/en-us/kb/944837 PAL https://pal.codeplex.com/ ClearTrace http://www.scalesql.com/cleartrace/ Database Experimentation Assistant https://blogs.msdn.microsoft.com/datamigration/2017/03/24/dea-2-0-how-to-use-database- experimentation-assistant/ https://www.microsoft.com/en-us/download/details.aspx?id=54090

Q&A Questions?

Q&A More Questions? Ask me! spaghettidba@sqlconsulting.it

Please evaluate all sessions! QR / LINK on posters and in program