Skip to content

Commit 546c45f

Browse files
authored
Merge pull request #77889 from ajlam/iperf-preview
MySQL iPerf preview
2 parents d49ecd9 + 5694805 commit 546c45f

9 files changed

+294
-5
lines changed

articles/mysql/TOC.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,20 @@
8989
href: concepts-business-continuity.md
9090
- name: Backup and restore
9191
href: concepts-backup.md
92-
- name: Monitor
92+
- name: Monitor and tune
9393
items:
94-
- name: Monitor
94+
- name: Monitor and tune
9595
href: concepts-monitoring.md
9696
- name: Slow query logs
9797
href: concepts-server-logs.md
9898
- name: Audit logs
9999
href: concepts-audit-logs.md
100+
- name: Query Store
101+
href: concepts-query-store.md
102+
- name: Query Performance Insight
103+
href: concepts-query-performance-insight.md
104+
- name: Performance Recommendations
105+
href: concepts-performance-recommendations.md
100106
- name: Development
101107
items:
102108
- name: Drivers and tools compatibility

articles/mysql/concepts-monitoring.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: Monitoring in Azure Database for MySQL
33
description: This article describes the metrics for monitoring and alerting for Azure Database for MySQL, including CPU, storage, and connection statistics.
4-
author: rachel-msft
5-
ms.author: raagyema
4+
author: ajlam
5+
ms.author: andrela
66
ms.service: mysql
77
ms.topic: conceptual
8-
ms.date: 11/05/2018
8+
ms.date: 06/05/2019
99
---
1010
# Monitoring in Azure Database for MySQL
1111
Monitoring data about your servers helps you troubleshoot and optimize for your workload. Azure Database for MySQL provides various metrics that give insight into the behavior of your server.
@@ -37,6 +37,15 @@ These metrics are available for Azure Database for MySQL:
3737
## Server logs
3838
You can enable slow query and audit logging on your server. These logs are also available through Azure Diagnostic Logs in Azure Monitor logs, Event Hubs, and Storage Account. To learn more about logging, visit the [audit logs](concepts-audit-logs.md) and [slow query logs](concepts-server-logs.md) articles.
3939

40+
## Query Store
41+
[Query Store](concepts-query-store.md) is a public preview feature that keeps track of query performance over time including query runtime statistics and wait events. The feature persists query runtime performance information in the **mysql** schema. You can control the collection and storage of data via various configuration knobs.
42+
43+
## Query Performance Insight
44+
[Query Performance Insight](concepts-query-performance-insight.md) works in conjunction with Query Store to provide visualizations accessible from the Azure portal. These charts enable you to identify key queries that impact performance. Query Performance Insight is in public preview and is accessible in the **Intelligent Performance** section of your Azure Database for MySQL server's portal page.
45+
46+
## Performance Recommendations
47+
The [Performance Recommendations](concepts-performance-recommendations.md) feature identifies opportunities to improve workload performance. The public preview release of Performance Recommendations provides you with recommendations for creating new indexes that have the potential to improve the performance of your workloads. To produce index recommendations, the feature takes into consideration various database characteristics, including its schema and the workload as reported by Query Store. After implementing any performance recommendation, customers should test performance to evaluate the impact of those changes.
48+
4049
## Next steps
4150
- See [How to set up alerts](howto-alert-on-metric.md) for guidance on creating an alert on a metric.
4251
- For more information on how to access and export metrics using the Azure portal, REST API, or CLI, see the [Azure Metrics Overview](../monitoring-and-diagnostics/monitoring-overview-metrics.md).
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
title: Performance recommendations in Azure Database for MySQL
3+
description: This article describes the Performance Recommendation feature in Azure Database for MySQL
4+
author: ajlam
5+
ms.author: andrela
6+
ms.service: mysql
7+
ms.topic: conceptual
8+
ms.date: 05/23/2019
9+
---
10+
# Performance Recommendations in Azure Database for MySQL
11+
12+
**Applies to:** Azure Database for MySQL 5.7
13+
14+
> [!NOTE]
15+
> Performance Recommendations is in preview. Support for Performance Recommendations in the Azure portal is being rolled out and may not yet be available in your region.
16+
17+
The Performance Recommendations feature analyzes your databases to create customized suggestions for improved performance. To produce the recommendations, the analysis looks at various database characteristics including schema. Enable [Query Store](concepts-query-store.md) on your server to fully utilize the Performance Recommendations feature. If performance schema is OFF, turning on Query Store enables performance_schema and a subset of performance schema instruments required for the feature. After implementing any performance recommendation, you should test performance to evaluate the impact of those changes.
18+
19+
## Permissions
20+
21+
**Owner** or **Contributor** permissions required to run analysis using the Performance Recommendations feature.
22+
23+
## Performance recommendations
24+
25+
The [Performance Recommendations](concepts-performance-recommendations.md) feature analyzes workloads across your server to identify indexes with the potential to improve performance.
26+
27+
Open **Performance Recommendations** from the **Intelligent Performance** section of the menu bar on the Azure portal page for your MySQL server.
28+
29+
![Performance Recommendations landing page](./media/concepts-performance-recommendations/performance-recommendations-page.png)
30+
31+
Select **Analyze** and choose a database, which will begin the analysis. Depending on your workload, the analysis may take several minutes to complete. Once the analysis is done, there will be a notification in the portal. Analysis performs a deep examination of your database. We recommend you perform analysis during off-peak periods.
32+
33+
The **Recommendations** window will show a list of recommendations if any were found and the related query ID that generated this recommendation. With the query ID, you can use the [mysql.query_store](concepts-query-store.md#mysqlquery_store) view to learn more about the query.
34+
35+
![Performance Recommendations new page](./media/concepts-performance-recommendations/performance-recommendations-result.png)
36+
37+
Recommendations are not automatically applied. To apply the recommendation, copy the query text and run it from your client of choice. Remember to test and monitor to evaluate the recommendation.
38+
39+
## Recommendation types
40+
41+
Currently, only *Create Index* recommendations are supported.
42+
43+
### Create Index recommendations
44+
45+
*Create Index* recommendations suggest new indexes to speed up the most frequently run or time-consuming queries in the workload. This recommendation type requires [Query Store](concepts-query-store.md) to be enabled. Query Store collects query information and provides the detailed query runtime and frequency statistics that the analysis uses to make the recommendation.
46+
47+
## Next steps
48+
- Learn more about [monitoring and tuning](concepts-monitoring.md) in Azure Database for MySQL.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: Query Performance Insight in Azure Database for MySQL
3+
description: This article describes the Query Performance Insight feature in Azure Database for MySQL
4+
author: ajlam
5+
ms.author: andrela
6+
ms.service: MySQL
7+
ms.topic: conceptual
8+
ms.date: 06/05/2019
9+
---
10+
# Query Performance Insight in Azure Database for MySQL
11+
12+
**Applies to:** Azure Database for MySQL 5.7
13+
14+
> [!NOTE]
15+
> Query Performance Insight is in preview. Support for Query Performance Insight in the Azure portal is being rolled out and may not yet be available in your region.
16+
17+
Query Performance Insight helps you to quickly identify what your longest running queries are, how they change over time, and what waits are affecting them.
18+
19+
## Permissions
20+
21+
**Owner** or **Contributor** permissions required to view the text of the queries in Query Performance Insight. **Reader** can view charts and tables but not query text.
22+
23+
## Prerequisites
24+
25+
For Query Performance Insight to function, data must exist in the [Query Store](concepts-query-store.md).
26+
27+
## Viewing performance insights
28+
29+
The [Query Performance Insight](concepts-query-performance-insight.md) view in the Azure portal will surface visualizations on key information from Query Store.
30+
31+
In the portal page of your Azure Database for MySQL server, select **Query Performance Insight** under the **Intelligent Performance** section of the menu bar.
32+
33+
![Query Performance Insight long running queries](./media/concepts-query-performance-insight/query-performance-insight-landing-page.png)
34+
35+
The **Long running queries** tab shows the top 5 queries by average duration per execution, aggregated in 15-minute intervals. You can view more queries by selecting from the **Number of Queries** drop down. The chart colors may change for a specific Query ID when you do this.
36+
37+
You can click and drag in the chart to narrow down to a specific time window. Alternatively, use the zoom in and out icons to view a smaller or larger time period respectively.
38+
39+
Select the **Wait Statistics** tab to view the corresponding visualizations on waits in the server.
40+
41+
Queries displayed in the wait statistics view are grouped by the queries that exhibit the largest waits during the specified time interval.
42+
43+
![Query Performance Insight waits statistics](./media/concepts-query-performance-insight/query-performance-insight-wait-statistics.png)
44+
45+
## Next steps
46+
47+
- Learn more about [monitoring and tuning](concepts-monitoring.md) in Azure Database for MySQL.

0 commit comments

Comments
 (0)