Billing
FunctionGraph uses pay-per-use billing, and the price is calculated based on the number of requests and execution duration. There are no minimum charges required.
Total price = Price for requests + Price for execution duration
Common Instance Billing
Price for requests
- You will be billed based on the number of requests, which is the total number of times all functions are invoked.
- The first 1 million requests every month are free of charge.
Price for execution duration
FunctionGraph provides reserved and on-demand instances, which are metered differently.
- Reserved instances: See Reserved Instance Billing.
- On-demand instances: This type of instance is created and released by FunctionGraph, and you will be billed based on the actual execution duration. The execution time is from the time your function code starts to execute to the time when it returns a response or terminates.
Additional charges
Additional charges will be generated if other cloud services are used with FunctionGraph.
Reserved Instance Billing
- If you call an API to create a reserved instance, billing will begin as soon as the reserved instance creation is complete.
- If you call another API to release a reserved instance, new requests will not be routed to the reserved instance. The reserved instance will be released within a certain period, and the billing will stop.
As shown in Figure 1, the billing lasts from T1 to T4.
Reserved instances are metered at a granularity of second. If a reserved instance runs for any fraction of a minute, you will be billed for the full minute. Otherwise, you will be billed based on the actual execution duration.
For example, if a reserved instance runs for 51s, you will be billed for 1 minute. If the reserved instance runs for 61s, you will be billed for 61s.
- The unit of execution duration is GB-second, which means 1 GB per second.
Free Tier
FunctionGraph offers a free tier, which you can share with your IAM users.
- Requests: 1 million free requests every month.
- Execution duration: 400,000 GB-seconds free execution every month. For example, if the memory for a function is 1 GB, the free execution duration every month is 400,000s. If the memory is 512 MB, the free execution duration is 800,000s.
The free tier is reset at the beginning of every calendar month.
Table 1 shows the free execution duration for different memory specifications.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot