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/mongodb/distribute-throughput-across-partitions.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ ms.service: cosmos-db
8
8
ms.subservice: mongodb
9
9
ms.custom: devx-track-azurecli
10
10
ms.topic: concept-article
11
-
ms.date: 04/02/2024
11
+
ms.date: 11/02/2024
12
12
---
13
13
14
14
# Redistribute throughput across partitions
@@ -98,7 +98,7 @@ $parameters = @{
98
98
Install-Module @parameters
99
99
```
100
100
101
-
#### [Azure CLI](#tab/Azure CLI)
101
+
#### [Azure CLI](#tab/azure-cli)
102
102
103
103
Use [`az extension add`](/cli/azure/extension#az-extension-add) to install the [cosmosdb-preview](https://github.com/azure/azure-cli-extensions/tree/main/src/cosmosdb-preview) Azure CLI extension.
Read the current RU/s on each physical partition by using [`az cosmosdb mongodb collection retrieve-partition-throughput`](/cli/azure/cosmosdb/sql/container#az-cosmosdb-mongodb-collection-retrieve-partition-throughput).
149
149
@@ -203,7 +203,7 @@ To understand the below example, let's take an example where we have a container
203
203
204
204
We specify partitions 0 and 2 as our source partitions, and specify that after the redistribution, they should have a minimum RU/s of 1000 RU/s. Partition 1 is out target partition, which we specify should have 4000 RU/s.
205
205
206
-
#### [API for MongoDB](#tab/mongodb/azure-powershell)
206
+
#### [PowerShell](#tab/azure-powershell)
207
207
208
208
Use the `Update-AzCosmosDBMongoDBCollectionPerPartitionThroughput` for collections with dedicated RU/s or the `Update-AzCosmosDBMongoDBDatabasePerPartitionThroughput` command for databases with shared RU/s to redistribute throughput across physical partitions. In shared throughput databases, the Ids of the physical partitions are represented by a GUID string.
Update the RU/s on each physical partition by using [`az cosmosdb mongodb collection redistribute-partition-throughput`](/cli/azure/cosmosdb/mongodb/collection#az-cosmosdb-mongodb-collection-redistribute-partition-throughput).
Update the RU/s on each physical partition by using [`az cosmosdb mongodb collection redistribute-partition-throughput`](/cli/azure/cosmosdb/mongodb/collection#az-cosmosdb-mongodb-collection-redistribute-partition-throughput) with the parameter `--evenly-distribute`.
0 commit comments