SlideShare a Scribd company logo
Replay your workload as it’s your actual one!
Boris Hristov
SQL Server DBA, Speaker, Trainer, Blogger
So who am I?
@BorisHristov
How many of you…
reasons why
Possible scenarios:
1.Application compatibility
2.Performance / Load testing
3.Forecasting
What tools to use?
The Mighty Profiler
RML Tools
ReadTrace Reporter
OSTRESS
These are cool…
… but not cool enough!
“There’s a new player in town!”DISTRIBUTED REPLAY
So what’s Distributed Replay?
SQL Server 2012 feature
Available in all editions (kind of…)
Works with 2005 and higher (kind of…)
Distributed Replay Components
1. Administration tool – the cmd tool to manage the replay1. Administration tool – the cmd tool to manage the replay
2. DReplay Controller – the brain behind the replay
3. DReplay Client – machines(up to 16) that replay the workload
4. Target Server – The SQL Server instance you replay against
OK, but how are they working together?
DEMO
Setting up DReplay Environment
(installing gotchas)
Installation requirements and gotchas
1. Services must run under domain user accounts
2. Firewalls must allow the traffic of DR Components
3. DCOM permissions must be configured
4. SQL Server logins for the clients need to be created
So how do we issue a replay?
Step 1: Capture a trace!
Step 2: Preprocesses the .trc file/s
Step 3: Decide on replay mode and options
Step 4: Replay the preprocessed trace
DEMO
The Replay Process!
Replay your workload. The steps.
1. Capture the workload with Profiler (TSQL-Replay)
2. Preprocess the trace with “dreplay preprocess”
3. Decide on a mode – synchronization or stress
4. Replay the workload with “dreplay replay”
5. Analyze the results
The GUI that is in beta from 2011
At the end
1. The Tool for replaying mission critical workloads
1. Don’t be afraid of not having a GUI
2. Capture -> Preprocess -> Replay
3. Document, blog, share it with the community!
Resources
My blog – FAQ and RunAs Radio Podcast
Channel 9 - Joe Sack(SQLSkills) Intro and Demo
Jonathan Kehayias(SQLSkills) Intro and Demo
Microsoft Peace of Mind Video
MSDN Documentation
Distributed Replay GUI (in beta)
… you and me now
A big thanks to our sponsors
A big thanks to our sponsors
Thank you!

More Related Content

PDF
Replay your workload as it is your actual one!
PPTX
Welcome to the nightmare of locking, blocking and isolation levels!
PDF
The nightmare of locking, blocking and isolation levels
PDF
The nightmare of locking, blocking and isolation levels!
PPTX
The nightmare of locking, blocking and deadlocking. SQLSaturday #257, Verona
PPTX
Replay your workload as it is your actual one!
PPTX
The nightmare of locking, blocking and isolation levels!
PPTX
Welcome to the nightmare of locking, blocking and isolation levels!
Replay your workload as it is your actual one!
Welcome to the nightmare of locking, blocking and isolation levels!
The nightmare of locking, blocking and isolation levels
The nightmare of locking, blocking and isolation levels!
The nightmare of locking, blocking and deadlocking. SQLSaturday #257, Verona
Replay your workload as it is your actual one!
The nightmare of locking, blocking and isolation levels!
Welcome to the nightmare of locking, blocking and isolation levels!

What's hot (20)

PPTX
The Nightmare of Locking, Blocking and Isolation Levels!
PPTX
The Nightmare of Locking, Blocking and Isolation Levels!
PPTX
The Nightmare of Locking, Blocking and Isolation Levels!
PPTX
Replay your workload as it is your actual one!
PPTX
Replay your workload as it's your actual one
PDF
The nightmare of locking, blocking and isolation levels
PPTX
Thread presentation
PDF
Installation of ns2
PPT
Webspher MQ online training
PPTX
Java Multi Thead Programming
PPTX
PPTX
Real time operating systems (rtos) concepts 5
PPT
Os Threads
PPTX
VXCON 2017
PDF
Operating Systems 1 (8/12) - Concurrency
PDF
Blocks, procs && lambdas
PPT
Synchronization linux
PPTX
Real time operating systems (rtos) concepts 4
PPTX
Real time operating systems (rtos) concepts 3
PPTX
Linux Daemons & INIT services
The Nightmare of Locking, Blocking and Isolation Levels!
The Nightmare of Locking, Blocking and Isolation Levels!
The Nightmare of Locking, Blocking and Isolation Levels!
Replay your workload as it is your actual one!
Replay your workload as it's your actual one
The nightmare of locking, blocking and isolation levels
Thread presentation
Installation of ns2
Webspher MQ online training
Java Multi Thead Programming
Real time operating systems (rtos) concepts 5
Os Threads
VXCON 2017
Operating Systems 1 (8/12) - Concurrency
Blocks, procs && lambdas
Synchronization linux
Real time operating systems (rtos) concepts 4
Real time operating systems (rtos) concepts 3
Linux Daemons & INIT services
Ad

Similar to Replay your workload as it is your actual one! (20)

PDF
Sql server distributed replay
PPTX
Watch Re-runs on your SQL Server with RML Utilities
PPTX
Benchmarking like a pro
PDF
Rolta’s application testing services for handling ever changing environment.
PPT
NoCOUG Presentation on Oracle RAT
PPT
Tracing Sql Server 2005
PDF
Oracle database performance are database users telling me the truth
PDF
553: Oracle Database Performance: Are Database Users Telling Me The Truth?
PPTX
SQL Server Extended Events presentation from SQL Midlands User Group 14th Mar...
PPTX
SQL Server Extended Events
PPTX
Sql Server tips from the field
PPTX
SQL Explore 2012: P&T Part 1
PPTX
Replay Solutions CFD
PPT
Les 14 perf_db
PDF
CCI2018 - Benchmarking in the cloud
PPTX
SQL debugging
PDF
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
PPTX
Sqlwatch presentation 2018-11
PPTX
1 extreme performance - part i
PPTX
Sql server-performance-hafi
Sql server distributed replay
Watch Re-runs on your SQL Server with RML Utilities
Benchmarking like a pro
Rolta’s application testing services for handling ever changing environment.
NoCOUG Presentation on Oracle RAT
Tracing Sql Server 2005
Oracle database performance are database users telling me the truth
553: Oracle Database Performance: Are Database Users Telling Me The Truth?
SQL Server Extended Events presentation from SQL Midlands User Group 14th Mar...
SQL Server Extended Events
Sql Server tips from the field
SQL Explore 2012: P&T Part 1
Replay Solutions CFD
Les 14 perf_db
CCI2018 - Benchmarking in the cloud
SQL debugging
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Sqlwatch presentation 2018-11
1 extreme performance - part i
Sql server-performance-hafi
Ad

More from Boris Hristov (20)

PDF
The Secret to Engaging Presentations
PDF
Presentation Design Fundamentals
PPTX
The World of Business Intelligence
PPTX
The 5 Hidden Performance Gems of SQL Server 2014
PPTX
Securing SQL Azure DB? How?
PDF
How to Deliver Technical Presentations: The Right Way!
PPTX
Securing SQL Azure DB? How?
PPTX
Top 5 T-SQL Improvements in SQL Server 2014
PPTX
Presentation Skills: The Next Level
PPTX
SQL Server 2014: Ready. Steady. Go!
PPTX
BI PoC for the Telco Industry
PPTX
Presentation Design Basics
PPTX
Deep Into Isolation Levels
PPTX
Top 5 T-SQL Improvements in SQL Server 2014
PPTX
Database Transactions and SQL Server Concurrency
PPTX
Database Performance
PPTX
You want rules? You need Policy-Based Management!
PPTX
The Nightmare of Locking, Blocking and Isolation Levels!
PDF
The Nightmare of Locking, Blocking and Isolation Levels!
PPTX
The Nightmare of Locking, Blocking and Isolation Levels
The Secret to Engaging Presentations
Presentation Design Fundamentals
The World of Business Intelligence
The 5 Hidden Performance Gems of SQL Server 2014
Securing SQL Azure DB? How?
How to Deliver Technical Presentations: The Right Way!
Securing SQL Azure DB? How?
Top 5 T-SQL Improvements in SQL Server 2014
Presentation Skills: The Next Level
SQL Server 2014: Ready. Steady. Go!
BI PoC for the Telco Industry
Presentation Design Basics
Deep Into Isolation Levels
Top 5 T-SQL Improvements in SQL Server 2014
Database Transactions and SQL Server Concurrency
Database Performance
You want rules? You need Policy-Based Management!
The Nightmare of Locking, Blocking and Isolation Levels!
The Nightmare of Locking, Blocking and Isolation Levels!
The Nightmare of Locking, Blocking and Isolation Levels

Replay your workload as it is your actual one!

Editor's Notes

  • #3: Senior DBA at HP Enterprise Services in Bulgaria, working for Fortune 500Regular speaker at conferences / webcasts / podcastsTrainer for external companiesTeacher at the 2 biggest universities in BulgariaVery active on twitter / blogging / hangoutsMore on LinkedInEasyest way to reach me – twitterA lot of SQL Server in my world
  • #4: Have ever considered capturing and replaying their workload?How many of you have done that? Why, how is this helpful?
  • #6: Application compatibility meaning both upgrade or migration of the app
  • #7: The maestro!
  • #8: The maestro! Debug!
  • #9:   -T enable trace flag -r number of iterations for each connection to execute its input file/query -p network packet size for connections - SQL Server only -n number of connections – multiplying the workloadProblems with SQL Server 2012 …
  • #10: but you know the words – it’s not cool enoughSCALE is your word!
  • #11: What is this doing actually? Few words about the functionality.
  • #12: Thank god there is no support for SQL Server 2000 anymore…Developer – DR Controller allows just 1 clientCannot replay to an older version! 2005 -> 2008 2008 -> 2008 and higherWindows Server 2008 SP2 and higherDR Controller feauture - 160 MB DR Client - 1.9GBCan be installed via Parameters – DREPLAY_CTLR , DREPLAY_CLT, TOOLS
  • #13: Administration tool – you have to install the Management Tools Complete
  • #15: 1280 x 960 primaryWhy when you click just next next next it will not actually workDCOM -> Distributed Component Object Model – technology of microsoft for communication between software components across the network
  • #18: More columns can be added, but will be removed in the preprocesses Replay Template is the minimum amount of eventsUSE SERVER-SIDE TRACE OF COURSE!
  • #19: Sorts the events in ascending order based on EventSequenceRemoves all events and columns that are not replayableGenerates 2 files – (intermediate file) one xml and system fileGoal is to preprocess the trace once and replay it by using various optionsAnd you have the options to include / exclude the system sessions and to remove the idle time between the users events
  • #20: Default – stressSync – replays the sequence of the whole trace – for high fidelity (correctnes) – functional testingStress – guarantees that the events will be ordered correctly per SPID or connectionIn stress you can use all options
  • #21: CommunicatesDivides the workload per clientsDON’T FORGET the replay can be faster in the new environment – but the connection time and think time are controlling this!
  • #22: Check the DR Controller configuration file -> set to syncCapture simple workload from AdventureWorks ScriptReplay it with sync – watch results on both clientsTurn on SSMS – ensure it is running with 128 of RAM (reboot)Turn on perfmon – ensure PLE + CPU time are addedReplay the complex one in stress + connection – watch the metrics and pause the traceAdd 2500 GB of memory to SQL server - rebootReplay the complex trace in sync and watch the countersReplay the trace with the other parameters and watch the time execution
  • #24: Relax a new one is coming!
  • #26: Not that many people and documentation about the featurePlay with it, test it, blog about it, talk about it. I think it matters!
  • #29: Have ever considered capturing and replaying their workload?How many of you have done that? Why, how is this helpful?