replay your workload as it is your actual one!

28
Replay your workload as it’s your actual one! Boris Hristov SQL Server DBA, Speaker, Trainer, Blogger

Upload: boris-hristov

Post on 10-May-2015

237 views

Category:

Documents


0 download

DESCRIPTION

Have you ever wanted to replay your application workload be that because you upgraded to a new hardware, added new indexes or something else? Now there's a feature for that! It's called Distributed Replay and in this session you will learn how this new feature in SQL Server 2012 can help you resolve that problem!

TRANSCRIPT

Page 1: Replay your workload as it is your actual one!

Replay your workload as it’s your actual one!

Boris HristovSQL Server DBA, Speaker, Trainer, Blogger

Page 2: Replay your workload as it is your actual one!

So who am I?

@BorisHristov

Page 3: Replay your workload as it is your actual one!

How many of you…

Page 4: Replay your workload as it is your actual one!

3reasons why

Page 5: Replay your workload as it is your actual one!

Possible scenarios:

1.Application compatibility

2.Performance / Load testing

3.Forecasting

Page 6: Replay your workload as it is your actual one!

What tools to use?

Page 7: Replay your workload as it is your actual one!

The Mighty Profiler

Page 8: Replay your workload as it is your actual one!

RML Tools

ReadTrace Reporter

OSTRESS

Page 9: Replay your workload as it is your actual one!

These are cool…

… but not cool enough!

Page 10: Replay your workload as it is your actual one!

“There’s a new player in town!” DISTRIBUTED REPLAY

Page 11: Replay your workload as it is your actual one!

So what’s Distributed Replay?

SQL Server 2012 feature

Available in all editions (kind of…)

Works with 2005 and higher (kind of…)

Page 12: Replay your workload as it is your actual one!

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

Page 13: Replay your workload as it is your actual one!

OK, but how are they working together?

Page 14: Replay your workload as it is your actual one!

DEMO

Setting up DReplay Environment (installing gotchas)

Page 15: Replay your workload as it is your actual one!

Installation requirements and gotchas1. 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

Page 16: Replay your workload as it is your actual one!

So how do we issue a replay?

Page 17: Replay your workload as it is your actual one!

Step 1: Capture a trace!

Page 18: Replay your workload as it is your actual one!

Step 2: Preprocesses the .trc file/s

Page 19: Replay your workload as it is your actual one!

Step 3: Decide on replay mode and options

Page 20: Replay your workload as it is your actual one!

Step 4: Replay the preprocessed trace

Page 21: Replay your workload as it is your actual one!

DEMO

The Replay Process!

Page 22: Replay your workload as it is your actual one!

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

Page 23: Replay your workload as it is your actual one!

The GUI that is in beta from 2011

Page 24: Replay your workload as it is your actual one!

At the end

1. The Tool for replaying mission critical workloads

2. Don’t be afraid of not having a GUI

3. Capture -> Preprocess -> Replay

4. Document, blog, share it with the community!

Page 26: Replay your workload as it is your actual one!

A big thanks to our sponsors

Page 27: Replay your workload as it is your actual one!

A big thanks to our sponsors

Page 28: Replay your workload as it is your actual one!

Thank you!