Skip to content

Commit 0f2efcf

Browse files
committed
Updating example
1 parent c88c4d5 commit 0f2efcf

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

articles/cosmos-db/sql/how-to-provision-autoscale-throughput.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Use [version 3.9 or higher](https://www.nuget.org/packages/Microsoft.Azure.Cosmo
6262
CosmosClient cosmosClient = new CosmosClient(Endpoint, PrimaryKey);
6363

6464
// Autoscale throughput settings
65-
ThroughputProperties autoscaleThroughputProperties = ThroughputProperties.CreateAutoscaleThroughput(4000); //Set autoscale max RU/s
65+
ThroughputProperties autoscaleThroughputProperties = ThroughputProperties.CreateAutoscaleThroughput(1000); //Set autoscale max RU/s
6666
6767
//Create the database with autoscale enabled
6868
database = await cosmosClient.CreateDatabaseAsync(DatabaseName, throughputProperties: autoscaleThroughputProperties);
@@ -76,7 +76,7 @@ Database database = await cosmosClient.GetDatabase("DatabaseName");
7676

7777
// Container and autoscale throughput settings
7878
ContainerProperties autoscaleContainerProperties = new ContainerProperties("ContainerName", "/partitionKey");
79-
ThroughputProperties autoscaleThroughputProperties = ThroughputProperties.CreateAutoscaleThroughput(4000); //Set autoscale max RU/s
79+
ThroughputProperties autoscaleThroughputProperties = ThroughputProperties.CreateAutoscaleThroughput(1000); //Set autoscale max RU/s
8080
8181
// Create the container with autoscale enabled
8282
container = await database.CreateContainerAsync(autoscaleContainerProperties, autoscaleThroughputProperties);
@@ -124,7 +124,7 @@ CosmosAsyncClient client = new CosmosClientBuilder()
124124
.buildAsyncClient();
125125

126126
// Autoscale throughput settings
127-
ThroughputProperties autoscaleThroughputProperties = ThroughputProperties.createAutoscaledThroughput(4000); //Set autoscale max RU/s
127+
ThroughputProperties autoscaleThroughputProperties = ThroughputProperties.createAutoscaledThroughput(1000); //Set autoscale max RU/s
128128

129129
//Create the database with autoscale enabled
130130
CosmosAsyncDatabase database = client.createDatabase(databaseName, autoscaleThroughputProperties).block().getDatabase();
@@ -141,7 +141,7 @@ CosmosClient client = new CosmosClientBuilder()
141141
.buildClient();
142142

143143
// Autoscale throughput settings
144-
ThroughputProperties autoscaleThroughputProperties = ThroughputProperties.createAutoscaledThroughput(4000); //Set autoscale max RU/s
144+
ThroughputProperties autoscaleThroughputProperties = ThroughputProperties.createAutoscaledThroughput(1000); //Set autoscale max RU/s
145145

146146
//Create the database with autoscale enabled
147147
CosmosDatabase database = client.createDatabase(databaseName, autoscaleThroughputProperties).getDatabase();
@@ -159,7 +159,7 @@ CosmosAsyncDatabase database = client.createDatabase("DatabaseName").block().get
159159

160160
// Container and autoscale throughput settings
161161
CosmosContainerProperties autoscaleContainerProperties = new CosmosContainerProperties("ContainerName", "/partitionKey");
162-
ThroughputProperties autoscaleThroughputProperties = ThroughputProperties.createAutoscaledThroughput(4000); //Set autoscale max RU/s
162+
ThroughputProperties autoscaleThroughputProperties = ThroughputProperties.createAutoscaledThroughput(1000); //Set autoscale max RU/s
163163

164164
// Create the container with autoscale enabled
165165
CosmosAsyncContainer container = database.createContainer(autoscaleContainerProperties, autoscaleThroughputProperties, new CosmosContainerRequestOptions())
@@ -175,7 +175,7 @@ CosmosDatabase database = client.createDatabase("DatabaseName").getDatabase();
175175

176176
// Container and autoscale throughput settings
177177
CosmosContainerProperties autoscaleContainerProperties = new CosmosContainerProperties("ContainerName", "/partitionKey");
178-
ThroughputProperties autoscaleThroughputProperties = ThroughputProperties.createAutoscaledThroughput(4000); //Set autoscale max RU/s
178+
ThroughputProperties autoscaleThroughputProperties = ThroughputProperties.createAutoscaledThroughput(1000); //Set autoscale max RU/s
179179

180180
// Create the container with autoscale enabled
181181
CosmosContainer container = database.createContainer(autoscaleContainerProperties, autoscaleThroughputProperties, new CosmosContainerRequestOptions())

articles/cosmos-db/understand-your-bill.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ With Azure Cosmos DB free tier, you'll get the first 1000 RU/s and 25 GB of stor
224224
### Billing example - container with autoscale throughput
225225

226226
> [!TIP]
227-
> When using autoscale, the entry point scale range you can set is 100 - 1000 RU/s. If you want to use autoscale and keep your account completely free, create either one container with this scale range, or a shared throughput database with up to 25 containers inside. The example below illustrates how billing works if you provision throughput higher than the 100 - 1000 RU/s scale range.
227+
> When using autoscale, the entry point scale range you can set is 100 - 1000 RU/s. If you want to use autoscale and keep your free tier account completely free, create either one container with this scale range, or a shared throughput database with up to 25 containers inside. The example below illustrates how billing works if you provision throughput higher than the 100 - 1000 RU/s scale range.
228228
229229
- Let's suppose in a free tier account, we create a container with autoscale enabled, with a maximum RU/s of 4000 RU/s. This resource will automatically scale between 400 RU/s - 4000 RU/s.
230230
- Suppose in hour 1 through hour 10, the resource is scaled to 1000 RU/s. During hour 11, the resource scales up to 1600 RU/s and then back down to 1000 RU/s within the hour.

0 commit comments

Comments
 (0)