Skip to content

Commit bb24943

Browse files
authored
Merge pull request #79480 from ajlam/iperf-preview
MariaDB iPerf preview
2 parents 8d288a1 + da81ad7 commit bb24943

10 files changed

+300
-5
lines changed

articles/mariadb/TOC.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,20 @@
5959
href: concepts-business-continuity.md
6060
- name: Backup and restore
6161
href: concepts-backup.md
62-
- name: Monitor
62+
- name: Monitor and tune
6363
items:
6464
- name: Monitor
6565
href: concepts-monitoring.md
6666
- name: Slow query logs
6767
href: concepts-server-logs.md
6868
- name: Audit logs
6969
href: concepts-audit-logs.md
70+
- name: Query Store
71+
href: concepts-query-store.md
72+
- name: Query Performance Insight
73+
href: concepts-query-performance-insight.md
74+
- name: Performance Recommendations
75+
href: concepts-performance-recommendations.md
7076
- name: Development
7177
items:
7278
- name: Drivers and tools compatibility

articles/mariadb/concepts-monitoring.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: Monitoring in Azure Database for MariaDB
33
description: This article describes the metrics for monitoring and alerting for Azure Database for MariaDB, including CPU, storage, and connection statistics.
4-
author: rachel-msft
5-
ms.author: raagyema
4+
author: andrela
5+
ms.author: ajlam
66
ms.service: mariadb
77
ms.topic: conceptual
8-
ms.date: 04/29/2019
8+
ms.date: 06/12/2019
99
---
1010
# Monitoring in Azure Database for MariaDB
1111
Monitoring data about your servers helps you troubleshoot and optimize for your workload. Azure Database for MariaDB provides various metrics that give insight into the behavior of your server.
@@ -35,8 +35,22 @@ These metrics are available for Azure Database for MariaDB:
3535
|network_bytes_ingress|Network In|Bytes|Network In across active connections.|
3636

3737
## Server logs
38+
3839
You can enable slow query 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 [server logs](concepts-server-logs.md) page.
3940

41+
## Query Store
42+
43+
[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.
44+
45+
## Query Performance Insight
46+
47+
[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 MariaDB server's portal page.
48+
49+
## Performance Recommendations
50+
51+
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.
52+
4053
## Next steps
54+
4155
- 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).
4256
- See [How to set up alerts](howto-alert-metric.md) for guidance on creating an alert on a metric.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
title: Performance recommendations in Azure Database for MariaDB
3+
description: This article describes the Performance Recommendation feature in Azure Database for MariaDB
4+
author: ajlam
5+
ms.author: andrela
6+
ms.service: mariadb
7+
ms.topic: conceptual
8+
ms.date: 06/12/2019
9+
---
10+
# Performance Recommendations in Azure Database for MariaDB
11+
12+
**Applies to:** Azure Database for MariaDB 10.2s
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 MariaDB 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+
49+
- Learn more about [monitoring and tuning](concepts-monitoring.md) in Azure Database for MariaDB.
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 MariaDB
3+
description: This article describes the Query Performance Insight feature in Azure Database for MariaDB
4+
author: ajlam
5+
ms.author: andrela
6+
ms.service: mariadb
7+
ms.topic: conceptual
8+
ms.date: 06/12/2019
9+
---
10+
# Query Performance Insight in Azure Database for MariaDB
11+
12+
**Applies to:** Azure Database for MariaDB 10.2
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 MariaDB 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 MariaDB.

0 commit comments

Comments
 (0)