Testing With Your Data, Your Way! Distributed Replay 1 SQLSat 470 Washington DC December 5, 2015
Melody Zacharias Consultant Chapter Leader / Regional Mentor for Canada ca.linkedin.com/in/melodyzacharias
Agenda distributed replay? is it used for? do we set it up? 3 What Why How
4
Why Bottle Neck 5
Why 6
Why - Limitations Step Run to Cursor Toggle Breakpoint 7
8
What Administration ToolReplay ControllerReplay Client(s)Target Server 9
What 10
What – Administration Tool 11
What - Controller 12
What - Clients 13
What – Target 14
15
How Configuration Collection Replay Results 16
Configuration 17
Configuration C:\Program Files (x86)\Microsoft SQL Server\110\Tools Controller configuration file DReplayController.config Client configuration file DReplayClient.config Preprocess configuration file Dreplay.exe.preprocess.config Replay configuration file Dreplay.exe.replay.config
Configuration - Preprocess 19
Configuration - Controller 20
Configuration - Controller 21
Configuration - Client 22
Configuration - Replay 23
Target instance Sequencing Stress scale granularity Connect timescale Think time scale Use connection pooling Health monitor interval Query time out Threads per client Configuration 24 Replay Configuration
Configuration 25
Configuration Restart the services on all the servers NET STOP “SQL Server Distribute Replay Controller” NET START “SQL Server Distribute Replay Controller” NET STOP “SQL Server Distributed Replay Client” NET START “SQL Server Distributed Replay Client” On each server that has the services installed 26
Configuration The Rest of the Story
Configuration Check for errors C:\Program Files (x86)\Microsoft SQL Server\110\Tools\DReplayClient\Log Failed to connect controller with error code 0x Error code 0x means “Access is denied” 28
Component Services
Configuration 30 Start -> Run and type dcomcnfg
Configuration 31
Configuration 32
Configuration 33
Configuration Restart the services on all the servers NET STOP “SQL Server Distribute Replay Controller” NET START “SQL Server Distribute Replay Controller” NET STOP “SQL Server Distributed Replay Client” NET START “SQL Server Distributed Replay Client” On each server that has the services installed 34
Configuration Check the Distributed Replay Client log file C:\Program Files (x86)\Microsoft SQL Server\110\Tools\DReplayClient\Log “Registered with controller ” “Failed to connect controller with error code 0x800706BA client may not connect to controller “ 35
Fire Wall
Configuration 37
Configuration 38
Configuration 39
Configuration 40
Configuration 41
Configuration 42
Configuration 43
Configuration Restart the services on the server NET STOP “SQL Server Distributed Replay Client” NET START “SQL Server Distributed Replay Client” 44
Configuration - Verify Log files 45
Let the games begin
47 Collection
Demo
Collection 49
Trace Events 50
51 Trace File
Collection 52
Collection 53
54 DReplay preprocess -i input_trace_file -d controller_working_dir [-m controller] [-c config_file] [-f status_interval] Collection
Replay 55
Replay DReplay replay -d controller_working_dir -w clients [-o] [-m controller] [-s target_server] [-c config_file] [-f status_interval] 56 c:\>DReplay replay –d c:\DistRePlay –w client1, client2
Results 57
58
Application load testing Physical vs Virtual computing Metrics for distributed computing TDE load System upgrades Hardware upgrades Index tuning UsesResults Tables Graphs Analytics Metrics Usage and Presentation 59
Results – Read Latency
61
62 PowerShell
63 Change in Domain
Controller configuration file DReplayController.config Changes location when you change domains Client configuration file DReplayClient.config Modify location in the configuration 64
Common issues Error DReplay The client ‘ClientServerName’ is not a registered distributed replay client. Make sure that the SQL Server Distributed Replay Client services is running on ‘ClientServerName’, and that the client is registered with the controller ‘localhost’. 65
Common issues 66 Empty Result set
QUESTIONS
Resources Distributed Replay: Requirements including events: Parameters for Replay: My Blog: SQLMelody.blogspot.ca My 68
Thank You