overview
In the fast-developing cloud computing era, enterprises need a flexible and accurate billing model to manage and optimise cloud resource expenditure. The platform provides a metering and billing product designed for cloud-native scenarios to help you achieve refined resource management and cost control.
The platform provides general metering and billing capabilities and basic billing methods, supporting metering and billing of CPU, memory, and storage resources within the cluster, and providing statistics, viewing details, and other capabilities.
Description of Billing Methods
| Billing Items | Billing Methods | Billing Rules | Description |
|---|---|---|---|
| CPU | Effective Usage (Core-hours) | Hourly calculation of the greater of avg(usage) and request of the POD in the past hour, multiplied by the actual POD duration in Core (5 minutes if less than 5 minutes) | |
| Memory | Effective Usage (GiB-hours) | Hourly calculation of the greater of avg(usage) and request for the POD in the past hour, multiplied by the actual POD duration in Core (5 minutes if less than 5 minutes) | |
| Storage | Requests(GiB-hours) | The request size of PV requests in the past hour is calculated hourly, multiplied by the actual PV duration in GiB (5 minutes if less than 5 minutes). If a PV is mounted on multiple PODs at the same time, the PV usage will be equally distributed to each POD. |
Other statistical issues that exist are described and will be fixed in a future release:
Description of the billing mechanism
The platform provides the overall metering and billing capabilities of the platform through the BillingServer and BillingClient components:
-
BillingServer: You need to deploy this component in the plug-in management of the global cluster to use the platform’s metering and billing features.
-
Docking Clickhouse, responsible for receiving the data reported by the client and storing it in the Clickhouse database, there is no time limit for data storage.
-
Provides an API for pages to query metered billing data.
-
Provides the ability to modify billing unit configurations and currency unit configurations.
-
NOTE Currency units set by the platform currently affect display only and do not support exchange rate conversions between currency units.
-
-
BillingClient: You need to deploy this component in the Plugin Manager in the details of the cluster where you plan to perform metering billing before the platform can perform metering billing on the resources in that cluster.
-
Interfaces with Prometheus, providing the Exporter to store metered billing Metrics data into Prometheus.
-
Docking BillingServer, every day at 00:30 a.m., the overall summary of all the resources in the cluster on the previous day’s BillingServer data, and reported to the server, after the failure of every two hours will be reported again until the success of the report.
-