MSSQL Server Performance Touchstone
by Sachin Dehran, SQL Server Database Administrator, Rackspace Technology
This blog covers detailed information about the solution we have developed using a variety of software to assist DBA team members to create quick graphical presentations of performance data collected from the performance monitor using following tasks
- Raw data collected in the form of a .blg file can be applied to an Excel sheet to process it in an automated way, and it will return detailed informational graphs for customer presentations.
- One of the most important tasks it performs, is returning the metric comparison in a detailed graphical format when we have data from two servers.
WHY DID WE CREATE THIS SOLUTION?
While handling multiple big projects in the past, during the migration and hardware planning of servers, there were frequent requests as listed below:
- Resource Usage of MSSQL Servers
- Comparison of performance and resource utilization of Two Servers
- performance benchmarking while planning for migration, and many more.
- Present the data pattern in an easily understandable graphical format to the non-DBA and the management team, as well.
While working on such requests, we observed that it was a time-consuming process because each time we were creating a data collector set and processing it manually to get easily understandable graphs, and these challenges motivated us to work on a time-saving and smart solution.
Please refer attached zip folder for solution files at the end of this blog
HIGH LEVEL STEPS
- Step 1: Create and Run Data Collector Set using standard Templet.
- Step 2: Extract raw data from the a .blg file in CSV format.
- Step 3: Process the raw data from the csv file to the final xlsx sheet to return detailed graphs.
Step 1: Create and run the data collector set using standard Template
- Login to the target server from which we want to collect performance data.
- Open “Performance Monitor.”
- Create a new data collector set using the following flow (Ref.: Figure 1). Expand “Data Collector Set” → Right-click on “User Defined” → From “New,” click on “Data Collector Set.”
- On the “Create New Data Collector Set” window, enter the name of your data collector set, select “Create from a Templet (Recommended),” and click on “Next” (Figures 2 and 3).
- From the browse option, select the data collector set templet and click on “Next.” (Figures 1)
Please do not change the sample interval of data collection as it is already set to 5 minutes. Reducing it may increase the collected data volume, resulting in a more distorted graph if data collection lasts more than 4-5 days or a week.
Please do not change the sequence or edit list of performance counters from the standard templet or Excel sheet, as changing the sequence or count of existing counters may cause Excel to fail to process data correctly.
Currently, “stop at parameter” of data collector set in the templet is set to 1 week. which means data will be collected for 1 week, and the data collector set will be stopped automatically after 1 week. If you want to reduce it in days or hours, please change it as per your requirements.
Step 2: Convert Raw Data into csv format from .blg file. Once you’ve collected the performance data, you can use the .blg file to convert it to CSV format. Please use the following steps to convert .blg format data to CSV:
- Start by opening the.blg file.
- Right-click on the graph and select “Save Data As”
- Provide the desired name to the file and change “save as type” to “csv” and save the date in CSV format.
Step 3: How to convert raw data from a .csv file to a final xlsx sheet to generate detailed graphs.
- The following is information about Excel sheets where we must copy raw data for further processing.
We need to perform the following action.
- Copy data from the CSV sheet to the raw sheet (reference: figure a)
- On the MASTER_DATA sheet, reapply the Filter by clicking on “reapply” (Reference: figure b).
- We will get data in the following formats: “Quick View” and “Detailed Graph.”
RESULT FOR SINGLE SERVER -“Sheet: Per_TouchStone_Single_Server.xlsx
For 2 Servers Comparison
Solution Files Attached Solution.zip
This article covers detailed information about the solution we have created to help DBA Team members create quick graphical presentations of performance data collected from the performance monitor. These graphs can be used for multiple purposes, like resource utilization report creation for SQL Server, performance benchmarking for SQL Server, and resource utilization comparison between two servers.
Update: Decommission of TLS v1.0 and v1.1 - Rackspace Customer Identity API Endpoint
September 21st, 2023
Document AI Accelerator Scales and Improves Efficiency
July 10th, 2023