Sustained use discounts are automatic discounts for running specific Compute Engine resources a significant portion of the billing month. Sustained use discounts apply to the following resources:
- The vCPUs and memory for general-purpose custom and predefined machine types
- The vCPUs and memory for memory-optimized machine types
- The vCPUs and memory for compute-optimized machine types
- The vCPUs and memory for sole-tenant nodes
- The 10% premium cost for sole-tenant nodes, even if the vCPUs and memory in those nodes are covered by committed use discounts
- GPU devices
For example, when you run one of these resources for more than 25% of a month, Compute Engine automatically gives you a discount for every incremental minute you use for that instance.
- For general-purpose N1 predefined and custom machine types, sole-tenant nodes (vCPUs, memory, and premium cost), and GPUs, you can get a discount of up to 30%.
- For general-purpose N2 predefined and custom machine types, and for compute-optimized machine types, you can receive a discount of up to 20%.
Sustained use discounts are applied automatically to usage within a project separately for each region, so there is no action required on your part to enable these discounts.
Sustained use discounts automatically apply to VMs created by both Google Kubernetes Engine and Google Compute Engine. Sustained use discounts do not apply to VMs created using App Engine Flexible Environment and Cloud Dataflow.
Sustained use discounts at different usage levels
To take advantage of the full discount, create your VM instances on the first day of the month. Discounts reset at the beginning of each month.
The following tables describe the discount you get at each usage level of a VM instance. These discounts apply for all machine types but do not apply to preemptible instances.
Sustained use discounts for up to 30%
For general-purpose N1 predefined and custom machine types, sole-tenant nodes (vCPUs, memory, and premium cost), and GPUs, you can get a discount of up to 30%.
|Resource||Usage Level (% of month)||% at which incremental is charged||Incremental rate (USD/hour) for an
|0%–25%||100% of base rate||$0.0475|
|25%–50%||80% of base rate||$0.0380|
|50%–75%||60% of base rate||$0.0285|
|75%–100%||40% of base rate||$0.0190|
Sustained use discounts for up to 20%
For general-purpose N2 predefined and custom machine types, and for compute-optimized machine types, you can receive a discount of up to 20%.
|Resource||Usage level (% of the month)||% at which incremental is charged||Incremental rate (USD/hour) for
|0%–25%||100% of base rate||$0.2088|
|25%–50%||86.78% of base rate||$0.1811|
|50%–75%||73.3% of base rate||$0.1530|
|75%–100%||60% of base rate||$0.1252|
Sustained use discounts are applied on incremental use after you reach certain usage thresholds. This means that you pay only for the number of minutes that you use an instance, and Compute Engine automatically gives you the best price. There’s no reason to run an instance for longer than you need it.
The following graph shows how your effective discount increases with use, up to 30%:
For example, if you use a virtual machine for 50% of the month, you get an effective discount of 10%. If you use it for 75% of the month, you get an effective discount of 20%. If you use it for 100% of the month, you get an effective discount of 30%. You can also use the Google Cloud Platform Pricing Calculator to estimate your sustained use discount for any arbitrary workload.
Applying sustained use discounts
Compute Engine automatically calculates and applies sustained use discounts based on vCPU and memory usage across each region and separately for each machine type. Discounts are applied as described in the sustained usage discount table. For sole-tenant nodes, sustained use discounts apply to the 10% sole-tenant premium costs as well as the base price for the vCPU and memory resources that your nodes occupy.
Sustained use discounts are calculated separately for each of the following categories:
- General-purpose predefined vCPUs and memory,
which are used in
n1-highmemmachine types as well as sole-tenant nodes.
- Custom vCPUs and memory, which are used in the N1 custom machine types that allow you to select a specific number of vCPUs and memory.
- Memory-optimized vCPUs and memory, for predefined memory-optimized machine types with a high ratio of memory for each vCPU.
- Compute-optimized vCPUs and memory,
which are used in
c2-standardmachine types that have a preset amount of memory and vCPUs, with a high ratio of vCPUs to memory.
- Shared-core machine types, which use partial vCPUs and are cost-effective for running small, non-resource intensive applications. Shared-core machine types are still billed as a single unit rather than as separate vCPU and memory resources.
Consider a scenario where you have two instances or sole-tenant nodes in the same region that have different machine types and run at different times of the month. Compute Engine breaks down the number of vCPUs and amount of memory used across all instances that use predefined machine types and combines the resources to qualify for the largest sustained usage discounts possible.
Assume you run the following two instances in the
us-central1 region during
- For the first half of the month, you run an
n1-standard-4instance with 4 vCPUs and 15 GB of memory
- For the second half of the month, you run a larger
n1-standard-16instance with 16 vCPUs and 60 GB of memory
In this scenario, Compute Engine reorganizes these machine types into individual vCPU and memory resources and combines their usage to create the following resources:
- 4 vCPUs for a full month
- 12 vCPUs for half of the month
- 15 GB of memory for a full month
- 45 GB of memory for half of the month
For example, you can see how the sustained use discounts apply to the vCPUs for this scenario:
The monthly bill for these resources would be calculated using the following formulas:
(4 vCPUs x $0.031611 x 730 hours) x 0.7 for the 30% full-month discount = $64.612884
(12 vCPUs x $0.031611 x 365 hours) x 0.9 for the 10% half-month discount = $124.610562
(15 GB x $0.004237 x 730 hours) x 0.7 for the 30% full-month discount = $32.476605
(45 GB x $0.004237 x 365 hours) x 0.9 for the 10% half-month discount = $62.6334525The total monthly cost of the combined resources is $284.3335035.
Compare this total to the previous way that sustained use discounts would have been calculated for these same predefined machine types. For example, you can see how the vCPUs are billed when they are inferred by machine type rather than combined by resource types:
(1 n1-standard-4 machine x $0.1900 x 365 hours) x 0.9 for the 10% half-month discount = $62.415
(1 n1-standard-16 machine x $0.7600 x 365 hours) x 0.9 for the 10% half-month discount = $249.66The two instances are not inferred because they are different machine types, so their total monthly cost is $312.075. With the new pricing changes, you save an additional $27.7414965 in this usage scenario. This same process applies separately to the resources for custom machine types.
Sustained use discounts for GPUs
For GPU devices, Compute Engine calculates sustained use discounts based on the number of a GPU model that you have attached to running VM instances during the month. You can receive sustained use discounts only on GPUs of the same model. Sustained use discounts for GPUs are calculated separately from instance machine type, vCPU, and memory discounts.
For example, consider a scenario where you have two instances with different numbers of GPUs that run at different non-overlapping times of the month. Compute Engine breaks down the number of GPUs used across all instances and combines them to qualify for the biggest sustained usage discounts possible.
If you run one instance with 1 GPU for the first half of the month, and then run another instance with 4 GPUs for the second half of the month, Compute Engine calculates discounts for these GPUs as if you had used 1 GPU for a whole month and 3 remaining GPUs for half of the month. Compute Engine applies the following sustained use discounts:
- A 30% discount off the cost of using 1 GPU for a full month
- A 10% discount off the cost of using the remaining 3 GPUs because you used each resource for half of the month
Viewing sustained use discounts
Sustained use discounts automatically appear on your bill at the end of the billing cycle. Sustained use discounts are a separate line item combining all discounts of all machine types on a per project basis.
On your bill, there's a line item of total sustained discounts for each project, and a line item for costs related to VM instances. You can view this discount in the Google Cloud Platform Console billing history.
Sustained use discounts and Always Free usage quotas
Google Cloud Platform offers always free usage limits that provide free use of one f1-micro instance equivalent to the number of total hours within the current month. This is enough to run one instance without interruption for the entire month. You cannot receive sustained use discounts for use of the free tier instance.