Function Compute supports the subscription billing method. You can purchase a GB subscription with a specified lifecycle. Within the lifecycle, the resources consumed by function execution are deducted from your GB subscription each second. If you purchase a GB subscription, you can obtain the same resources at a lower cost.
What is a GB subscription?
A GB subscription, during its lifecycle, can be used to deduct the resources that function instances use for function execution each second.
- Unit: GB, one GB covers 1 GB of resource usage per second.
- Resource deduction type: constant. Unless the GB subscription is upgraded, its resources per second for resource deduction remain constant regardless of consumption. In essence, a GB subscription is similar to a bandwidth plan, not to a data transfer plan.
- Resources to be deducted: Resources used by both reserved and pay-as-you-go instances can be deducted from a GB subscription.
- A maximum of 1,000 GB can be purchased in a single order.
- All orders in a region can have a maximum of 1,000 GB in total. If you want to increase this limit, submit a ticket.
Note You can increase the maximum number of GBs in a region, but not that of your per-order GBs. To purchase more GBs, you can place multiple orders.
- Your GB subscription can be used only in the region that is specified when you purchase the GB subscription.
Purchase a GB subscription
- New purchase: You can purchase a GB subscription in a region and specify the subscription lifecycle. For more information, see Manage new purchases.
- Upgrade: You can upgrade the GB subscription for a specified instance so that more resources can be covered in a unit of time. For more information, see Manage upgrades.
- Renewal: You can extend the lifecycle of a specified GB subscription. For more information,
see Manage renewals.
- Manual renewal: You can manually renew a GB subscription.
- Auto-renewal: You can enable auto-renewal to automatically trigger a renewal request before the lifecycle of the GB subscription ends.
- An order is generated for each new purchase, renewal, and upgrade. Each order has a globally unique ID.
- A unique instance ID is generated for each new purchase. This ID is used throughout the order lifecycle for all subsequent operations, such as renewals and upgrades.
In this example, the total number of GBs for all function instances on the account and the amount deducted from the resource quota are calculated for each second.
- In second 1, instance 1 consumed 20 GB-s (40 GB × 0.5 seconds).
- In second 2, instance 1 and instance 2 consume a total of 50 GB-s (40 GB × 0.75 seconds + 20 GB × 1 second).
- In second 3, instance 2 and instance 3 consumed 30 GB-s (20 GB × 1 second + 10 GB × 1 second).
- In second 4, instance 2 consumed 20 GB-s (20 GB × 1 second).
|Time window||Actual resource consumption (GB-s)||All subscription resources (GB-s)||Additionally billed resources (GB-s)|