You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`-u`, `--username`| User name for connecting to the SQL Server |
59
+
|`-p`, `--password`| Password for connecting to the SQL Server |
56
60
57
61
## Replay a workload capture
58
62
59
-
**Using Distributed Replay**
60
-
61
63
If you're using Distributed Replay, perform the following steps.
62
64
63
-
1.Log in to the Distributed Replay controller computer.
65
+
1.Sign in to the Distributed Replay controller computer.
64
66
2. To convert the workload trace that you captured using the DEA command to an IRF file, at a command prompt, run the following command:
65
67
66
-
`DReplay preprocess -m "dreplaycontroller" -i "Path to first trace file" -d "<Folder path on controller>\IrfFolder"`
68
+
```cmd
69
+
DReplay preprocess -m "dreplaycontroller" -i "Path to first trace file" -d "<Folder path on controller>\IrfFolder"
70
+
```
67
71
68
-
3. Start a trace capture on the target computer running SQL Server using StartReplayCaptureTrace.sql.
72
+
3. Start a trace capture on the target computer running SQL Server using `StartReplayCaptureTrace.sql`.
69
73
70
74
a. In SQL Server Management Studio (SSMS), open <Dea_InstallPath\>\Scripts\StartReplayCaptureTrace.sql.
71
75
72
76
b. Run `Set @durationInMins=0` so that the trace capture doesn't stop automatically after a specified time.
73
77
74
-
c. To set the max file size per trace file, run `Set @maxfilesize`. The recommended size is 200 (in MB).
78
+
c. To set the maximum file size per trace file, run `Set @maxfilesize`. The recommended size is 200, in MB.
75
79
76
80
d. Edit `@Tracefile` to set a unique name for your trace file.
77
81
78
82
e. Edit `@dbname` to specify a database name if the workload must be captured only on a specific database. By default, the workload on the entire server is captured.
79
83
80
84
4. To replay the IRF file against the target SQL Server instance, at a command prompt, run the following command:
a. To monitor the status, run the following command:
83
91
84
-
a. To monitor the status, at a command prompt, run `DReplay status -f 1`.
92
+
```cmd
93
+
DReplay status -f 1
94
+
```
85
95
86
-
b. To stop the replay, for example if you see that the pass % is lower than expected, at a command prompt, run `DReplay cancel`.
96
+
b. To stop the replay, for example if you see that the pass percentage is lower than expected, run the following command:
97
+
98
+
```cmd
99
+
DReplay cancel
100
+
```
87
101
88
102
5. Stop the trace capture on the target SQL Server instance.
89
103
6. In SSMS, open `<Dea_InstallPath>\Scripts\StopCaptureTrace.sql`.
90
104
7. Edit `@Tracefile` to match the trace file path on the target computer running SQL Server.
91
105
8. Run the script against the target computer running SQL Server.
92
106
93
-
**Using InBuilt Replay**
107
+
## Using InBuilt Replay
94
108
95
-
If you are using InBuilt Replay, you won't have to set up Distributed Replay. The ability to use InBuilt Replay via the command line is on the way, but in the interim, you can use our GUI to run replay using InBuilt Replay.
109
+
If you're using InBuilt Replay, you won't have to set up Distributed Replay. The ability to use InBuilt Replay by using the command line is on the way. Currently, you can use our GUI to run replay using InBuilt Replay.
96
110
97
111
## Analyze traces using the DEA command
98
112
99
113
To start a new trace analysis, at a command prompt, run the following command:
To view the analysis reports of these trace files, you need to use the GUI to view charts and organized metrics. However, the analysis database is written to the SQL Server instance specified, so you can also query the generated analysis tables directly.
To view the analysis reports of these trace files, you need to use the GUI to view charts and organized metrics. However, the analysis database is written to the SQL Server instance specified, so you can also query the generated analysis tables directly.
110
126
111
-
When analyzing traces using the DEA command, you can use the following additional options:
127
+
When analyzing traces using the DEA command, you can use the following other options:
112
128
113
129
| Option| Description |
114
130
| --- | --- |
115
-
|-a, --traceA | Required; file path to the event file for A instance. ExampleC:\traces\Sql2008trace.trc. If there's a batch of files, select the first file and DEA will check for rollover files automatically. If files are in blob, provide the folder path where you want the event files stored locally. ExampleC:\traces\|
116
-
|-b, --traceB | Required; file path to the event file for B instance. ExampleC:\traces\Sql2014trace.trc. If there's a batch of files, select the first file and DEA will check for rollover files automatically. If files are in blob, provide the folder path where you want the event files stored locally. ExampleC:\traces\|
117
-
|-r, --ReportName | Required; name for current analysis. The analysis report that gets generated will be identified by this name. |
118
-
|-t, --type |(Default: 0) Type / Edition of the Sql Server (SqlServer = 0, AzureSQLDB = 1, Azure SQL Managed Instance = 2) |
119
-
|-h, --host | Required; SQL Server host name and/or instance name |
120
-
|-e, --encrypt |(Default: True) Encrypt connection to SQL Server Instance. Default is true |
121
-
| --trust |(Default: False) Trust server certificate while connecting to SQL Server Instance. Default is false|
|-u, --username | User name for connecting to the SQL Server |
124
-
| --p | Password for connecting to the SQL Server |
125
-
| --ab |(Default: False) Storage location of trace A is in blob. If used, must also specify --abu (Trace A Blob Url) |
126
-
| --bb |(Default: False) Storage location of trace B is in blob. If used, must also specify --bbu (Trace B Blob Url) |
127
-
| --abu | Blob URL for A instance with SAS key |
128
-
| --bbu | Blob URL for B instance with SAS key |
131
+
|`-a`, `--traceA`| Required. File path to the event file for A instance. Example: *C:\traces\Sql2008trace.trc*. If there's a batch of files, select the first file and DEA checks for rollover files automatically. If files are in blob, provide the folder path where you want the event files stored locally. Example: *C:\traces\\*|
132
+
|`-b`, `--traceB`| Required. File path to the event file for B instance. Example: *C:\traces\Sql2014trace.trc*. If there's a batch of files, select the first file and DEA checks for rollover files automatically. If files are in blob, provide the folder path where you want the event files stored locally. Example: *C:\traces\\*|
133
+
|`-r`, `--ReportName`| Required. Name for current analysis. The analysis report that gets generated will be identified by this name. |
134
+
|`-t`, `--type`| Default: 0. Type / Edition of the SQL Server (SqlServer = 0, AzureSQLDB = 1, Azure SQL Managed Instance = 2) |
135
+
|`-h`, `--host`| Required. SQL Server host name and/or instance name |
136
+
|`-e`, `--encrypt`| Default: True. Encrypt connection to SQL Server Instance.|
137
+
|`--trust`| Default: False. Trust server certificate while connecting to SQL Server Instance. |
0 commit comments