SlideShare a Scribd company logo
Introduction to Database
Experimentation Assistant :
Secret Weapon to Cloud
Migrations
@JohnSterrett
Founder of Procure SQL LLC
Goals for A
Successful
Migration
NO UNEXPECTED ERRORS
Goals for A
Successful
Migration
No Unexpected Errors
Users Not Complaining about
Performance
Goals for A
Successful
Migration
No Unexpected Errors
Users Not Complaining about
Performance
Expenses going down!
Workload Replay in the Cloud: Secret Weapon for Cloud Migrations
Workload Replay in the Cloud: Secret Weapon for Cloud Migrations
Save ~ 40k per year for the right compute
for your workload
Workload Replay in the Cloud: Secret Weapon for Cloud Migrations
Workload Tuning History..
History of Workload Replay
About John Sterrett
11
john@procuresql.com
@johnsterrett
johnsterrett.com
procuresql.com
linkedin.com/in/johnsterrett
Today’s Agenda
• Benchmarking the Common Way
• Workload Replay Process
• Database Experiment Assistant (DEA)
• Distributed Replay vs RML Utilities
• Capture Workload
• Replay Workload
• Testing Azure SQL VM to Azure SQL DB
Migration
Help Me, Help You!
• I need your feedback to make
this session better.
$50 Amazon gift card
• https://survey.zohopublic.com/
zs/hKzJaz
• Image Credit
Workload Replay in the Cloud: Secret Weapon for Cloud Migrations
Workload Tuning Never-ending cycle
Workload
is Running
Capture
Workload
Analysis
on
Captured
Workload
Make
Changes
Workload
Replay Steps
Backup (P)
Capture Replay
for Replay (P)
Stop Capture
Replay (P)
Preprocess
Replay Capture
Restore Backup
Capture Replay
for Analysis
Introduce a
Change
Replay
Workload
Stop Replay
Capture
Perform
Analysis
Only in Production!
DEA Tools
Capture
SQL Server Side Trace
Extended Event
Preprocess
Distributed Replay
RML Utilities
(readtrace.exe)
Replay
Distributed Replay
RML Utilities (ostress.exe)
Analysis
Database Experiment
Assistant
DEA Tool Suite
Distributed
Replay
(DReplay)
RML Utilities
(InBuilt)
How Distributed Replay Works
Distributed Replay Executables
DReplay.exe
DReplayClient.exe DReplayController.exe
Umm.. Where is DREPLAY.EXE?
• SQL tools Forum Link
• Vote for Fix
• Workaround - Download
SSMS 2017
Workload Replay in the Cloud: Secret Weapon for Cloud Migrations
Capture Workload for Replay
DEA – Capture Results
Capture Trace Events and Output
Workload Replay in the Cloud: Secret Weapon for Cloud Migrations
DEA – Replay Selection
Replay Process
with
Distributed
Replay (DRU)
Create Trace
Replay Capture
Preprocess
Trace to DRU
Replay
Preprocessed
DRU
Stop Replay
Trace
Remove Trace
PreProcess Input and Output
DEA – Replay Results
Preprocess with Distributed Replay
Replay with Distributed Replay
Extended Event and Trace grow quickly!
Scripts Used by DEA
Workload Replay in the Cloud: Secret Weapon for Cloud Migrations
Replay Process for Azure SQL DB
Validate
Schema
Move
Schema
and Data
Setup Blob
Storage
Create SAS
Key
Create
Database
Credential
Replay
Workload
Migrate Data Setup Extended Event Capture to Blob Storage DEA Replay
Successful Validation of Schema in DMA
Import Schema and Data to Azure SQL
DB with Dbatools.io and PowerShell
Import-Module dbatools -Force
<# Variables #>
$BackupPath = "C:DemoAzureSQLBacpac" #folder location for backups
$SourceInstance = "sql2019sql2016"
$DBName = "TestUpgrade"
$AzureDestInstance = "procuresqlsc.database.windows.net"
$DBNameDest = $DBName
$SQLAdminUser = "<Your account name>"
<# backpac options for import and export #>
$option = New-DbaDacOption -Type Bacpac -Action Export
$option.CommandTimeout = 0
$option2 = New-DbaDacOption -Type Bacpac -Action Publish
$option2.CommandTimeout = 0
$bacpac = Export-DbaDacPackage -Type Bacpac -DacOption $option -Path $BackupPath -SqlInstance $SourceInstance -Database $DBName
Publish-DbaDacPackage -Type Bacpac -SqlInstance $AzureDestInstance -Database $DBNameDest -Path $bacpac.path -DacOption $option2 -
SqlCredential $SQLAdminUser
Create Shared Access Signature
Use SAS Token for Database Credential
Note: Blob Container name is not included
Create Database Credential to access
Blob Storage
CREATE MASTER KEY ENCRYPTION BY PASSWORD = ‘<Your Password>';
/* Remember to remove leading ? From SAS token in the Azure Portal */
CREATE DATABASE SCOPED CREDENTIAL [https://migrateazure.blob.core.windows.net/dataarchvc]
WITH IDENTITY='SHARED ACCESS SIGNATURE',
SECRET = 'sv=2019-12-12&ss=b&srt=sco&sp=rwdlacx&se=2020-08-29T08:23:26Z&st=2020-08-
26T00:23:26Z&spr=https&sig=i5RLPsd2oiBhJQsNZvvYloGoAUZno2%2BNT1DI%2Fz9rQPU%3F'
GO
Start Replay to Azure SQL Database
Ostress.exe for Azure SQL DB Replay
Workload Replay in the Cloud: Secret Weapon for Cloud Migrations
Analysis Azure VM vs Azure SQLDB
Analysis Automated Process
Download
from Blob
Storage
Read Trace
on Load1
into DB1
Read Trace
on Load2
into DB2
Compare
Analysis
into DB3
Load
Analysis
Viewer
Workload Replay in the Cloud: Secret Weapon for Cloud Migrations
Workload Replay in the Cloud: Secret Weapon for Cloud Migrations
Workload Replay in the Cloud: Secret Weapon for Cloud Migrations
Workload Replay in the Cloud: Secret Weapon for Cloud Migrations
Where Are DEA Logs?
Workload Replay in the Cloud: Secret Weapon for Cloud Migrations
Get Help for DEACMD Operations
CD "C:Program Files (x86)Microsoft
CorporationDatabase Experimentation Assistant"
.deacmd.exe --help
Get Help for Starting Capture
CD "C:Program Files (x86)Microsoft CorporationDatabase
Experimentation Assistant"
.deacmd.exe -o StartCapture --help
Start Capture with DEACMD.EXE
$TracePath = "D:DRUReplayE"
.Deacmd.exe -o StartCapture -n sql2008capture -x 0 -h localhost -f
TestUpgrade -e --trust -m 0 -l $TracePath -d 10
Replay a Preprocessed Workload
CD "C:Program Files (x86)Microsoft SQL Server140ToolsBinn"
.dreplay.exe replay -s "ProcureLoad" -w "ProcureLoad" -f 30 -o -d "D:DRUPreProcess"
Stop Capture Replay
<# Stop Replay #>
CD "C:Program Files (x86)Microsoft CorporationDatabase Experimentation Assistant"
.Deacmd.exe -o StopCapture -n sql2008capture -x 0 -h localhost -e --trust -m 0
Free Reference Material
Videos, Reference Links, Tips, and slide deck
can be found at
http://azuresqldbresources.procuresql.com/

More Related Content

KEY
Agile Database Development with Liquibase
Tim Berglund
 
PDF
React & Redux
Craig Jolicoeur
 
PDF
React JS and Redux
Glib Kechyn
 
PPTX
React & redux
Cédric Hartland
 
PPTX
Academy PRO: React JS. Redux & Tooling
Binary Studio
 
PDF
React state managmenet with Redux
Vedran Blaženka
 
PPTX
Liquibase migration for data bases
Roman Uholnikov
 
PPTX
React + Redux Introduction
Nikolaus Graf
 
Agile Database Development with Liquibase
Tim Berglund
 
React & Redux
Craig Jolicoeur
 
React JS and Redux
Glib Kechyn
 
React & redux
Cédric Hartland
 
Academy PRO: React JS. Redux & Tooling
Binary Studio
 
React state managmenet with Redux
Vedran Blaženka
 
Liquibase migration for data bases
Roman Uholnikov
 
React + Redux Introduction
Nikolaus Graf
 

What's hot (20)

PDF
Let's Redux!
Joseph Chiang
 
PPTX
React / Redux Architectures
Vinícius Ribeiro
 
PDF
React & Redux
Federico Bond
 
PPTX
Redux training
dasersoft
 
PPT
9\9 SSIS 2008R2_Training - Package Reliability and Package Execution
Pramod Singla
 
PPTX
React и redux
Дмитрий Радыно
 
PDF
JSP
corneliuskoo
 
PDF
Intro to sbt-web
Marius Soutier
 
PDF
React.js and Redux overview
Alex Bachuk
 
PDF
Intro to ReactJS
Harvard Web Working Group
 
PDF
Intro to Scala.js - Scala UG Cologne
Marius Soutier
 
PDF
Redux vs Alt
Uldis Sturms
 
PDF
React, Redux, ES2015 by Max Petruck
Maksym Petruk
 
PPTX
Inside Azure Diagnostics (DevLink 2014)
Michael Collier
 
PDF
Change RelationalDB to GraphDB with OrientDB
Apaichon Punopas
 
PPTX
React js
Oswald Campesato
 
PDF
Let's discover React and Redux with TypeScript
Mathieu Savy
 
PDF
React redux
Michel Perez
 
PDF
Component level caching with react
AnusheelSingh2
 
PDF
State Models for React with Redux
Stephan Schmidt
 
Let's Redux!
Joseph Chiang
 
React / Redux Architectures
Vinícius Ribeiro
 
React & Redux
Federico Bond
 
Redux training
dasersoft
 
9\9 SSIS 2008R2_Training - Package Reliability and Package Execution
Pramod Singla
 
Intro to sbt-web
Marius Soutier
 
React.js and Redux overview
Alex Bachuk
 
Intro to ReactJS
Harvard Web Working Group
 
Intro to Scala.js - Scala UG Cologne
Marius Soutier
 
Redux vs Alt
Uldis Sturms
 
React, Redux, ES2015 by Max Petruck
Maksym Petruk
 
Inside Azure Diagnostics (DevLink 2014)
Michael Collier
 
Change RelationalDB to GraphDB with OrientDB
Apaichon Punopas
 
Let's discover React and Redux with TypeScript
Mathieu Savy
 
React redux
Michel Perez
 
Component level caching with react
AnusheelSingh2
 
State Models for React with Redux
Stephan Schmidt
 
Ad

Similar to Workload Replay in the Cloud: Secret Weapon for Cloud Migrations (20)

PPTX
Migrating Data and Databases to Azure
Karen Lopez
 
PDF
Migrate SQL Workloads to Azure
Antonios Chatzipavlis
 
PPTX
01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azur...
Microsoft Developer Network (MSDN) - Belgium and Luxembourg
 
PPTX
Migrating on premises workload to azure sql database
PARIKSHIT SAVJANI
 
PDF
Data Migration to Azure SQL and Azure SQL Managed Instance - June 19 2020
Timothy McAliley
 
PDF
SQL Server 2008 Migration
Mark Ginnebaugh
 
PDF
Getting Started with Windows Azure and SQL Databases
Jason Strate
 
PDF
Ready for take-off - How to get your databases into the cloud
Andre Essing
 
PPTX
SQL Server 2014 Hybrid Cloud Features
Guillermo Caicedo
 
PPTX
Should I move my database to the cloud?
James Serra
 
PPTX
Presentation1.pptx
Abishek V S
 
PPTX
SQL to Azure Migrations
Datavail
 
PPTX
JoTechies - Azure SQL DB
JoTechies
 
PPTX
Exploring All options to move your Oracle Databases to the Oracle Cloud
Alex Zaballa
 
PPTX
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Bob Ward
 
PDF
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Antonios Chatzipavlis
 
PPTX
Gives a structured overview of the skills measured in the DP-700 exam
thehulk1299
 
PPTX
PaaSport to Paradise: Back to the Future with SSIS in Azure Data Factory
Sandy Winarko
 
PPTX
Microsoft Cloud BI Update 2012 for SQL Saturday Philly
Mark Kromer
 
PPTX
Azure Migrate
Mustafa
 
Migrating Data and Databases to Azure
Karen Lopez
 
Migrate SQL Workloads to Azure
Antonios Chatzipavlis
 
01 dev room2_kung_fu_migration_scottklein_23Kung Fu Migration to Windows Azur...
Microsoft Developer Network (MSDN) - Belgium and Luxembourg
 
Migrating on premises workload to azure sql database
PARIKSHIT SAVJANI
 
Data Migration to Azure SQL and Azure SQL Managed Instance - June 19 2020
Timothy McAliley
 
SQL Server 2008 Migration
Mark Ginnebaugh
 
Getting Started with Windows Azure and SQL Databases
Jason Strate
 
Ready for take-off - How to get your databases into the cloud
Andre Essing
 
SQL Server 2014 Hybrid Cloud Features
Guillermo Caicedo
 
Should I move my database to the cloud?
James Serra
 
Presentation1.pptx
Abishek V S
 
SQL to Azure Migrations
Datavail
 
JoTechies - Azure SQL DB
JoTechies
 
Exploring All options to move your Oracle Databases to the Oracle Cloud
Alex Zaballa
 
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
Bob Ward
 
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Antonios Chatzipavlis
 
Gives a structured overview of the skills measured in the DP-700 exam
thehulk1299
 
PaaSport to Paradise: Back to the Future with SSIS in Azure Data Factory
Sandy Winarko
 
Microsoft Cloud BI Update 2012 for SQL Saturday Philly
Mark Kromer
 
Azure Migrate
Mustafa
 
Ad

More from John Sterrett (15)

PDF
Database Management Myths for Developers
John Sterrett
 
PDF
DBA Basics: Getting Started with Performance Tuning.pdf
John Sterrett
 
PDF
Getting Started with SQL Server Performance Tuning.pdf
John Sterrett
 
PDF
PowerPivot for DBAs
John Sterrett
 
PPTX
Introduction to High Availability with SQL Server
John Sterrett
 
PPTX
Introduction to PowerShell for DBA's
John Sterrett
 
PPTX
SQL Server Performance Root Cause Analysis in 10 Minutes
John Sterrett
 
PDF
Table Partitioning: Secret Weapon for Big Data Problems
John Sterrett
 
PPTX
Introduction to execution plan analysis
John Sterrett
 
PDF
12 Steps to Workload Tuning
John Sterrett
 
PDF
Performance Tuning for Pirates!
John Sterrett
 
PPTX
Can You Host a SQL Saturday?
John Sterrett
 
PPTX
Evaluating Daily Checklist Against 1000 Servers using Policy Based Management
John Sterrett
 
PPTX
SQL Server 2008 For Developers
John Sterrett
 
PPTX
Evaluate Daily Checklist with PBM and CMS
John Sterrett
 
Database Management Myths for Developers
John Sterrett
 
DBA Basics: Getting Started with Performance Tuning.pdf
John Sterrett
 
Getting Started with SQL Server Performance Tuning.pdf
John Sterrett
 
PowerPivot for DBAs
John Sterrett
 
Introduction to High Availability with SQL Server
John Sterrett
 
Introduction to PowerShell for DBA's
John Sterrett
 
SQL Server Performance Root Cause Analysis in 10 Minutes
John Sterrett
 
Table Partitioning: Secret Weapon for Big Data Problems
John Sterrett
 
Introduction to execution plan analysis
John Sterrett
 
12 Steps to Workload Tuning
John Sterrett
 
Performance Tuning for Pirates!
John Sterrett
 
Can You Host a SQL Saturday?
John Sterrett
 
Evaluating Daily Checklist Against 1000 Servers using Policy Based Management
John Sterrett
 
SQL Server 2008 For Developers
John Sterrett
 
Evaluate Daily Checklist with PBM and CMS
John Sterrett
 

Recently uploaded (20)

PPTX
The whitetiger novel review for collegeassignment.pptx
DhruvPatel754154
 
PPTX
INFO8116 - Week 10 - Slides.pptx data analutics
guddipatel10
 
PDF
202501214233242351219 QASS Session 2.pdf
lauramejiamillan
 
PDF
An Uncut Conversation With Grok | PDF Document
Mike Hydes
 
PDF
Fundamentals and Techniques of Biophysics and Molecular Biology (Pranav Kumar...
RohitKumar868624
 
PPTX
Introduction to Biostatistics Presentation.pptx
AtemJoshua
 
PPTX
Fuzzy_Membership_Functions_Presentation.pptx
pythoncrazy2024
 
PDF
Key_Statistical_Techniques_in_Analytics_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
TIC ACTIVIDAD 1geeeeeeeeeeeeeeeeeeeeeeeeeeeeeer3.pdf
Thais Ruiz
 
PDF
Mastering Financial Analysis Materials.pdf
SalamiAbdullahi
 
PPTX
Databricks-DE-Associate Certification Questions-june-2024.pptx
pedelli41
 
PPTX
Fluvial_Civilizations_Presentation (1).pptx
alisslovemendoza7
 
PDF
SUMMER INTERNSHIP REPORT[1] (AutoRecovered) (6) (1).pdf
pandeydiksha814
 
PDF
Practical Measurement Systems Analysis (Gage R&R) for design
Rob Schubert
 
PDF
The_Future_of_Data_Analytics_by_CA_Suvidha_Chaplot_UPDATED.pdf
CA Suvidha Chaplot
 
PPTX
Web dev -ppt that helps us understand web technology
shubhragoyal12
 
PPTX
Introduction to Data Analytics and Data Science
KavithaCIT
 
PPTX
Presentation on animal welfare a good topic
kidscream385
 
PDF
Technical Writing Module-I Complete Notes.pdf
VedprakashArya13
 
PPTX
HSE WEEKLY REPORT for dummies and lazzzzy.pptx
ahmedibrahim691723
 
The whitetiger novel review for collegeassignment.pptx
DhruvPatel754154
 
INFO8116 - Week 10 - Slides.pptx data analutics
guddipatel10
 
202501214233242351219 QASS Session 2.pdf
lauramejiamillan
 
An Uncut Conversation With Grok | PDF Document
Mike Hydes
 
Fundamentals and Techniques of Biophysics and Molecular Biology (Pranav Kumar...
RohitKumar868624
 
Introduction to Biostatistics Presentation.pptx
AtemJoshua
 
Fuzzy_Membership_Functions_Presentation.pptx
pythoncrazy2024
 
Key_Statistical_Techniques_in_Analytics_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
TIC ACTIVIDAD 1geeeeeeeeeeeeeeeeeeeeeeeeeeeeeer3.pdf
Thais Ruiz
 
Mastering Financial Analysis Materials.pdf
SalamiAbdullahi
 
Databricks-DE-Associate Certification Questions-june-2024.pptx
pedelli41
 
Fluvial_Civilizations_Presentation (1).pptx
alisslovemendoza7
 
SUMMER INTERNSHIP REPORT[1] (AutoRecovered) (6) (1).pdf
pandeydiksha814
 
Practical Measurement Systems Analysis (Gage R&R) for design
Rob Schubert
 
The_Future_of_Data_Analytics_by_CA_Suvidha_Chaplot_UPDATED.pdf
CA Suvidha Chaplot
 
Web dev -ppt that helps us understand web technology
shubhragoyal12
 
Introduction to Data Analytics and Data Science
KavithaCIT
 
Presentation on animal welfare a good topic
kidscream385
 
Technical Writing Module-I Complete Notes.pdf
VedprakashArya13
 
HSE WEEKLY REPORT for dummies and lazzzzy.pptx
ahmedibrahim691723
 

Workload Replay in the Cloud: Secret Weapon for Cloud Migrations