Skip to content

Commit

Permalink
Added changes for throughput bucketing (#31082)
Browse files Browse the repository at this point in the history
  • Loading branch information
Achint-Agrawal authored Oct 17, 2024
1 parent 5ca9b95 commit d074645
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9736,6 +9736,13 @@
"type": "string",
"description": "The maximum throughput value or the maximum maxThroughput value (for autoscale) that can be specified",
"readOnly": true
},
"throughputBuckets": {
"type": "array",
"description": "Array of Throughput Bucket limits to be applied to the Cosmos DB container",
"items": {
"$ref": "#/definitions/ThroughputBucketResource"
}
}
}
},
Expand Down Expand Up @@ -9785,6 +9792,24 @@
}
}
},
"ThroughputBucketResource": {
"type": "object",
"description": "Cosmos DB throughput bucket object",
"properties": {
"id": {
"type": "integer",
"description": "Represents the throughput bucket id"
},
"maxThroughputPercentage": {
"type": "integer",
"description": "Represents maximum percentage throughput that can be used by the bucket"
}
},
"required": [
"id",
"maxThroughputPercentage"
]
},
"OptionsResource": {
"type": "object",
"description": "Cosmos DB options resource object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,28 @@
"offerReplacePending": "true",
"instantMaximumThroughput": "10000",
"softAllowedMaximumThroughput": "1000000",
"throughputBuckets": [
{
"id": 1,
"maxThroughputPercentage": 10
},
{
"id": 2,
"maxThroughputPercentage": 5
},
{
"id": 3,
"maxThroughputPercentage": 15
},
{
"id": 4,
"maxThroughputPercentage": 10
},
{
"id": 5,
"maxThroughputPercentage": 20
}
],
"_rid": "PD5DALigDgw=",
"_ts": 1459200611,
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,28 @@
"throughput": 400,
"minimumThroughput": "400",
"offerReplacePending": "true",
"throughputBuckets": [
{
"id": 1,
"maxThroughputPercentage": 10
},
{
"id": 2,
"maxThroughputPercentage": 5
},
{
"id": 3,
"maxThroughputPercentage": 15
},
{
"id": 4,
"maxThroughputPercentage": 10
},
{
"id": 5,
"maxThroughputPercentage": 20
}
],
"_rid": "PD5DALigDgw=",
"_ts": 1459200611,
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
Expand Down

0 comments on commit d074645

Please sign in to comment.