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/cosmos-db/concepts-limits.md
+28-28Lines changed: 28 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,45 +17,42 @@ After you create an Azure Cosmos account under your subscription, you can manage
17
17
18
18
| Resource | Default limit |
19
19
| --- | --- |
20
-
| Maximum RU per container ([dedicated throughput provisioned mode](databases-containers-items.md#azure-cosmos-containers)) |1000000 <sup>1</sup>|
21
-
| Maximum RU per database ([shared throughput provisioned mode](databases-containers-items.md#azure-cosmos-containers)) |1000000 <sup>1</sup>|
22
-
| Maximum RU per (logical) partition key |10000|
20
+
| Maximum RUs per container ([dedicated throughput provisioned mode](databases-containers-items.md#azure-cosmos-containers)) |1,000,000 by default. You can increase it by [filing an Azure support ticket](https://docs.microsoft.com/azure/azure-supportability/how-to-create-azure-support-request) or contacting us via [Ask Cosmos DB](mailto:[email protected])|
21
+
| Maximum RUs per database ([shared throughput provisioned mode](databases-containers-items.md#azure-cosmos-containers)) |1,000,000 by default. You can increase it by [filing an Azure support ticket](https://docs.microsoft.com/azure/azure-supportability/how-to-create-azure-support-request) or contacting us via [Ask Cosmos DB](mailto:[email protected])|
22
+
| Maximum RUs per (logical) partition key |10,000|
23
23
| Maximum storage across all items per (logical) partition key| 10 GB |
24
24
| Maximum number of distinct (logical) partition keys | Unlimited |
25
25
| Maximum storage per container | Unlimited |
26
26
| Maximum storage per database | Unlimited |
27
27
28
28
> [!NOTE]
29
-
> You can increase throughput beyond 1M RUs by [filing an Azure support ticket](https://docs.microsoft.com/azure/azure-supportability/how-to-create-azure-support-request).
30
-
>
31
29
> For best practices to manage workloads that have partition keys that need higher limits for storage or throughput, see [Designing for Hot Partition Keys](synthetic-partition-keys.md)
32
30
>
33
31
34
32
A Cosmos container (or shared throughput database) must have a minimum throughput of 400 RUs. As the container grows, the minimum supported throughput also depends on the following factors:
35
33
36
-
* The maximum storage consumed in the container, measured in increments of 40 RU per GB consumed. For example, if a container contains 100 GB of data, then the throughput must be at least 4000 RUs
34
+
* The maximum storage consumed in the container is measured in increments of 40 RUs per GB of consumed storage. For example, if a container contains 100 GB of data, then the throughput must be at least 4000 RUs
37
35
* The maximum throughput ever provisioned on the container. The service supports lowering throughput of a container to 10% of the provisioned maximum. For example, if your throughput was increased to 10000 RUs, then the lowest possible provisioned throughput would be 1000 RUs
38
36
* The total number of containers that you have ever created in a shared database, measured at 100 RUs per container. For example, if you have created five containers within a shared database, then the throughput must be at least 500 RUs
39
37
40
38
The current and minimum throughput of a container or a database can be retrieved from the Azure portal or the SDKs. For more information, see [Provision throughput on containers and databases](set-throughput.md). In summary, here are the minimum provisioned RU limits.
| Minimum RU per container within a shared throughput database | 100 |
47
-
| Minimum RU per GB of consumed storage | 40 |
42
+
| Minimum RUs per container ([dedicated throughput provisioned mode](databases-containers-items.md#azure-cosmos-containers)) | 400 |
43
+
| Minimum RUs per database ([shared throughput provisioned mode](databases-containers-items.md#azure-cosmos-containers)) | 400 |
44
+
| Minimum RUs per container within a shared throughput database | 100 |
45
+
| Minimum RUs per GB of consumed storage | 40 |
48
46
49
47
Cosmos DB supports elastic scaling of throughput (RUs) per container or database via the SDKs or portal. Each container can scale synchronously and immediately within a scale range of 10 to 100 times, between minimum and maximum values. If the requested throughput value is outside the range, scaling is performed asynchronously. Asynchronous scaling may take minutes to hours to complete depending on the requested throughput and data storage size in the container.
50
48
51
-
## Management operations
49
+
## Control plane operations
52
50
You can [provision and manage your Azure Cosmos account](how-to-manage-database-account.md) using the Azure portal, Azure PowerShell, Azure CLI, and Azure Resource Manager templates. The following table lists the limits per subscription, account, and number of operations.
53
51
54
52
| Resource | Default limit |
55
53
| --- | --- |
56
-
| Maximum database accounts per subscription |50 <sup>1</sup>|
57
-
| Maximum regions per database account |30 <sup>1</sup>|
58
-
| Maximum number of regional failovers |1/hour <sup>1</sup>|
54
+
| Maximum database accounts per subscription | 50 by default. You can increase it by [filing an Azure support ticket](https://docs.microsoft.com/azure/azure-supportability/how-to-create-azure-support-request) or contacting us via [Ask Cosmos DB](mailto:[email protected])|
55
+
| Maximum number of regional failovers | 1/hour by default. You can increase it by [filing an Azure support ticket](https://docs.microsoft.com/azure/azure-supportability/how-to-create-azure-support-request) or contacting us via [Ask Cosmos DB](mailto:[email protected])|
59
56
60
57
> [!NOTE]
61
58
> Regional failovers only apply to single region writes accounts. Multi-region write accounts do not require or have any limits on changing the write region.
@@ -68,11 +65,13 @@ Depending on which API you use, an Azure Cosmos container can represent either a
68
65
| Resource | Default limit |
69
66
| --- | --- |
70
67
| Maximum length of database or container name | 255 |
71
-
| Maximum stored procedures per container | 100 <sup>1</sup>|
72
-
| Maximum UDFs per container | 25 <sup>1</sup>|
73
-
| Maximum number of paths in indexing policy| 100 <sup>1</sup>|
74
-
| Maximum number of unique keys per container|10 <sup>1</sup>|
75
-
| Maximum number of paths per unique key constraint|16 <sup>1</sup>|
68
+
| Maximum stored procedures per container | 100 <sup>*</sup>|
69
+
| Maximum UDFs per container | 25 <sup>*</sup>|
70
+
| Maximum number of paths in indexing policy| 100 <sup>*</sup>|
71
+
| Maximum number of unique keys per container|10 <sup>*</sup>|
72
+
| Maximum number of paths per unique key constraint|16 <sup>*</sup>|
73
+
74
+
<sup>*</sup> You can increase any of these per-contianer limits by contacting Azure Support or contacting us via [Ask Cosmos DB](mailto:[email protected]).
76
75
77
76
## Per-item limits
78
77
Depending on which API you use, an Azure Cosmos item can represent either a document in a collection, a row in a table, or a node or edge in a graph. The following table shows the limits per item in Cosmos DB.
@@ -108,7 +107,7 @@ Cosmos DB uses HMAC for authorization. You can use either a master key, or a [re
108
107
| --- | --- |
109
108
| Maximum master token expiry time | 15 min |
110
109
| Minimum resource token expiry time | 10 min |
111
-
| Maximum resource token expiry time | 24 h <sup>1</sup>|
110
+
| Maximum resource token expiry time | 24 h by default. You can increase it by [filing an Azure support ticket](https://docs.microsoft.com/azure/azure-supportability/how-to-create-azure-support-request) or contacting us via [Ask Cosmos DB](mailto:[email protected])|
112
111
| Maximum clock skew for token authorization| 15 min |
113
112
114
113
Cosmos DB supports execution of triggers during writes. The service supports a maximum of one pre-trigger and one post-trigger per write operation.
@@ -118,14 +117,15 @@ Cosmos DB supports querying items using [SQL](how-to-sql-query.md). The followin
118
117
119
118
| Resource | Default limit |
120
119
| --- | --- |
121
-
| Maximum length of SQL query| 256 KB <sup>1</sup>|
122
-
| Maximum JOINs per query| 5 <sup>1</sup>|
123
-
| Maximum ANDs per query| 2000 <sup>1</sup>|
124
-
| Maximum ORs per query| 2000 <sup>1</sup>|
125
-
| Maximum UDFs per query| 10 <sup>1</sup>|
126
-
| Maximum arguments per IN expression| 6000 <sup>1</sup>|
127
-
| Maximum points per polygon| 4096 <sup>1</sup>|
120
+
| Maximum length of SQL query| 256 KB <sup>*</sup>|
121
+
| Maximum JOINs per query| 5 <sup>*</sup>|
122
+
| Maximum ANDs per query| 2000 <sup>*</sup>|
123
+
| Maximum ORs per query| 2000 <sup>*</sup>|
124
+
| Maximum UDFs per query| 10 <sup>*</sup>|
125
+
| Maximum arguments per IN expression| 6000 <sup>*</sup>|
126
+
| Maximum points per polygon| 4096 <sup>*</sup>|
128
127
128
+
<sup>*</sup> You can increase any of these SQL query limits by contacting Azure Support or contacting us via [Ask Cosmos DB](mailto:[email protected]).
129
129
130
130
## MongoDB API-specific limits
131
131
Cosmos DB supports the MongoDB wire protocol for applications written against MongoDB. You can find the supported commands and protocol versions at [Supported MongoDB features and syntax](mongodb-feature-support.md).
@@ -151,4 +151,4 @@ The following table lists the limits for the [Try Azure Cosmos DB for Free](http
151
151
152
152
Try Cosmos DB supports global distribution in only the Central US, North Europe, and Southeast Asia regions. Azure support tickets can't be created for Try Azure Cosmos DB accounts. However, support is provided for subscribers with existing support plans.
153
153
154
-
<sup>1</sup> You can increase these limits by contacting Azure Support or contacting us via [Ask CosmosDB](mailto:[email protected]).
154
+
<sup>1</sup> You can increase these limits by contacting Azure Support or contacting us via [Ask Cosmos DB](mailto:[email protected]).
0 commit comments