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
Copy file name to clipboardExpand all lines: articles/mariadb/concepts-query-store.md
+60-58Lines changed: 60 additions & 58 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,14 @@
1
1
---
2
2
title: Query Store - Azure Database for MariaDB
3
-
description: Learn about the Query Store feature in Azure Database for MariaDB to help you track performance over time.
3
+
description: Learn about the Query Store feature in Azure Database for MariaDB to help you track performance over time.
4
+
author: code-sidd
5
+
ms.author: sisawant
6
+
ms.reviewer: maghan
7
+
ms.date: 04/18/2023
4
8
ms.service: mariadb
5
-
author: savjani
6
-
ms.author: pariks
7
9
ms.topic: conceptual
8
-
ms.date: 06/24/2022
9
10
---
11
+
10
12
# Monitor Azure Database for MariaDB performance with Query Store
11
13
12
14
**Applies to:** Azure Database for MariaDB 10.2
@@ -21,21 +23,21 @@ Query store can be used in many scenarios, including the following:
21
23
- Determining the number of times a query was executed in a given time window
22
24
- Comparing the average execution time of a query across time windows to see large deltas
23
25
24
-
## Enabling Query Store
26
+
## Enable Query Store
25
27
26
28
Query Store is an opt-in feature, so it isn't active by default on a server. The query store is enabled or disabled globally for all the databases on a given server and cannot be turned on or off per database.
27
29
28
30
### Enable Query Store using the Azure portal
29
31
30
32
1. Sign in to the Azure portal and select your Azure Database for MariaDB server.
31
-
2. Select **Server Parameters** in the **Settings** section of the menu.
32
-
3. Search for the query_store_capture_mode parameter.
33
-
4. Set the value to ALL and **Save**.
33
+
1. Select **Server Parameters** in the **Settings** section of the menu.
34
+
1. Search for the query_store_capture_mode parameter.
35
+
1. Set the value to ALL and **Save**.
34
36
35
37
To enable wait statistics in your Query Store:
36
38
37
39
1. Search for the query_store_wait_sampling_capture_mode parameter.
38
-
2. Set the value to ALL and **Save**.
40
+
1. Set the value to ALL and **Save**.
39
41
40
42
Allow up to 20 minutes for the first batch of data to persist in the mysql database.
41
43
@@ -60,20 +62,20 @@ Or this query for wait statistics:
60
62
SELECT*FROMmysql.query_store_wait_stats;
61
63
```
62
64
63
-
## Finding wait queries
65
+
## Find wait queries
64
66
65
-
> [!NOTE]
67
+
> [!NOTE]
66
68
> Wait statistics should not be enabled during peak workload hours or be turned on indefinitely for sensitive workloads. <br>For workloads running with high CPU utilization or on servers configured with lower vCores, use caution when enabling wait statistics. It should not be turned on indefinitely.
67
69
68
70
Wait event types combine different wait events into buckets by similarity. Query Store provides the wait event type, specific wait event name, and the query in question. Being able to correlate this wait information with the query runtime statistics means you can gain a deeper understanding of what contributes to query performance characteristics.
69
71
70
72
Here are some examples of how you can gain more insights into your workload using the wait statistics in Query Store:
71
73
72
74
|**Observation**|**Action**|
73
-
|---|---|
74
-
|High Lock waits | Check the query texts for the affected queries and identify the target entities. Look in Query Store for other queries modifying the same entity, which is executed frequently and/or have high duration. After identifying these queries, consider changing the application logic to improve concurrency, or use a less restrictive isolation level. |
75
-
|High Buffer IO waits | Find the queries with a high number of physical reads in Query Store. If they match the queries with high IO waits, consider introducing an index on the underlying entity, to do seeks instead of scans. This would minimize the IO overhead of the queries. Check the **Performance Recommendations** for your server in the portal to see if there are index recommendations for this server that would optimize the queries. |
76
-
|High Memory waits | Find the top memory consuming queries in Query Store. These queries are probably delaying further progress of the affected queries. Check the **Performance Recommendations** for your server in the portal to see if there are index recommendations that would optimize these queries.|
75
+
|---|---|
76
+
|High Lock waits | Check the query texts for the affected queries and identify the target entities. Look in Query Store for other queries modifying the same entity, which is executed frequently and/or have high duration. After identifying these queries, consider changing the application logic to improve concurrency, or use a less restrictive isolation level. |
77
+
|High Buffer IO waits | Find the queries with a high number of physical reads in Query Store. If they match the queries with high IO waits, consider introducing an index on the underlying entity, to do seeks instead of scans. This would minimize the IO overhead of the queries. Check the **Performance Recommendations** for your server in the portal to see if there are index recommendations for this server that would optimize the queries. |
78
+
|High Memory waits | Find the top memory consuming queries in Query Store. These queries are probably delaying further progress of the affected queries. Check the **Performance Recommendations** for your server in the portal to see if there are index recommendations that would optimize these queries.|
77
79
78
80
## Configuration options
79
81
@@ -82,7 +84,7 @@ When Query Store is enabled it saves data in 15-minute aggregation windows, up t
82
84
The following options are available for configuring Query Store parameters.
| query_store_capture_mode | Turn the query store feature ON/OFF based on the value. Note: If performance_schema is OFF, turning on query_store_capture_mode will turn on performance_schema and a subset of performance schema instruments required for this feature. | ALL | NONE, ALL |
87
89
| query_store_capture_interval | The query store capture interval in minutes. Allows specifying the interval in which the query metrics are aggregated | 15 | 5 - 60 |
88
90
| query_store_capture_utility_queries | Turning ON or OFF to capture all the utility queries that is executing in the system. | NO | YES, NO |
@@ -91,11 +93,11 @@ The following options are available for configuring Query Store parameters.
91
93
The following options apply specifically to wait statistics.
| query_store_wait_sampling_capture_mode | Allows turning ON / OFF the wait statistics. | NONE | NONE, ALL |
96
98
| query_store_wait_sampling_frequency | Alters frequency of wait-sampling in seconds. 5 to 300 seconds. | 30 | 5-300 |
97
99
98
-
> [!NOTE]
100
+
> [!NOTE]
99
101
> Currently **query_store_capture_mode** supersedes this configuration, meaning both **query_store_capture_mode** and **query_store_wait_sampling_capture_mode** have to be enabled to ALL for wait statistics to work. If **query_store_capture_mode** is turned off, then wait statistics is turned off as well since wait statistics utilizes the performance_schema enabled, and the query_text captured by query store.
100
102
101
103
Use the [Azure portal](howto-server-parameters.md) to get or set a different value for a parameter.
@@ -111,54 +113,54 @@ Queries are normalized by looking at their structure after removing literals and
111
113
This view returns all the data in Query Store. There is one row for each distinct database ID, user ID, and query ID.
Copy file name to clipboardExpand all lines: articles/mariadb/concepts-ssl-connection-security.md
+18-17Lines changed: 18 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,22 @@
1
1
---
2
2
title: SSL/TLS connectivity - Azure Database for MariaDB
3
3
description: Information for configuring Azure Database for MariaDB and associated applications to properly use SSL connections
4
+
author: shreyaaithal
5
+
ms.author: shaithal
6
+
ms.reviewer: maghan
7
+
ms.date: 04/18/2023
4
8
ms.service: mariadb
5
-
author: savjani
6
-
ms.author: pariks
7
9
ms.topic: conceptual
8
-
ms.date: 06/24/2022
9
10
---
10
11
11
12
# SSL/TLS connectivity in Azure Database for MariaDB
12
13
13
14
Azure Database for MariaDB supports connecting your database server to client applications using Secure Sockets Layer (SSL). Enforcing SSL connections between your database server and your client applications helps protect against "man in the middle" attacks by encrypting the data stream between the server and your application.
14
15
15
-
>[!NOTE]
16
+
>[!NOTE]
16
17
> Based on the feedback from customers we have extended the root certificate deprecation for our existing Baltimore Root CA till February 15, 2021 (02/15/2021).
17
18
18
-
> [!IMPORTANT]
19
+
> [!IMPORTANT]
19
20
> SSL root certificate is set to expire starting February 15, 2021 (02/15/2021). Please update your application to use the [new certificate](https://cacerts.digicert.com/DigiCertGlobalRootG2.crt.pem). To learn more , see [planned certificate updates](concepts-certificate-rotation.md)
20
21
21
22
## Default settings
@@ -40,18 +41,18 @@ Azure Database for MariaDB supports encryption for clients connecting to your da
40
41
41
42
Azure Database for MariaDB provides the ability to enforce the TLS version for the client connections. To enforce the TLS version, use the **Minimum TLS version** option setting. The following values are allowed for this option setting:
42
43
43
-
|Minimum TLS setting | Client TLS version supported|
| TLSEnforcementDisabled (default) | No TLS required |
46
-
| TLS1_0 | TLS 1.0, TLS 1.1, TLS 1.2 and higher|
47
-
| TLS1_1 | TLS 1.1, TLS 1.2 and higher|
48
-
| TLS1_2 | TLS version 1.2 and higher|
44
+
| Minimum TLS setting | Client TLS version supported |
45
+
|:---|---: |
46
+
| TLSEnforcementDisabled (default) | No TLS required |
47
+
| TLS1_0 | TLS 1.0, TLS 1.1, TLS 1.2 and higher |
48
+
| TLS1_1 | TLS 1.1, TLS 1.2 and higher |
49
+
| TLS1_2 | TLS version 1.2 and higher |
49
50
50
51
For example, setting the value of Minimum TLS setting version to TLS 1.0 means your server will allow connections from clients using TLS 1.0, 1.1, and 1.2+. Alternatively, setting this to 1.2 means that you only allow connections from clients using TLS 1.2+ and all connections with TLS 1.0 and TLS 1.1 will be rejected.
51
52
52
-
> [!Note]
53
+
> [!NOTE]
53
54
> By default, Azure Database for MariaDB does not enforce a minimum TLS version (the setting `TLSEnforcementDisabled`).
54
-
>
55
+
>
55
56
> Once you enforce a minimum TLS version, you cannot later disable minimum version enforcement.
56
57
57
58
To learn how to set the TLS setting for your Azure Database for MariaDB, refer to [How to configure TLS setting](howto-tls-configurations.md).
@@ -62,10 +63,10 @@ As part of the SSL/TLS communication, the cipher suites are validated and only s
0 commit comments