Skip to content

Commit 28bdcb8

Browse files
authored
Merge pull request #107568 from ajlam/master
Add more server parameter limits
2 parents 085240b + 66c6783 commit 28bdcb8

File tree

2 files changed

+253
-40
lines changed

2 files changed

+253
-40
lines changed

articles/mariadb/concepts-limits.md

Lines changed: 125 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,32 @@ author: ajlam
55
ms.author: andrela
66
ms.service: mariadb
77
ms.topic: conceptual
8-
ms.date: 12/09/2019
8+
ms.date: 3/9/2020
99
---
1010
# Limitations in Azure Database for MariaDB
1111
The following sections describe capacity, storage engine support, privilege support, data manipulation statement support, and functional limits in the database service.
1212

13-
## Maximum connections
14-
The maximum number of connections per pricing tier and vCores are as follows:
15-
16-
|**Pricing Tier**|**vCore(s)**| **Max Connections**|
17-
|---|---|---|
18-
|Basic| 1| 50|
19-
|Basic| 2| 100|
20-
|General Purpose| 2| 600|
21-
|General Purpose| 4| 1250|
22-
|General Purpose| 8| 2500|
23-
|General Purpose| 16| 5000|
24-
|General Purpose| 32| 10000|
25-
|General Purpose| 64| 20000|
26-
|Memory Optimized| 2| 800|
27-
|Memory Optimized| 4| 2500|
28-
|Memory Optimized| 8| 5000|
29-
|Memory Optimized| 16| 10000|
30-
|Memory Optimized| 32| 20000|
13+
## Server parameters
14+
15+
The minimum and maximum values of several popular server parameters are determined by the pricing tier and vCores. Refer to the below tables for limits.
16+
17+
### max_connections
18+
19+
|**Pricing Tier**|**vCore(s)**|**Default value**|**Min value**|**Max value**|
20+
|---|---|---|---|---|
21+
|Basic|1|50|10|50|
22+
|Basic|2|100|10|100|
23+
|General Purpose|2|300|10|600|
24+
|General Purpose|4|625|10|1250|
25+
|General Purpose|8|1250|10|2500|
26+
|General Purpose|16|2500|10|5000|
27+
|General Purpose|32|5000|10|10000|
28+
|General Purpose|64|10000|10|20000|
29+
|Memory Optimized|2|600|10|800|
30+
|Memory Optimized|4|1250|10|2500|
31+
|Memory Optimized|8|2500|10|5000|
32+
|Memory Optimized|16|5000|10|10000|
33+
|Memory Optimized|32|10000|10|20000|
3134

3235
When connections exceed the limit, you may receive the following error:
3336
> ERROR 1040 (08004): Too many connections
@@ -37,6 +40,108 @@ When connections exceed the limit, you may receive the following error:
3740
3841
Creating new client connections to MariaDB takes time and once established, these connections occupy database resources, even when idle. Most applications request many short-lived connections, which compounds this situation. The result is fewer resources available for your actual workload leading to decreased performance. A connection pooler that decreases idle connections and reuses existing connections will help avoid this. To learn about setting up ProxySQL, visit our [blog post](https://techcommunity.microsoft.com/t5/azure-database-for-mysql/load-balance-read-replicas-using-proxysql-in-azure-database-for/ba-p/880042).
3942

43+
## query_cache_size
44+
45+
The query cache is turned off by default. To enable the query cache, configure the `query_cache_type` parameter.
46+
47+
Review the [MariaDB documentation](https://mariadb.com/kb/en/server-system-variables/#query_cache_size) to learn more about this parameter.
48+
49+
|**Pricing Tier**|**vCore(s)**|**Default value**|**Min value**|**Max value**|
50+
|---|---|---|---|---|
51+
|Basic|1|Not configurable in Basic tier|N/A|N/A|
52+
|Basic|2|Not configurable in Basic tier|N/A|N/A|
53+
|General Purpose|2|0|0|16777216|
54+
|General Purpose|4|0|0|33554432|
55+
|General Purpose|8|0|0|67108864|
56+
|General Purpose|16|0|0|134217728|
57+
|General Purpose|32|0|0|134217728|
58+
|General Purpose|64|0|0|134217728|
59+
|Memory Optimized|2|0|0|33554432|
60+
|Memory Optimized|4|0|0|67108864|
61+
|Memory Optimized|8|0|0|134217728|
62+
|Memory Optimized|16|0|0|134217728|
63+
|Memory Optimized|32|0|0|134217728|
64+
65+
## sort_buffer_size
66+
67+
Review the [MariaDB documentation](https://mariadb.com/kb/en/server-system-variables/#sort_buffer_size) to learn more about this parameter.
68+
69+
|**Pricing Tier**|**vCore(s)**|**Default value**|**Min value**|**Max value**|
70+
|---|---|---|---|---|
71+
|Basic|1|Not configurable in Basic tier|N/A|N/A|
72+
|Basic|2|Not configurable in Basic tier|N/A|N/A|
73+
|General Purpose|2|524288|32768|4194304|
74+
|General Purpose|4|524288|32768|8388608|
75+
|General Purpose|8|524288|32768|16777216|
76+
|General Purpose|16|524288|32768|33554432|
77+
|General Purpose|32|524288|32768|33554432|
78+
|General Purpose|64|524288|32768|33554432|
79+
|Memory Optimized|2|524288|32768|8388608|
80+
|Memory Optimized|4|524288|32768|16777216|
81+
|Memory Optimized|8|524288|32768|33554432|
82+
|Memory Optimized|16|524288|32768|33554432|
83+
|Memory Optimized|32|524288|32768|33554432|
84+
85+
## join_buffer_size
86+
87+
Review the [MariaDB documentation](https://mariadb.com/kb/en/server-system-variables/#join_buffer_size) to learn more about this parameter.
88+
89+
|**Pricing Tier**|**vCore(s)**|**Default value**|**Min value**|**Max value**|
90+
|---|---|---|---|---|
91+
|Basic|1|Not configurable in Basic tier|N/A|N/A|
92+
|Basic|2|Not configurable in Basic tier|N/A|N/A|
93+
|General Purpose|2|262144|128|268435455|
94+
|General Purpose|4|262144|128|536870912|
95+
|General Purpose|8|262144|128|1073741824|
96+
|General Purpose|16|262144|128|2147483648|
97+
|General Purpose|32|262144|128|4294967295|
98+
|General Purpose|64|262144|128|4294967295|
99+
|Memory Optimized|2|262144|128|536870912|
100+
|Memory Optimized|4|262144|128|1073741824|
101+
|Memory Optimized|8|262144|128|2147483648|
102+
|Memory Optimized|16|262144|128|4294967295|
103+
|Memory Optimized|32|262144|128|4294967295|
104+
105+
## max_heap_table_size
106+
107+
Review the [MariaDB documentation](https://mariadb.com/kb/en/server-system-variables/#max_heap_table_size) to learn more about this parameter.
108+
109+
|**Pricing Tier**|**vCore(s)**|**Default value**|**Min value**|**Max value**|
110+
|---|---|---|---|---|
111+
|Basic|1|Not configurable in Basic tier|N/A|N/A|
112+
|Basic|2|Not configurable in Basic tier|N/A|N/A|
113+
|General Purpose|2|16777216|16384|268435455|
114+
|General Purpose|4|16777216|16384|536870912|
115+
|General Purpose|8|16777216|16384|1073741824|
116+
|General Purpose|16|16777216|16384|2147483648|
117+
|General Purpose|32|16777216|16384|4294967295|
118+
|General Purpose|64|16777216|16384|4294967295|
119+
|Memory Optimized|2|16777216|16384|536870912|
120+
|Memory Optimized|4|16777216|16384|1073741824|
121+
|Memory Optimized|8|16777216|16384|2147483648|
122+
|Memory Optimized|16|16777216|16384|4294967295|
123+
|Memory Optimized|32|16777216|16384|4294967295|
124+
125+
## tmp_table_size
126+
127+
Review the [MariaDB documentation](https://mariadb.com/kb/en/server-system-variables/#tmp_table_size) to learn more about this parameter.
128+
129+
|**Pricing Tier**|**vCore(s)**|**Default value**|**Min value**|**Max value**|
130+
|---|---|---|---|---|
131+
|Basic|1|Not configurable in Basic tier|N/A|N/A|
132+
|Basic|2|Not configurable in Basic tier|N/A|N/A|
133+
|General Purpose|2|16777216|1024|67108864|
134+
|General Purpose|4|16777216|1024|134217728|
135+
|General Purpose|8|16777216|1024|268435456|
136+
|General Purpose|16|16777216|1024|536870912|
137+
|General Purpose|32|16777216|1024|1073741824|
138+
|General Purpose|64|16777216|1024|1073741824|
139+
|Memory Optimized|2|16777216|1024|134217728|
140+
|Memory Optimized|4|16777216|1024|268435456|
141+
|Memory Optimized|8|16777216|1024|536870912|
142+
|Memory Optimized|16|16777216|1024|1073741824|
143+
|Memory Optimized|32|16777216|1024|1073741824|
144+
40145
## Storage engine support
41146

42147
### Supported
@@ -92,5 +197,5 @@ Requires super privileges to create and is restricted. If importing data using a
92197
- MariaDB server instance displays the incorrect server version after connection is established. To get the correct server instance engine version, use the `select version();` command.
93198

94199
## Next steps
95-
- [Whats available in each service tier](concepts-pricing-tiers.md)
200+
- [What's available in each service tier](concepts-pricing-tiers.md)
96201
- [Supported MariaDB database versions](concepts-supported-versions.md)

articles/mysql/concepts-limits.md

Lines changed: 128 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,32 @@ author: ajlam
55
ms.author: andrela
66
ms.service: mysql
77
ms.topic: conceptual
8-
ms.date: 12/9/2019
8+
ms.date: 3/9/2020
99
---
1010
# Limitations in Azure Database for MySQL
1111
The following sections describe capacity, storage engine support, privilege support, data manipulation statement support, and functional limits in the database service. Also see [general limitations](https://dev.mysql.com/doc/mysql-reslimits-excerpt/5.6/en/limits.html) applicable to the MySQL database engine.
1212

13-
## Maximum connections
14-
The maximum number of connections per pricing tier and vCores are as follows:
15-
16-
|**Pricing Tier**|**vCore(s)**| **Max Connections**|
17-
|---|---|---|
18-
|Basic| 1| 50|
19-
|Basic| 2| 100|
20-
|General Purpose| 2| 600|
21-
|General Purpose| 4| 1250|
22-
|General Purpose| 8| 2500|
23-
|General Purpose| 16| 5000|
24-
|General Purpose| 32| 10000|
25-
|General Purpose| 64| 20000|
26-
|Memory Optimized| 2| 1250|
27-
|Memory Optimized| 4| 2500|
28-
|Memory Optimized| 8| 5000|
29-
|Memory Optimized| 16| 10000|
30-
|Memory Optimized| 32| 20000|
13+
## Server parameters
14+
15+
The minimum and maximum values of several popular server parameters are determined by the pricing tier and vCores. Refer to the below tables for limits.
16+
17+
### max_connections
18+
19+
|**Pricing Tier**|**vCore(s)**|**Default value**|**Min value**|**Max value**|
20+
|---|---|---|---|---|
21+
|Basic|1|50|10|50|
22+
|Basic|2|100|10|100|
23+
|General Purpose|2|300|10|600|
24+
|General Purpose|4|625|10|1250|
25+
|General Purpose|8|1250|10|2500|
26+
|General Purpose|16|2500|10|5000|
27+
|General Purpose|32|5000|10|10000|
28+
|General Purpose|64|10000|10|20000|
29+
|Memory Optimized|2|600|10|800|
30+
|Memory Optimized|4|1250|10|2500|
31+
|Memory Optimized|8|2500|10|5000|
32+
|Memory Optimized|16|5000|10|10000|
33+
|Memory Optimized|32|10000|10|20000|
3134

3235
When connections exceed the limit, you may receive the following error:
3336
> ERROR 1040 (08004): Too many connections
@@ -37,6 +40,111 @@ When connections exceed the limit, you may receive the following error:
3740
3841
Creating new client connections to MySQL takes time and once established, these connections occupy database resources, even when idle. Most applications request many short-lived connections, which compounds this situation. The result is fewer resources available for your actual workload leading to decreased performance. A connection pooler that decreases idle connections and reuses existing connections will help avoid this. To learn about setting up ProxySQL, visit our [blog post](https://techcommunity.microsoft.com/t5/azure-database-for-mysql/load-balance-read-replicas-using-proxysql-in-azure-database-for/ba-p/880042).
3942

43+
## query_cache_size
44+
45+
The query cache is turned off by default. To enable the query cache, configure the `query_cache_type` parameter.
46+
47+
Review the [MySQL documentation](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_query_cache_size) to learn more about this parameter.
48+
49+
> [!NOTE]
50+
> The query cache is deprecated as of MySQL 5.7.20 and has been removed in MySQL 8.0
51+
52+
|**Pricing Tier**|**vCore(s)**|**Default value**|**Min value**|**Max value**|
53+
|---|---|---|---|---|
54+
|Basic|1|Not configurable in Basic tier|N/A|N/A|
55+
|Basic|2|Not configurable in Basic tier|N/A|N/A|
56+
|General Purpose|2|0|0|16777216|
57+
|General Purpose|4|0|0|33554432|
58+
|General Purpose|8|0|0|67108864|
59+
|General Purpose|16|0|0|134217728|
60+
|General Purpose|32|0|0|134217728|
61+
|General Purpose|64|0|0|134217728|
62+
|Memory Optimized|2|0|0|33554432|
63+
|Memory Optimized|4|0|0|67108864|
64+
|Memory Optimized|8|0|0|134217728|
65+
|Memory Optimized|16|0|0|134217728|
66+
|Memory Optimized|32|0|0|134217728|
67+
68+
## sort_buffer_size
69+
70+
Review the [MySQL documentation](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_sort_buffer_size) to learn more about this parameter.
71+
72+
|**Pricing Tier**|**vCore(s)**|**Default value**|**Min value**|**Max value**|
73+
|---|---|---|---|---|
74+
|Basic|1|Not configurable in Basic tier|N/A|N/A|
75+
|Basic|2|Not configurable in Basic tier|N/A|N/A|
76+
|General Purpose|2|524288|32768|4194304|
77+
|General Purpose|4|524288|32768|8388608|
78+
|General Purpose|8|524288|32768|16777216|
79+
|General Purpose|16|524288|32768|33554432|
80+
|General Purpose|32|524288|32768|33554432|
81+
|General Purpose|64|524288|32768|33554432|
82+
|Memory Optimized|2|524288|32768|8388608|
83+
|Memory Optimized|4|524288|32768|16777216|
84+
|Memory Optimized|8|524288|32768|33554432|
85+
|Memory Optimized|16|524288|32768|33554432|
86+
|Memory Optimized|32|524288|32768|33554432|
87+
88+
## join_buffer_size
89+
90+
Review the [MySQL documentation](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_join_buffer_size) to learn more about this parameter.
91+
92+
|**Pricing Tier**|**vCore(s)**|**Default value**|**Min value**|**Max value**|
93+
|---|---|---|---|---|
94+
|Basic|1|Not configurable in Basic tier|N/A|N/A|
95+
|Basic|2|Not configurable in Basic tier|N/A|N/A|
96+
|General Purpose|2|262144|128|268435455|
97+
|General Purpose|4|262144|128|536870912|
98+
|General Purpose|8|262144|128|1073741824|
99+
|General Purpose|16|262144|128|2147483648|
100+
|General Purpose|32|262144|128|4294967295|
101+
|General Purpose|64|262144|128|4294967295|
102+
|Memory Optimized|2|262144|128|536870912|
103+
|Memory Optimized|4|262144|128|1073741824|
104+
|Memory Optimized|8|262144|128|2147483648|
105+
|Memory Optimized|16|262144|128|4294967295|
106+
|Memory Optimized|32|262144|128|4294967295|
107+
108+
## max_heap_table_size
109+
110+
Review the [MySQL documentation](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_max_heap_table_size) to learn more about this parameter.
111+
112+
|**Pricing Tier**|**vCore(s)**|**Default value**|**Min value**|**Max value**|
113+
|---|---|---|---|---|
114+
|Basic|1|Not configurable in Basic tier|N/A|N/A|
115+
|Basic|2|Not configurable in Basic tier|N/A|N/A|
116+
|General Purpose|2|16777216|16384|268435455|
117+
|General Purpose|4|16777216|16384|536870912|
118+
|General Purpose|8|16777216|16384|1073741824|
119+
|General Purpose|16|16777216|16384|2147483648|
120+
|General Purpose|32|16777216|16384|4294967295|
121+
|General Purpose|64|16777216|16384|4294967295|
122+
|Memory Optimized|2|16777216|16384|536870912|
123+
|Memory Optimized|4|16777216|16384|1073741824|
124+
|Memory Optimized|8|16777216|16384|2147483648|
125+
|Memory Optimized|16|16777216|16384|4294967295|
126+
|Memory Optimized|32|16777216|16384|4294967295|
127+
128+
## tmp_table_size
129+
130+
Review the [MySQL documentation](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_tmp_table_size) to learn more about this parameter.
131+
132+
|**Pricing Tier**|**vCore(s)**|**Default value**|**Min value**|**Max value**|
133+
|---|---|---|---|---|
134+
|Basic|1|Not configurable in Basic tier|N/A|N/A|
135+
|Basic|2|Not configurable in Basic tier|N/A|N/A|
136+
|General Purpose|2|16777216|1024|67108864|
137+
|General Purpose|4|16777216|1024|134217728|
138+
|General Purpose|8|16777216|1024|268435456|
139+
|General Purpose|16|16777216|1024|536870912|
140+
|General Purpose|32|16777216|1024|1073741824|
141+
|General Purpose|64|16777216|1024|1073741824|
142+
|Memory Optimized|2|16777216|1024|134217728|
143+
|Memory Optimized|4|16777216|1024|268435456|
144+
|Memory Optimized|8|16777216|1024|536870912|
145+
|Memory Optimized|16|16777216|1024|1073741824|
146+
|Memory Optimized|32|16777216|1024|1073741824|
147+
40148
## Storage engine support
41149

42150
### Supported
@@ -90,5 +198,5 @@ Requires super privileges to create and is restricted. If importing data using a
90198
- MySQL server instance displays the wrong server version after connection is established. To get the correct server instance engine version, use the `select version();` command.
91199

92200
## Next steps
93-
- [Whats available in each service tier](concepts-pricing-tiers.md)
201+
- [What's available in each service tier](concepts-pricing-tiers.md)
94202
- [Supported MySQL database versions](concepts-supported-versions.md)

0 commit comments

Comments
 (0)