|
| 1 | +--- |
| 2 | +title: Change capacity mode from serverless to provisioned throughput in Azure Cosmos DB |
| 3 | +description: Learn how to change the capacity mode of a serverless account to a provisioned capacity account. |
| 4 | +author: richagaur |
| 5 | +ms.author: richagaur |
| 6 | +ms.service: cosmos-db |
| 7 | +ms.subservice: nosql |
| 8 | +ms.topic: how-to |
| 9 | +ms.date: 05/21/2024 |
| 10 | +ms.custom: build-2024 |
| 11 | +--- |
| 12 | + |
| 13 | +# Change from serverless to provisioned capacity mode in Azure Cosmos DB |
| 14 | + |
| 15 | +[!INCLUDE[NoSQL](../includes/appliesto-nosql.md)] |
| 16 | + |
| 17 | +Azure Cosmos DB allows a user to change the capacity mode of an account from serverless to provisioned capacity. Changing from serverless to provisioned capacity mode converts all containers within the account to manual provisioned throughput containers in-place. The containers' throughput is determined according to the following formula. |
| 18 | + |
| 19 | + Throughput(RU/s) = max(5000, StorageInGB * 10) |
| 20 | + |
| 21 | +Users can also change the throughput or provisioning mode from manual to autoscale once the migration is complete. |
| 22 | + |
| 23 | +>[!Caution] |
| 24 | +>This is an irreversible operation. Once migrated, the capacity mode can't be changed back to serverless. |
| 25 | +
|
| 26 | +## Getting started |
| 27 | + |
| 28 | +To enable this feature, register for the preview feature **Change capacity mode** on your subscription. |
| 29 | + |
| 30 | +## How to change capacity mode? |
| 31 | + |
| 32 | +Follow the steps below to change the capacity mode using Azure portal. |
| 33 | + |
| 34 | +1. Click on the **Change** link next to *capacity mode* on the overview page of your Cosmos DB account. |
| 35 | + |
| 36 | +2. Review the changes and click on **Confirm** to start the migration. |
| 37 | + |
| 38 | +3. Monitor the status in the **updating** state on the overview page of Cosmos DB account while the migration is in progress. |
| 39 | + |
| 40 | +4. Once the migration is complete, the capacity mode will be changed to **provisioned capacity**. |
| 41 | + |
| 42 | +> [!Note] |
| 43 | +> There are no SLA's associated with the duration of the capacity mode change. |
| 44 | +> Users cannot execute any management operation while the migration is in progress. However, the containers can be accessed as usual by any client application. |
| 45 | +
|
| 46 | +## Next Steps |
| 47 | + |
| 48 | +- Learn [how to chose between autoscale and manual throughput](../how-to-choose-offer). |
| 49 | +- Learn [how to chose between serverless and provisioned throughput](../throughput-serverless). |
| 50 | +- Trying to do capacity planning for Azure Cosmos DB with provisioned capacity? |
| 51 | + If you know typical request rates for your current database workload, [read about estimating request units using Azure Cosmos DB capacity planner](estimate-ru-with-capacity-planner). |
| 52 | + |
0 commit comments