Skip to content

Commit eaab6d0

Browse files
authored
Update distribute-throughput-across-partitions.md
1 parent b008aa9 commit eaab6d0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/cosmos-db/mongodb/distribute-throughput-across-partitions.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.service: cosmos-db
88
ms.subservice: mongodb
99
ms.custom: devx-track-azurecli
1010
ms.topic: concept-article
11-
ms.date: 04/02/2024
11+
ms.date: 11/02/2024
1212
---
1313

1414
# Redistribute throughput across partitions
@@ -98,7 +98,7 @@ $parameters = @{
9898
Install-Module @parameters
9999
```
100100

101-
#### [Azure CLI](#tab/Azure CLI)
101+
#### [Azure CLI](#tab/azure-cli)
102102

103103
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.
104104

@@ -143,7 +143,7 @@ $allPartitionsSharedThroughputDatabase = Get-AzCosmosDBMongoDBDatabasePerPartiti
143143
144144
```
145145

146-
#### [API for MongoDB](#tab/mongodb/Azure CLI)
146+
#### [Azure CLI](#tab/azure-cli)
147147

148148
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).
149149

@@ -203,7 +203,7 @@ To understand the below example, let's take an example where we have a container
203203

204204
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.
205205

206-
#### [API for MongoDB](#tab/mongodb/azure-powershell)
206+
#### [PowerShell](#tab/azure-powershell)
207207

208208
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.
209209

@@ -233,7 +233,7 @@ Update-AzCosmosDBMongoDBDatabasePerPartitionThroughput `
233233
-TargetPhysicalPartitionThroughputObject $TargetPhysicalPartitionObjects
234234
```
235235

236-
#### [API for MongoDB](#tab/mongodb/Azure CLI)
236+
#### [Azure CLI](#tab/azure-cli)
237237

238238
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).
239239

@@ -274,7 +274,7 @@ Update-AzCosmosDBMongoDBDatabasePerPartitionThroughput `
274274
-EqualDistributionPolicy
275275
```
276276

277-
#### [API for MongoDB](#tab/mongodb/Azure CLI)
277+
#### [Azure CLI](#tab/azure-cli)
278278

279279
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`.
280280

0 commit comments

Comments
 (0)