Skip to content

Commit c7de2e2

Browse files
authored
Merge pull request #76882 from Mike-Ubezzi-MSFT/patch-10
Update to Billing detail + table
2 parents 6adc832 + cbcd296 commit c7de2e2

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

articles/sql-database/sql-database-serverless.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -271,19 +271,21 @@ The amount of compute billed is exposed by the following metric:
271271

272272
This quantity is calculated each second and aggregated over 1 minute.
273273

274-
**Example**: Consider a database using GP_S_Gen5_4 with the following usage over a one hour period:
274+
Consider a serverless database configured with 1 min vcore and 4 max vcores.  This corresponds to around 3 GB min memory and 12 GB max memory.  Suppose the auto-pause delay is set to 6 hours and the database workload is active during the first 2 hours of a 24 hour period and otherwise inactive.    
275275

276-
|Time (hours:minutes)|app_cpu_billed (vCore seconds)|
277-
|---|---|
278-
|0:01|63|
279-
|0:02|123|
280-
|0:03|95|
281-
|0:04|54|
282-
|0:05|41|
283-
|0:06 - 1:00|1255|
284-
||Total: 1631|
285-
286-
Suppose the compute unit price is $0.000073/vCore/second. Then the compute billed for this one hour period is determined using the following formula: **$0.000073/vCore/second * 1631 vCore seconds = $0.1191**
276+
In this case, the database is billed for compute and storage during the first 8 hours.  Even though the database is inactive starting after the 2nd hour, it is still billed for compute in the subsequent 6 hours based on the minimum compute provisioned while the database is online.  Only storage is billed during the remainder of the 24 hour period while the database is paused.
277+
278+
More precisely, the compute bill in this example is calculated as follows:
279+
280+
|Time Interval|vCores used each second|GB used each second|Compute dimension billed|vCore seconds billed over time interval|
281+
|---|---|---|---|---|
282+
|0:00-1:00|4|9|vCores used|4 vCores * 3600 seconds = 14400 vCore seconds|
283+
|1:00-2:00|1|12|Memory used|12Gb * 1/3 * 3600 seconds = 14400 vCore seconds|
284+
|2:00-8:00|0|0|Min memory provisioned|3Gb * 1/3 * 21600 seconds = 21600 vCore seconds|
285+
|8:00-24:00|0|0|No compute billed while paused|0 vCore seconds|
286+
|Total vCore seconds billed over 24 hours||||50400 vCore seconds|
287+
288+
Suppose the compute unit price is $0.000073/vCore/second.  Then the compute billed for this 24 hour period is the product of the compute unit price and vcore seconds billed: $0.000073/vCore/second * 50400 vCore seconds = $3.68
287289

288290
## Available regions
289291

0 commit comments

Comments
 (0)