faas_billing
Billing Document for FAAS Function Usage
1. Billing of Functions runs on CPU Hardware:
We do billing of functions runs on CPU hardware in the basis of slabs.
- Slab 0 - Minimum Billing for CPU functions
In slab 0, A one-time activation charge of ₹405 (exclusive of GST) will be applied when the function is activated or initiated. This activation fee is a fixed cost, irrespective of usage, and is billed upfront.The first 4,50,000 GB-seconds of usage are included at no additional cost. This means that the function can run for up to 4,50,000 GB-seconds on the CPU hardware without incurring any extra charges.
- Slab 1 - Usage-Based Billing
In Slab 1, additional usage beyond the 4,50,000 GB-seconds will be billed based on the actual usage and the number of replicas used for the dedicated function. Charges will be calculated accordingly. If the function exceeds 4,50,000 GB-seconds, the next billing tier (Slab 1) will apply, where usage beyond the included amount will be billed according to the actual usage.
Pricing Overview for CPU Functions
For each 1 GB-second of memory consumed by your CPU functions, a charge of ₹0.0009 will apply.
Pricing of dedicated replica
For each 1 GB-second of memory used by your CPU function replicas, a charge of ₹0.0002 will be applied.
2. Billing of functions runs on GPU Hardware:
Usage-Based Billing: Charges for functions running on GPU hardware are based exclusively on the total number of GB-seconds consumed.
Pricing Overview for GPU Functions
For each 1 GB-second of memory consumed by your GPU functions, a charge of ₹0.009 will apply.
Example-
The customer has created two functions: one for CPU compute and another for GPU compute, both running from January 1st to January 20th, 2024. Additionally, from January 5th to January 10th, the customer enabled 3 replicas for the CPU function. Each function is allocated 1024 MB of memory and receives approximately 46,000 invocations, with each invocation taking about 10 seconds to execute. The billing for these functions will be based on these parameters.
- CPU Function Usage:
Invocation Usage = Number of Invocation * Memory (mb) * Invocation time (seconds) / 1024
= 460000 * 1024 * 10 /1024
= 4600000 GB-second usage
As 460000 GB-second is in Slab 1 which consist of fixed charge that is ₹405.
Remaining Usage = 460000 - 450000
= 10000 GB-second
After that per GB-second on CPU compute uses 0.0009 / GB-second.
Remaining Charges = Remaining Usage * Unit price
= 10000 * 0.0009
= ₹9
Final Usage Charges = 405 +9 = ₹414
Now, for dedicated replica count is 3 duration is from 5 jan to 10 jan , 5 days
No of seconds = 5 * 24 * 60 * 60
= 432000 seconds
Replica usage = Number of replica * Memory * total second replica enabled / 1024
= 3 * 1024 * 432000 /1024
= 1296000 GB-second
Replica Price = Unit GB-second price * Usage
= 0.0002 * 1296000
= ₹259.2
Final cost for CPU compute = Usage cost + Replica cost
= ₹414 + ₹259.2
= ₹673.2
2. GPU function Usage
Invocation Usage = Number of Invocation * memory * time / 1024
= 460000 * 1024 * 10 / 1024
= 460000 GB-second
GPU function cost = 460000 * 0.009
= ₹4140
Now final price will be = CPU compute + GPU Compute
= ₹673.2 + ₹4140
= ₹4813.2