Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Billing Examples

Updated on 2025-01-22 GMT+08:00

Scenario 1

You purchased a pay-per-use CCE Autopilot cluster in AP-Bangkok for testing services on the cloud. The detailed operations are as follows:

  1. At 15:30:00 on March 18, 2023, you purchased a CCE Autopilot cluster. The specifications are as follows:
    NOTE:

    For ease of description, assume that all the resources involved were created at the same time. There may be a time difference of several seconds. You can view the actual time on the console.

    • Billing mode: pay-per-use
    • SNAT: enabled
    • Add-ons: CoreDNS and Kubernetes Metrics Server. Two Deployments were automatically created for the add-ons:
      • Deployment for CoreDNS

        Pods: 2

        vCPUs: 1

        Memory: 2 GiB

        Ephemeral storage of a single pod: 30 GiB (free)

      • Deployment for Kubernetes Metrics Server

        Pods: 2

        vCPU: 1

        Memory: 2 GiB

        Ephemeral storage of a single pod: 30 GiB (free)

  2. At 15:36:00 on March 18, 2023, you created a Deployment named nginx. The specifications are as follows:
    • Pods: 2 (one container in each pod)
    • Container image: nginx:latest
      • Container vCPU: 0.5 vCPUs
      • Container memory: 1 GiB
    • Create a LoadBalancer Service. The load balancer details are as follows:
      • Type: dedicated load balancer
      • AZ: single AZ
      • Specifications: network load balancing (TCP/UDP), small I (10 LCUs)
      • EIP type: dynamic BGP
      • EIP bandwidth: 5 Mbit/s, billed by traffic
    • Ephemeral storage of a single pod: 30 GiB (free)
  3. At 09:36:00 on March 19, 2023, you decided to use the cluster for a long time and subscribed to four 1,000 vCPU-hours CPU monthly packages and seven 1000 GiB-hours memory monthly packages (expiration time of all packages: April 19, 2023, 23:59:59).
  4. At 20:36:00 on April 5, 2023, you deleted the LoadBalancer Service for the Deployment.
  5. At 21:06:00 on April 19, 2023, you deleted the cluster and related resources.
Figure 1 Operation timeline

Table 1, Table 2, and Table 3 list the incurred expenditures by resource type.

  • In Table 1, the total expenditures of the cluster are 78.85 + 22.078 + 82.8365 = $183.7645 USD.
  • In Table 2, the total expenditures of the pods are 0.0172 + 0.004 + 3.741+ 0.87 + 155.52 + 29.68 + 2.805 = 192.6372 USD.
  • In Table 3, the total expenditures of the load balancer are 30.4015 + 1.08 = $31.4815 USD.

The total expenditures are $407.8832 USD.

NOTE:

*In pay-per-use billing, the resource usages are billed by the second and the amount due is truncated to the 2nd decimal place. This amount may vary depending on the actual bill.

Table 1 Cluster expenditures

Usage Period

Billing Mode

Billed Duration and Traffic

Billing Factors and Unit Prices

Expenditures*

From 15:30:00 on March 18, 2023 to 08:00:00 on April 20, 2023

Pay-per-use

788.5 hours (33 days, including March 18 and April 20)

5-GB public network traffic

  • Cluster management: $0.1 USD/hour (AP-Bangkok)
  • VPC endpoints:
    • VPC endpoint for API Server: $0.014 USD/hour
    • VPC endpoint for SWR: $0.014 USD/hour
  • SNAT
    • NAT gateway: $2.438 USD/day
    • EIP: $0.005 USD/hour
    • Bandwidth: 0.108 USD/GB
  • Cluster management: 788.5 × 0.1 = $78.85 USD
  • VPC endpoints: 788.5 × 0.028 = $22.078 USD
  • SNAT: 33 × 2.438 + 788.5 × 0.005 + 5 × 0.108 = $82.8365 USD
Table 2 Pod expenditures

Usage Period

Billing Mode

Required Duration

Billing Factors and Unit Prices

Expenditures*

From 15:30:00 on March 18, 2023 to 15:36:00 on March 18, 2023

Pay-per-use

0.1 hours

  • Pods for the add-ons:
    • vCPU: USD 0.043/hour per vCPU
    • Memory: $0.005 USD/hour per GiB
  • vCPU: 0.1 × 4 × 0.043 = $0.0172 USD
  • Memory: 0.1 × 8 × 0.005 = $0.004 USD

From 15:36:00 on March 18, 2023 to 09:00:00 on March 19, 2023

Pay-per-use

17.4 hours

  • Pods for the add-ons and Deployment:
    • vCPU: USD 0.043/hour per vCPU
    • Memory: $0.005 USD/hour per GiB
  • vCPU: 17.4 × (4 × 0.043 + 1 × 0.043) = $3.741 USD
  • Memory: 17.4 × (8 × 0.005 + 2 × 0.005) = $0.87 USD

From 09:00:00 on March 19, 2023 to 13:00:00 on April 17, 2023

vCPU package (4 packages)

Memory package (7 packages)

700 hours

  • Autopilot general-computing 1,000 vCPU-hours CPU monthly package: $38.88 USD/month
  • Autopilot general-computing 1,000 GiB-hours memory monthly package: $4.24 USD/month
  • vCPU package: 4 × 38.88 = $155.52 USD
  • Memory package: 7 × 4.24 = $29.68 USD

From 13:00:00 on April 17, 2023 to 21:06:00 on April 19, 2023

vCPU packages (packages still used but their expenditures already included in the previous period)

Pay-per-use memory (7,000-GiB memory used up)

56.1 hours

  • Pods for the add-ons and Deployment:
    • Memory: $0.005 USD/hour per GiB (The memory in the packages has been used up.)
  • Memory: 56.1 × (8 × 0.005 + 2 × 0.005) = $2.805 USD
Table 3 Load balancer expenditures

Usage Period

Billing Mode

Billed Duration and Traffic

Billing Factors and Unit Prices

Expenditures*

From 15:36:00 on March 18, 2023 to 20:36:00 on April 5, 2023

Pay-per-use

437 hours, 10-GB public network traffic

  • Load balancer: $0.0695 USD/hour
  • Public network traffic: $0.108 USD/GB
  • Load balancer: 437 × 0.0695 = $30.4015 USD
  • Public network traffic: 10 x 0.108 = $1.08 USD

Scenario 2

You deployed a large number of applications in a CCE Autopilot cluster in AP-Bangkok. It was estimated that 12,000 vCPUs and 48,000 GiB of memory were required for one year, so you purchased one Autopilot general-computing 12,000 vCPU-hours CPU yearly package and four Autopilot general-computing 12,000 GiB-hours memory yearly packages in advance. In the middle of the year, it was estimated that 36,000 vCPUs and 57,800 GiB of memory were required for new services. You wanted to know which billing mode was the most cost-effective for the new services.

NOTE:

*In pay-per-use billing, the amount due is truncated to the 2nd decimal place. This amount may vary depending on the actual bill.

  • If the CCE Autopilot cluster is not required after the current year, the combination of pay-per-use billing and packages can help save costs. The following table compares the two billing modes in detail.
    Table 4 Billing mode comparison

    Billing Mode

    Billing Rules

    Expenditures*

    Pay-per-use

    • vCPU: Unit price × Number of vCPUs × Usage duration
    • Memory: Unit price × Memory size × Usage duration
    • vCPU: 30,000 × 0.043 = $1,290 USD
    • Memory: 57,800 × 0.005 = $289 USD

    Total: $1,579 USD

    Packages

    • 3 x Autopilot general-computing 12,000 vCPU-hours CPU yearly package
    • 5 x Autopilot general-computing 12,000 GiB-hours memory yearly package
    • vCPU: 3 × 388.8 = $1,166.4 USD
    • Memory: 5 × 42.44 = $212.2 USD

    Total: $1,378.6 USD

    Pay-per-use and packages

    • vCPU: 3 × Autopilot general-computing 12,000 vCPU-hours CPU yearly package
    • Memory: 4 × Autopilot general-computing 12,000 GiB-hours memory yearly package + 7 × Autopilot general-computing 1,000 GiB-hours memory monthly package + 800 GiB-hour pay-per-use memory
    • vCPU: 3 × 388.8 = $1,166.4 USD
    • Memory: 4 × 42.44 + 7 × 4.24 + 800 × 0.005 = $203.44 USD

    Total: $1369.84 USD

  • Assume that you want to use the CCE Autopilot cluster in the next year and about 80,000 to 100,000 vCPU-hours and 110,000 to 150,000 GiB-hours are required from the middle of the current year to the next year.
    • For vCPUs, you can purchase Autopilot general-computing 12,000 vCPU yearly packages in batches to prolong the validity period of packages and avoid waste. You can also flexibly adjust the package specifications based on the vCPU usage. For example, if the vCPU usage increases sharply in the next year, you can purchase a 120,000 vCPU-hours CPU yearly package.
    • For memory, you are advised to purchase an Autopilot general-computing 120,000 GiB-hours memory yearly package and configure a usage alert by referring to Configuring Package Usage Alerts so that you adjust the quota based on the subsequent usage when the package is about to run out.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback