Skip to content

Commit 3421186

Browse files
committed
Doc update for DMA 5.5
1 parent 4ebdde7 commit 3421186

2 files changed

Lines changed: 51 additions & 29 deletions

File tree

‎docs/dma/dma-commandline.md‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ DmaCmd.exe /AssessmentName="string"
3030
/AssessmentDatabases="connectionString1" \["connectionString2"\]
3131
\[/AssessmentSourcePlatform="SourcePlatform"]
3232
\[/AssessmentTargetPlatform="TargetPlatform"\]
33-
/AssessmentEvaluateRecommendations|/AssessmentEvaluateCompatibilityIssues
33+
/AssessmentEvaluateRecommendati|/AssessmentEvaluateCompatibilityIssues
3434
\[/AssessmentOverwriteResult\]
3535
/AssessmentResultJson="file"|/AssessmentResultCsv="file"
3636
```
@@ -300,9 +300,12 @@ These commands support recommendations for both Azure SQL Database single databa
300300
|`--targetSqlInstance` | Name of the SQL instance that SKU recommendation will be targeting. | N <br> (Specific for `GetSkuRecommendation`action)
301301
|`--targetPercentile` | Percentile of data points to be used during aggregation of the performance data. | N <br> (Specific for `GetSkuRecommendation`action, Default `95`)
302302
|`--scalingFactor` | Scaling (comfort) factor used during SKU recommendation. | N <br> (Specific for `GetSkuRecommendation`action. Default `100`)
303-
|`--startTime` | UTC start time of performance data points to consider during aggregation, in `"YYYY-MM-DD HH:MM"` format. | N <br> (Specific for `GetSkuRecommendation`action)
304-
|`--endTime` | UTC end time of performance data points to consider during aggregation, in `"YYYY-MM-DD HH:MM"` format | N <br> (Specific for `GetSkuRecommendation`action)
305-
|`--displayResult` | Whether or not to print the SKU recommendation results to the console | N <br> (Specific for `GetSkuRecommendation`action.Default: `true`)
303+
|`--startTime` | UTC start time of performance data points to consider during aggregation, in `"YYYY-MM-DD HH:MM"` format. | N <br> (Specific for `GetSkuRecommendation`action)
304+
|`--endTime` | UTC end time of performance data points to consider during aggregation, in `"YYYY-MM-DD HH:MM"` format | N <br> (Specific for `GetSkuRecommendation`action)
305+
|`--elasticStrategy` | Whether or not to use the elastic strategy for SKU recommendations based on statistical resource usage profiling | N <br> (Specific for `GetSkuRecommendation`action. Default: `false`)
306+
|`--databaseAllowList` | Space separated list of names of databases to be included for SKU recommendations | N <br> (Specific for `GetSkuRecommendation`action. Default: `null`)
307+
|`--databaseDenyList` | Space separated list of names of databases to be excluded for SKU recommendations. Only set one of the following or neither: `databaseAllowList`, `databaseDenyList` | N <br> (Specific for `GetSkuRecommendation`action. Default: `null`)
308+
|`--displayResult` | Whether or not to print the SKU recommendation results to the console. Only set one of the following or neither: `databaseAllowList`, `databaseDenyList` | N <br> (Specific for `GetSkuRecommendation`action. Default: `true`)
306309

307310
## Examples of SKU assessments using the CLI
308311

‎docs/dma/dma-sku-recommend-sql-db.md‎

Lines changed: 44 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -35,41 +35,39 @@ The following are instructions to help you determine the SKU recommendations and
3535
> [!NOTE]
3636
> It is recommended that the tool is utilized from a separate tools (client) machine with connectivity to the target SQL instance(s), rather than from the machine hosting SQL Server itself, in order to minimize any potential overhead. When collecting performance data for SKU recommendations, it is recommended that the tool is ran with default option values over the span of several hours, covering both off-peak and on-peak workloads and excluding maintenance tasks such as index rebuild or backup database. Maintenance tasks can impact the CPU, Memory and IO consumption and subsequently drive higher recommended SKU tiers.
3737
38-
## Collect performance data
38+
## Collect performance data
3939

40-
The collected data includes limited information about the hardware configuration of your server, as well SQL-specific performance counters from system Dynamic Management Views (DMVs) such as CPU, memory, and storage usage, as well as IO throughput and IO latency. The collected data is stored locally on your machine. The collected data can then be aggregated and analyzed, and by examining the performance characteristics of your source instance, SKU recommendations can be determined for Azure SQL offerings (including SQL Database, SQL Managed Instance, and SQL on Azure VM) that best suit your workload while also being cost-effective.
40+
The collected data includes limited information about the hardware configuration of your server, as well SQL-specific performance data points from system Dynamic Management Views (DMVs) such as CPU, memory, and storage usage, as well as IO throughput and IO latency. The collected data is stored locally on your machine. The collected data can then be aggregated and analyzed, and by examining the performance characteristics of your source instance, SKU recommendations can be determined for Azure SQL offerings (including SQL Database, SQL Managed Instance, and SQL on Azure VM) that best suit your workload while also being cost-effective.
4141

4242
In the DMA installation path, locate the SQLAssessmentConsole folder and the SqlAssessment.exe application
4343

4444
![Screenshot of SKUConsoleApplication.exe file shown in DMA installation folder location.](../dma/media/dma-sku-recommend-console-location.png)
4545

4646
In order to start the data collection process, specify the `PerfDataCollection` action in the console application, with the following arguments:
4747

48-
- **sqlConnectionStrings**: (_Required_) Quote-enclosed formal connection string(s) for the target SQL instance(s).
49-
- **perfQueryIntervalInSec** (_Optional_): Interval at which to query performance data, in seconds. (Default: 30)
50-
- **staticQueryIntervalInSec** (_Optional_): Interval at which to query and persist static configuration data, in seconds. (Default: 60)
51-
- **numberOfIterations** (_Optional_): Number of iterations of performance data collection to perform before persisting to file. For example, with default values, performance data will be persisted every 30 seconds * 20 iterations = 10 minutes. (Default: 20)
52-
- **outputFolder** (_Optional_): Folder which performance data, reports, and logs will be written to/read from. (Default: %LocalAppData%/Microsoft/SqlAssessmentConsole)
48+
- **sqlConnectionStrings**: (_Required_) Quote-enclosed formal connection string(s) for the target SQL instance(s).
49+
- **perfQueryIntervalInSec** (_Optional_): Interval at which to query performance data, in seconds. (Default: 30)
50+
- **staticQueryIntervalInSec** (_Optional_): Interval at which to query and persist static configuration data, in seconds. (Default: 60)
51+
- **numberOfIterations** (_Optional_): Number of iterations of performance data collection to perform before persisting to file. For example, with default values, performance data will be persisted every 30 seconds * 20 iterations = 10 minutes. (Default: 20)
52+
- **outputFolder** (_Optional_): Folder which performance data, reports, and logs will be written to/read from. (Default: %LocalAppData%/Microsoft/SqlAssessmentConsole)
5353

54-
55-
The following is a sample invocation:
54+
The following is a sample invocation:
5655

5756
```
5857
.\SqlAssessment.exe PerfDataCollection
5958
--sqlConnectionStrings "Data Source=Server1;Initial Catalog=master;Integrated Security=True;" "Data Source=Server2;Initial Catalog=master;Integrated Security=True;"
6059
--outputFolder C:\Output
6160
```
6261

63-
6462
Alternatively, the data collection process can be invoked by providing the appropriate arguments in a JSON configuration file, and passing the configuration file to the tool by running the executable without an action, as follows:
6563

6664
```
6765
6866
.\SqlAssessment.exe --configFile C:\path\to\config.json
6967
```
70-
68+
7169
Below is a sample ConfigFile equivalent to the performance data collection action described above:
72-
70+
7371
```
7472
7573
{
@@ -86,27 +84,47 @@ Sample config files for all of the actions can be found in the `Example` folder
8684

8785
After the command executes, the performance and configuration data points are saved as a set of three *_Counters.csv files per target instance, each containing the server and instance name. You can use this file as input for the next part of the process, which will provide SKU recommendations for Azure SQL Database, Azure SQL Managed Instance or SQL Server on Azure VM.
8886

89-
9087
## Use the console application to get SKU recommendations
9188

9289
The data points collected by the previous step will be used as the input for the SKU recommendation process.
9390

9491
For the single database option, DMA will provide recommendations for the Azure SQL Database single database tier, the compute level, and the recommended storage configuration for each database on your SQL instance.
9592

96-
For Azure SQL Managed Instance and SQL Server on Azure VM, the recommendations support a lift-and-shift scenario. As a result, SKU recommendations console app will provide you with recommendations for the Azure SQL Managed Instance or SQL Server on Azure VM tier, the compute level, and the recommended storage configuration for the set of databases on your SQL instance.
93+
For Azure SQL Managed Instance and SQL Server on Azure VM, the recommendations support a lift-and-shift scenario. As a result, SKU recommendations console app can provide you with recommendations for the Azure SQL Managed Instance or SQL Server on Azure VM tier, the compute level, and the recommended storage configuration for the set of databases on your SQL instance. You can also specify only a subset of databases to be included or excluded from the SKU recommendations.
94+
95+
`GetSkuRecommendation` uses by default a baseline strategy which maps collected performance data values representative for the workload (based on the percentile value specified) to the right Azure SQL SKU.
96+
We also expose an elastic strategy (statistical approach), which generates a unique price-to-performance curve based on the collected performance data, and by analyzing the workload patterns in comparison to customers already migrated to Azure SQL.
9797

9898
In order to start the SKU recommendation process, specify the `GetSkuRecommendation` action in the console application, with the following arguments:
99-
99+
100100
- **perfQueryIntervalInSec** (_Optional_): Interval at which performance data was queried, in seconds. Note: This must match the value that was originally used during the performance data collection. (Default: 30)
101-
- **targetPlatform** (_Optional_): Target platform for SKU recommendation: either AzureSqlDatabase, AzureSqlManagedInstance, AzureSqlVirtualMachine, or Any. If Any is selected, then SKU recommendations for all three target platforms are evaluated, and the best fit is returned. (Default: Any)
102-
- **targetSqlInstance** (_Optional_): Name of the SQL instance that SKU recommendation targets. (Default: outputFolder is scanned for files created by the PerfDataCollection action, and recommendations are provided for every instance found)
101+
- **targetPlatform** (_Optional_): Target platform for SKU recommendation: either AzureSqlDatabase, AzureSqlManagedInstance, AzureSqlVirtualMachine, or Any. If Any is selected, then SKU recommendations for all three target platforms are evaluated, and the best fit is returned. (Default: Any)
102+
- **targetSqlInstance** (_Optional_): Name of the SQL instance that SKU recommendation targets. (Default: outputFolder is scanned for files created by the PerfDataCollection action, and recommendations are provided for every instance found)
103103
- **targetPercentile** (_Optional_): Percentile of data points to be used during aggregation of the performance data. (Default: 95)
104-
- **scalingFactor** (_Optional_): Scaling ('comfort') factor used during SKU recommendation. For example, if it is determined that there is a 4 vCore CPU requirement with a scaling factor of 150%, then the true CPU requirement will be 6 vCores. (Default: 100)
105-
- **startTime** (_Optional_): UTC start time of performance data points to consider during aggregation, in "YYYY-MM-DD HH:MM" format. (Default: all data points collected will be considered)
106-
- **endTime** (_Optional_): UTC end time of performance data points to consider during aggregation, in "YYYY-MM-DD HH:MM" format. (Default: all data points collected will be considered)
107-
- **overwrite** (_Optional_): Whether or not to overwrite any existing SKU recommendation reports. (Default: true)
108-
- **displayResult** (_Optional_): Whether or not to print the SKU recommendation results to the console. (Default: true)
109-
- **outputFolder** (_Optional_): Folder which performance data, reports, and logs will be written to/read from. (Default:%LocalAppData%/Microsoft/SqlAssessmentConsole)
104+
- **scalingFactor** (_Optional_): Scaling ('comfort') factor used during SKU recommendation. For example, if it is determined that there is a 4 vCore CPU requirement with a scaling factor of 150%, then the true CPU requirement will be 6 vCores. (Default: 100)
105+
- **startTime** (_Optional_): UTC start time of performance data points to consider during aggregation, in "YYYY-MM-DD HH:MM" format. (Default: all data points collected will be considered)
106+
- **endTime** (_Optional_): UTC end time of performance data points to consider during aggregation, in "YYYY-MM-DD HH:MM" format. (Default: all data points collected will be considered)
107+
- **elasticStrategy** (_Optional_): Whether or not to use the elastic strategy for SKU recommendations based on resource usage profiling and cost-performance analysis. (Default: false)
108+
- **databaseAllowList** (_Optional_): Space separated list of names of databases to be allowed for SKU recommendation consideration while excluding all others. Only set one of the following or neither: databaseAllowList, databaseDenyList. (Default: null)
109+
- **databaseDenyList** (_Optional_): Space separated list of names of databases to be excluded for SKU recommendation. Only set one of the following or neither: databaseAllowList, databaseDenyList. (Default: null)
110+
- **overwrite** (_Optional_): Whether or not to overwrite any existing SKU recommendation reports. (Default: true)
111+
- **displayResult** (_Optional_): Whether or not to print the SKU recommendation results to the console. (Default: true)
112+
- **outputFolder** (_Optional_): Folder in which performance data, reports, and logs will be written to/read from. (Default:%LocalAppData%/Microsoft/SqlAssessmentConsole)
113+
114+
Advanced settings for the SKU recommendations can be found in the `Console.Settings.json` file in the root directory. Currently, it includes the following customizable parameters:
115+
116+
**`CommandTimeoutGroupSetting`**: The time in seconds to wait for SQL query commands to execute before timing out.
117+
118+
- `PerfCollectionCommandTimeout`: Command timeout for potentially long-running queries related to performance data collection (Default: 300)
119+
- `DefaultCollectionCommandTimeout`: Command timeout for all other queries (Default: 120)
120+
121+
**`ThrottlingGroupSetting`**: Number of parallel tasks to create based on number of cores on the machine
122+
123+
- `ServerInstancesParallelCount`: Number of server instances to assess in parallel (Default: 2)
124+
- `DatabasesParallelCount`: Number of databases to assess in parallel (Default: 4)
125+
- `UserDefinedObjectsParallelCountPerDb`: Number of user-defined objects (stored procedures, views, triggers, etc.) to assess in parallel per database (Default: 4)
126+
127+
**`AllowTelemetry`**: Whether or not to allow the collection and transmission of anonymous feature usage and diagnostic data to Microsoft. (Default: true)
110128

111129
Alternatively, the SKU recommendation process can be invoked by providing the appropriate arguments in a JSON configuration file, and passing the configuration file to the tool by running the executable without an action, as follows:
112130

@@ -143,12 +161,13 @@ In order to get SKU recommendations for a specific Azure SQL platform instead of
143161
--targetPlatform AzureSqlDatabase
144162
```
145163

146-
**Sample 2: Getting SKU recommendations for Azure SQL Managed Instance.**
164+
**Sample 2: Getting SKU recommendations using elastic strategy for Azure SQL Managed Instance.**
147165

148166
```
149167
.\SqlAssessment.exe GetSkuRecommendation
150168
--outputFolder C:\Output
151169
--targetPlatform AzureSqlManagedInstance
170+
--elasticStrategy true
152171
```
153172

154173
**Sample 3: Getting SKU recommendations for Azure SQL Virtual Machine.**
@@ -172,14 +191,14 @@ The following is an example output of a SQL Server on Azure VM recommendation:
172191
:::image type="content" source="media/sku-recommendations-azure-sql-virtual-machine.png" alt-text="Screenshot of SQL Server on Azure VM SKU tier and size recommendations output shown in console.":::
173192

174193
The output of the SKU recommendations covers the following sections:
194+
175195
- **Instance Name**: Name of the on-premises SQL Server instance(s)
176196
- **Database Name**: Name of the on-premises SQL Server database(s)
177197
- **SKU Recommendation**: The minimum cost-efficient SKU offering among all the performance eligible SKUs that could accommodate your workloads.
178198
- **Recommendation Reason**: For each tier that is recommended, we provide the reasons and collected data values driving the recommendations.
179199

180200
The final recommended tier and configuration values for that tier reflect the minimum SKU required for your queries to run in Azure with a success rate similar to your on-premises databases. For example, if the recommended minimum SKU is the S4 standard tier, then choosing S3 or below may cause queries to time out or fail to execute.
181201

182-
183202
## Next step
184203

185204
- For a complete listing of commands for running DMA from the CLI, see the article [Run Data Migration Assistant from the command line](./dma-commandline.md).

0 commit comments

Comments
 (0)