Distributed Replay Testing With Your Data, Your Way! Melody Zacharias, Consultant
Melody Zacharias Consultant Chapter Leader / Regional Mentor for Canada ca.linkedin.com/in/melodyzacharias
Please Support Our Sponsors SQL Saturday is made possible with the generous support of these sponsors. You can support them by opting-in and visiting them in the sponsor area.
Agenda distributed replay? is it used for? do we set it up? 4
Why Bottle Neck 6
Why 7
Why - Limitations Step Run to Cursor Toggle Breakpoint 8
What Administration ToolReplay ControllerReplay Client(s)Target Server 10
What 11
What – Administration Tool 12
What - Controller 13
What - Clients 14
What – Target 15
How Configuration Collection Replay Results 17
Configuration 18
Configuration C:\Program Files (x86)\Microsoft SQL Server\110\Tools Controller configuration file DReplayController.config Client configuration file DReplayClient.config \binn Preprocess configuration file Dreplay.exe.preprocess.config Replay configuration file Dreplay.exe.replay.config
Configuration - Preprocess 20
Configuration - Controller 21
Configuration - Controller 22
Configuration - Client 23
Configuration - Replay 24
Configuration - Replay Configuration Target instance Sequencing Stress scale granularity Connect timescale Think time scale Use connection pooling Health monitor interval Query time out Threads per client
Configuration 26
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 27
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” 29
Configuration 30
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
Configuration 36
Configuration 37
Configuration 38
Configuration 39
Configuration 40
Configuration 41
Configuration Restart the services on the server NET STOP “SQL Server Distributed Replay Client” NET START “SQL Server Distributed Replay Client” 42
PowerShell
Configuration Verify Log files 44
45
46 Collection
47
Trace Events 48
Trace File
Collection 50
51 DReplay preprocess -i input_trace_file -d controller_working_dir [-m controller] [-c config_file] [-f status_interval] Collection
Replay 52
Replay DReplay replay -d controller_working_dir -w clients [-o] [-m controller] [-s target_server] [-c config_file] [-f status_interval] 53
Results 54
Uses and Results UsesResults Application load testing Physical vs Virtual computing Metrics for distributed computing TDE load System upgrades Hardware upgrades Index tuning Tables Graphs Analytics Metrics
Results – Read Latency
59 Change in Domain
Controller configuration file DReplayController.config Changes location when you change domains Client configuration file DReplayClient.config Modify location in the configuration 60
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’. 61
QUESTIONS
Resources Distributed Replay: Requirements including events: Parameters for Replay: My Blog: SQLMelody.blogspot.ca My 63
Thank You Melody Zacharias Consultant Chapter Leader / Regional Mentor for Canada
Thank You This FREE SQL Saturday is brought to you courtesy of these sponsors, speakers and volunteers who staff this event