HUAWEI CLOUD Services, Infrastructure, and Architecture Study Guide

Public Cloud Overview and HUAWEI CLOUD Fundamentals

  • HUAWEI CLOUD Ecosystem & Global Market Footprint:

    • Officially launched in 2017, leveraging 30 years of ICT technical accumulation and solutions.

    • Ranks top 5 in the global IaaS market, second in China, third in Thailand, and fourth in emerging Asia-Pacific (according to Gartner 2021 IT Services report released April 2022).

    • Features over 240 cloud services, 210+ solutions, 78,000+ APIs, 41,000+ global partners, and 4+ million developers.

    • Deployed across 33 regions operating 93 Availability Zones (AZs) globally (covering Asia Pacific, Latin America, Africa, Europe, and the Middle East).

    • Marketplace features over 10,000 offerings, generating over 1 billion RMB in annual transactions.

    • In China: Serves 800+ e-Government clouds ("one city, one cloud" in 150+ cities), 300+ financial customers (6 major banks, 12 joint-stock commercial banks, top 5 insurance firms), 85% of top 50 game enterprises, 90% of top 30 automakers, 90% of top 50 e-commerce companies, and 30+ smart airports.

  • Strategic Service Pillars ("Everything as a Service"):

    • Infrastructure as a Service (IaaS): Building a single global network for storage and computing to enable accessible global services.

    • Technology as a Service (TaaS / tPaaS): Translating internal R&D capabilities into accessible cloud tools across four major production lines:

    • MetaStudio: Digital content development line for 3D creation, asset management, content editing, and cloud rendering via graphics and space media engines.

    • DataArts Studio: Data governance production line for batch, stream, and interactive data integration.

    • CodeArts: One-stop end-to-end secure software development production line.

    • ModelArts: AI development production line managing full-cycle AI workflows.

    • Experience as a Service (aPaaS): Replicating industry expertise into open platforms:

    • Basic aPaaS Services:

      • KooMessage: Integrates multi-channel communication (5G messages, PUSH, service numbers, intelligent info) for growth and service delivery.

      • KooMap: Satellite image processing service providing global space-time information processing, analysis, and visualization.

      • KooPhone: Cloud mobile phone service powered by Kunpeng ARM servers, audio/video codec, and real-time transmission. Provisions tens of thousands of instances in minutes.

      • KooSearch: Fully managed enterprise search engine with industry word segmentation, semantic understanding, and enterprise-grade permission controls.

      • Exchange Data Space (EDS): Data exchange platform enforcing 21 usage control policies (e.g., validity period, view limits, download limits) to protect enterprise data sovereignty.

    • Industry aPaaS: Tailored engines for Coal Mine, e-Government, Power, Highway, Airport & Orbital, and Industrial Data Management.

  • Account Systems and Identity & Access Management (IAM):

    • Account Types:

    • Account: Created upon registration on HUAWEI CLOUD or Huawei services (HUAWEI ID). Holds root permissions, owns all cloud resources, and handles billing.

    • IAM User: Created by the main account administrator within IAM. Used for granular delegate access; IAM users do not own resources and cannot perform direct bill payments.

Account and IAM User Relationship
  • User Groups & Permissions:

    • User Groups: Collections of IAM users assigned uniform permissions. Users inherit permissions from all groups they belong to. The default admin group possesses full operational privileges.

    • Roles: Coarse-grained authorization assigning service-level permissions based on job functions.

    • Policies: Fine-grained authorization defining precise operations, conditions, and resources. Includes system-defined (read-only/full access) and custom policies (created visually or via JSON).

  • Agencies: Trust relationships established between accounts (Account Delegation) or between cloud services (Cloud Service Delegation) allowing operational management without sharing account credentials.

Create Agency Interface
  • Federated Access: Establishes single sign-on (SSO) integration between enterprise Identity Providers (IdP) and HUAWEI CLOUD IAM using SAML/OAuth standards.

Federated Access and Identity Provider SSO Diagram
  • Cloud Platform Security & Governance:

    • Holds 100+ global security compliance certifications, including ISO 27001, ISO 27017, CSA STAR Gold, PCI DSS, NIST CSF, and China MLPS Level 3/4.

    • Privacy compliance includes ISO 27018, ISO 27701, BS 10012, ISO 29151, and ISO 27799.

    • 3CS System: Cloud Service Cybersecurity & Compliance Standard for end-to-end lifecycle security governance.

    • DevSecOps Integration: Embeds Security Development Lifecycle (SDL) directly into agile DevOps continuous integration and deployment pipelines.

Compute Cloud Services

  • Elastic Cloud Server (ECS):

    • Overview: The primary virtual computing unit consisting of vCPUs, memory, Operating System (OS), network interface cards (NICs), and Elastic Volume Service (EVS) storage disks.

ECS Architecture Overview
  • Core Architectural Advantages:

    • Scalability: Dynamic scaling via Auto Scaling (AS) integration; flexible modification of vCPU, memory, and bandwidth.

    • Reliability: High-durability virtual block storage utilizing distributed architectures; integrated with Cloud Backup and Recovery (CBR).

    • Security: Isolated via Virtual Private Cloud (VPC) subnets, Security Groups, and security enhancements (Anti-DDoS, WAF, HSS).

  • Configuration Parameters & Specifications:

    • Billing Modes: Yearly/Monthly (prepaid, cost-effective long-term), Pay-per-use (postpaid, flexible short-term), Spot Price (market-driven bidding, fluctuates with demand).

    • Regions vs. AZs: Regions are geographically isolated data center clusters (intra-region latency 1 ms−10 ms1\text{ ms} - 10\text{ ms}, network latency to nearest region ≤100 ms\le 100\text{ ms}). Availability Zones (AZs) are physically isolated facilities within a region equipped with independent power and cooling (inter-AZ latency <1 ms< 1\text{ ms}, physical distance 30 km−200 km30\text{ km} - 200\text{ km}).

    • CPU Architecture: x86 (Complex Instruction Set Computer / CISC, e.g., Intel, AMD) vs. Kunpeng (Reduced Instruction Set Computer / RISC, e.g., ARM).

    • Flavor Naming Convention: Expressed as AB.C.D (e.g., s2.medium.4): A = Family type (s = general-computing, c = general computing-plus, m = memory-optimized, prefix k = Kunpeng); B = Generation; C = Size (medium, xlarge, 2xlarge, etc.); D = Memory-to-vCPU ratio.

  • Management & Operational Workflows:

    • Access Methods: Web Console, HTTPS REST APIs, and native SDKs.

    • Linux Login: VNC, SSH Password (requires EIP), SSH Key Pair (requires EIP).

    • Windows Login: VNC, RDP file download, MSTSC (requires EIP).

    • OS Reinstallation & Modification: Reinstalling retains the original image; changing OS assigns a new system disk ID and wipes the existing system disk.

ECS OS Reinstall and Modification Menu
* *Password Reset:* Requires pre-installed one-click password reset agents (`CloudResetPwdAgent` and `CloudResetPwdUpdateAgent`).
Reset Password Dialog Window
* *ECS Group:* Logical grouping enforcing anti-affinity policies to guarantee that specified ECS instances are hosted on separate physical hypervisors.
  • Flavor Families & Scenarios:

    • General-computing (s family): Balanced vCPU/memory ratio. Ideal for lightweight web servers, small databases, and dev/test environments.

    • General computing-plus (c family): Dedicated vCPUs paired with DPDK network acceleration engines. Suited for enterprise web applications and medium workloads.

    • Memory-optimized (m family): High memory-to-vCPU ratio paired with ultra-high I/O storage. Ideal for e-commerce platforms, in-memory databases, and big data analytics.

    • Image Management Service (IMS):

  • Overview: Provides full lifecycle management of server and disk templates used for rapid instance provisioning and workload migration.

IMS Image Management Service Overview
  • Image Categories:

    • Public Image: Standard OS templates provided by the platform (EulerOS, CentOS, Ubuntu, Windows Server, Debian).

    • Private Image: User-created images restricted to the owner account. Types include System Disk Images, Data Disk Images, Full-ECS Images (OS + data disks), and ISO Images.

Private Image Creation Workflow Tree
* *Shared Image:* Private images explicitly shared with other accounts.
* *Marketplace Image:* Third-party pre-configured image packages published by software vendors.
  • Core Operations:

    • Image Attribute Modification: Name, description, minimum/maximum memory, NIC multi-queue, boot mode (BIOS/UEFI), SR-IOV drivers.

    • Replication & Export: Supports in-region replication, cross-region replication, and export to Object Storage Service (OBS) buckets in formats including VMDK, VHD, QCOW2, RAW, VHDX, QED, VDI, QCOW, ZVHD2, and ZVHD.

    • Encryption: Enforces envelope encryption using Key Management Service (KMS). Encrypted system disks generate encrypted private images.

IMS Image Encryption Configuration Options
  • Auto Scaling (AS):

    • Overview: Automatically adjusts compute instances and bandwidth allocation according to defined policies and workload fluctuations.

    • Core Components:

    • AS Group: The target collection of instances sharing identical scaling scenarios. Defines minimum, maximum, and expected instance numbers, along with multi-AZ extension policies (load-balanced or sequenced).

    • AS Configuration: The template defining instance specifications (flavor, image, EVS disk size, key pair/password, security groups).

    • AS Policy: Triggers scaling actions. Types include Alarm-based (monitored metrics via Cloud Eye like CPU/memory utilization), Scheduled (specific timestamp), and Periodic (repeating intervals).

    • Cooldown Period: A guard period following a scaling action during which subsequent alarm-triggered actions are suppressed to prevent over-provisioning.

    • ELB Integration: Automatically binds newly created scaling instances to Elastic Load Balancers and unbinds instances during scale-in operations.

  • Bare Metal Server (BMS):

    • Overview: Dedicated physical servers provisioned on-demand, combining the performance and isolation of physical hardware with the agility and management features of cloud servers.

BMS Service Architecture
  • Architectural Highlights & Features:

    • Powered by the QingTian architecture, enabling hardware-offloaded virtualization with zero CPU/memory performance overhead.

    • Boots directly from high-performance EVS system disks, allowing provisioning within minutes.

    • Fully integrated with VPC networks, security groups, CBR backups, and EVS/DSS/DESS storage.

  • Comparison Matrix:

Characteristic

Bare Metal Server (BMS)

Elastic Cloud Server (ECS)

Traditional Physical Server

Physical Resources

Dedicated

Shared hypervisor

Dedicated

Performance Overhead

Zero (No virtualization loss)

Minor hypervisor overhead

Zero

Provisioning Speed

Flexible (Minutes)

Flexible (Minutes)

Inflexible (Days/Weeks)

Cloud Capabilities

Native (VPC, EVS, O&M, APIs)

Native (VPC, EVS, O&M, APIs)

None (Manual/Legacy)

Target Use Cases

Core databases, HPC, AI

General web apps, microservices

Legacy non-cloudable systems

  • Key Deployment Scenarios: Core enterprise databases (Oracle, MySQL clusters), High-Performance Computing (HPC with 100 Gbit/s EDR InfiniBand NICs), and high-density container hosts.

    • Cloud Container Engine (CCE):

  • Overview: Enterprise-grade Kubernetes service for managing containerized applications at scale.

  • Container & Orchestration Fundamentals:

    • Docker: Uses Linux kernel namespaces (for process/network isolation) and cgroups (for resource limiting) to package applications and dependencies into lightweight, portable images.

    • Kubernetes (K8s): Cluster orchestration system managing master nodes (control plane) and worker nodes running containerized workloads.

  • CCE Architecture & Features:

CCE Kubernetes Cluster Architecture
* *High Availability:* Deploys 3 master nodes across multiple AZs to remove single points of failure (SPOFs).
* *Performance:* Supports NUMA-aware bare-metal nodes and InfiniBand networking for high throughput.
* *Compatibility:* 100% compatible with native Kubernetes APIs, `kubectl`, Helm charts, and Application Service Mesh (ASM).
* *Scaling:* Rapid container provisioning with second-level pod auto-scaling integrated with Application Operations Management (AOM).
  • Other Compute Services:

    • Cloud Phone Service (CPH):

    • Virtualizes native Android instances from ARM-based Kunpeng BMS servers (up to 60 virtual mobile phone instances per physical server).

CPH Cloud Phone Server Architecture
* *Use Cases:* Mobile cloud gaming, secure corporate mobile workspaces (data remains on cloud), app testing automation, and live stream interaction.
  • Dedicated Host (DeH):

    • Provides physically dedicated host hardware exclusively for a single tenant, ensuring physical isolation and support for Bring Your Own License (BYOL) scenarios based on socket/core counts.

DeH Multi-Tenant vs Single-Tenant Environment
  • FunctionGraph:

    • Serverless, event-driven compute engine executing code in response to events (OBS uploads, DIS streams, APIG calls) without server management. Charges strictly for execution duration and resource consumption.

Network Cloud Services

  • Virtual Private Cloud (VPC):

    • Overview: Provisioning logically isolated, custom virtual networks built using encapsulation and tunneling technologies.

VPC Full Architecture Diagram
  • Core Components & CIDR Allocation:

    • Private CIDR Blocks: RFC 1918 private ranges (10.0.0.0/8 - 24, 172.16.0.0/12 - 24, 192.168.0.0/16 - 24).

    • Subnets: CIDR subdivisions residing inside a VPC. Configured with DHCP by default to assign internal private IP addresses to hosted instances.

    • Route Tables: Contains sets of routes dictating traffic egress. Automatically includes a default local route table; custom route tables can be associated with specific subnets.

  • Security & Access Control Elements:

    • Security Group: Stateful virtual firewall operating at the instance/NIC level. Evaluates inbound and outbound traffic rules. Default group allows all outbound traffic, denies inbound traffic, and allows intra-group communication.

    • Network ACL: Stateless security layer filtering traffic entering and exiting entire subnets. Supports explicit ALLOW and DENY rules evaluated by priority.

  • Advanced Networking Components:

    • VPC Peering Connection: Establishes private IP routing between two VPCs located within the same region.

    • Virtual IP (VIP): Private IP address shareable among multiple instances for active/standby high availability (e.g., using Keepalived or LVS routers).

Virtual IP Keepalived Active/Standby Setup
* *Elastic Network Interface (ENI / Elastic NIC):* Virtual network cards. Primary NICs cannot be detached; secondary extension NICs can be created, attached, and detached dynamically.
* *IP Address Group:* Grouped sets of IP addresses/CIDRs shareable across multiple security groups and Network ACL rules.
  • VPC vs. Traditional IDC:

Feature

Virtual Private Cloud (VPC)

Traditional On-Premises IDC

Deployment Cycle

Minutes (Self-service via console/API)

Weeks/Months (Cabling, hardware acquisition)

Total Cost (TCO)

Low (Pay-per-use, zero hardware/maintenance fee)

High (Upfront CAPEX, facilities, power, staff)

Flexibility

Dynamic real-time resource adjustment

Fixed network topology; rigid changes

Security

Multi-layer (Security Groups, ACLs, AAD)

Requires manual appliance setup and maintenance

  • Elastic IP (EIP):

    • Static public IPv4 address associated with dynamic public egress bandwidth. Can be dynamically bound/unbound from ECS, BMS, VIP, NAT Gateway, or ELB instances.

    • EIP Service Types:

Metric

Static BGP

Dynamic BGP

Preferred / Premium BGP

Routing Mechanism

Static routes configured manually

Real-time optimal path selection across carriers

Low-latency lines directly connecting HK & Mainland

SLA Availability

99.00%

99.95%

99.95%

Failover Capability

Manual reconfiguration required

Automatic instant failover

Automatic instant failover + lowest latency

  • Elastic Load Balance (ELB):

    • Overview: Automatically distributes inbound network traffic across target pools of healthy backend servers.

ELB Traffic Distribution Overview
  • Architecture & Components:

    • Load Balancers: Shared (cluster-shared resources) or Dedicated (isolated dedicated resources handling up to 20 million concurrent connections per AZ and 100 million per cluster).

    • Listeners: Inspects requests on specified ports/protocols (Layer 4 TCP/UDP, Layer 7 HTTP/HTTPS).

    • Backend Server Groups: Pools of servers receiving routed traffic. Configured with specific load balancing algorithms and health check monitors.

  • Routing Algorithms:

    • Weighted Round Robin: Distributes requests sequentially based on assigned server weights (0−1000 - 100).

    • Weighted Least Connections: Routes new traffic to the server with the lowest connection overhead (Overhead=Active ConnectionsWeight\text{Overhead} = \frac{\text{Active Connections}}{\text{Weight}}).

    • Source IP Hash: Hashes client source IPs to ensure requests from an IP consistently hit the same backend server.

    • Connection ID: Routes traffic based on connection ID attributes (supported on dedicated load balancers).

  • Health Check Mechanisms: Periodically probes backend servers via TCP handshakes, HTTP GET requests (verifying HTTP status codes), or UDP probes. Removes unhealthy instances from routing tables until recovery.

    • Virtual Private Network (VPN):

  • Overview: Establishes an IPsec-encrypted communications tunnel over the public Internet between a VPC and an on-premises data center or another VPC.

VPN Encrypted Tunnel Connection
  • Key Components:

    • VPN Gateway: Egress gateway provisioned in a VPC associated with EIPs (available in Active-Active or Active/Standby cross-AZ configurations).

    • Customer Gateway: Logical representation of the remote physical on-premises VPN device/router.

    • VPN Connection: The encrypted IPsec tunnel established using IKE/IPsec protocols and Pre-Shared Keys (PSK).

    • NAT Gateway:

  • Public NAT Gateway: Translates private IP addresses within a VPC subnet to an EIP for Internet access or external service exposure. Supports up to 20 Gbit/s bandwidth and millions of concurrent connections.

    • SNAT (Source NAT): Enables internal servers without public IPs to share an EIP to initiate outbound connections to the Internet.

    • DNAT (Destination NAT): Maps EIP ports to specific internal private IP addresses and ports to expose internal services to the Internet (supports Specific port or All ports).

  • Private NAT Gateway: Translates private IP addresses across VPCs or hybrid networks, enabling communications between networks with overlapping private IP ranges without requiring network re-IPing.

    • Other Network Services:

  • Domain Name Service (DNS): Authoritative DNS service handling Public Domain Resolution, Private Domain Resolution (resolving internal VPC names), Reverse Resolution (PTR records for email verification), and Intelligent Resolution (routing users based on ISP like China Unicom/Telecom or geographical origin).

  • Direct Connect (DC): Establishes dedicated physical fiber-optic connections between on-premises data centers and Huawei Cloud for ultra-low latency and secure transmission.

  • Cloud Connect (CC): Provides full-mesh, cross-region private network interconnections across global VPCs and Direct Connect locations.

  • Enterprise Router (ER): Operates as a scalable central BGP routing hub, simplifying multi-VPC and hybrid cloud topologies into a single managed router instance.

Enterprise Router Central Hub Topology

Storage Cloud Services

  • Elastic Volume Service (EVS):

    • Overview: Scalable block storage attached directly to compute instances (ECS and BMS).

    • Disk Specifications & Performance:

Disk Type

Max Capacity (GiB)

Max IOPS

Max Throughput

Single-Queue Latency

Typical Workloads

Extreme SSD

Sys: 1,024 / Data: 32,768

128,000

1,000 MiB/s

Sub-millisecond

Oracle, SQL Server, ClickHouse, AI

General Purpose SSD V2

Sys: 1,024 / Data: 32,768

128,000

1,000 MiB/s

1 ms

Large dev/test, transcoding, system disks

Ultra-High I/O

Sys: 1,024 / Data: 32,768

50,000

350 MiB/s

1 ms

NoSQL, PostgreSQL, heavy I/O databases

General Purpose SSD

Sys: 1,024 / Data: 32,768

20,000

250 MiB/s

1 ms

Medium dev/test, Web apps, system disks

High I/O

Sys: 1,024 / Data: 32,768

5,000

150 MiB/s

1 ms - 3 ms

Light dev/test, common applications

  • Device Types & Features:

    • VBD (Virtual Block Device): Default virtual disk mode supporting standard block read/write commands.

    • SCSI (Small Computer System Interface): Supports pass-through SCSI commands, allowing direct access to storage primitives. Required for shared disk applications.

    • Shared EVS Disks: Mountable to up to 16 servers concurrently. Requires cluster management systems (e.g., Windows MSCS, Veritas VCS, CFS) to prevent data corruption.

    • Encryption: Uses XTS-AES-256 algorithms managed via KMS data keys (DK).

  • EVS Backups vs. EVS Snapshots:

Metric

EVS Backup (VBS / CBR)

EVS Snapshot

Storage Location

Stored independently in Object Storage Service (OBS)

Stored on the same underlying disk hardware

Disaster Recovery Scope

Cross-AZ / Cross-Region durability

Intra-AZ state recovery

Lifecycle Dependency

Retained even if the source EVS disk is deleted

Deleted automatically if the source EVS disk is deleted

Primary Function

Long-term data backup, recovery, and disk creation

Fast rollback before software upgrades/changes

  • Three-Copy Redundancy: Divides block data into 1 MiB1\text{ MiB} chunks. Distributed algorithms replicate each chunk into 3 copies across separate server racks and disks, ensuring strong data consistency and automatic background reconstruction upon hardware failure.

    • Object Storage Service (OBS):

  • Overview: Flat, object-based storage service accessible directly over HTTP/HTTPS REST APIs.

  • Core Structure:

    • Buckets: Flat storage containers for objects. Bucket names are globally unique.

    • Objects: Individual files containing Data, Metadata (system-defined like Content-Length + custom key-value pairs), and a Key (unique UTF-8 name up to 1,024 bytes).

  • Storage Classes:

    • Standard: High throughput, low latency. For hot, frequently accessed data (big data analytics, mobile apps).

    • Infrequent Access: Lower storage cost, same latency/throughput, minor retrieval fees. For warm data accessed <12 times/year< 12\text{ times/year}.

    • Archive: Lowest cost storage for cold data accessed ≤1 time/year\le 1\text{ time/year}. Requires a restoration process taking several hours before data access.

  • Key Management Features:

    • Versioning: Stores multiple iterations of an object under the same key with unique version IDs to prevent accidental overwrites/deletions.

    • Cross-Region Replication: Asynchronously replicates objects between buckets in different regions for disaster recovery.

    • Encryption: Server-Side Encryption via SSE-KMS or SSE-OBS.

    • URL Validation (Anti-Leech): Restricts unauthorized hotlinking by evaluating the HTTP Referer header against whitelists or blacklists.

    • Access Control: Managed via IAM Policies (global scope) and Bucket Policies (bucket/object-specific XML/JSON rules).

  • Access Tools: OBS Console, OBS Browser+, obsutil (CLI), obsfs (FUSE driver mounting parallel file systems to Linux), REST APIs, and multi-language SDKs.

    • Scalable File Service (SFS):

  • Overview: Fully managed, scalable Network Attached Storage (NAS) providing shared file access across ECS, BMS, and CCE containers via standard POSIX file system interfaces.

  • File System Types:

Type

Characteristics

Key Applications

SFS Capacity-Oriented

PB-scale, high bandwidth, low cost

Large-scale file sharing, HPC, media processing

General Purpose File System

Higher IOPS performance than capacity-oriented

File synchronization, corporate shares, backup

SFS Turbo

Sub-millisecond latency, high IOPS, small file optimization

Code repositories, log management, AI training, EDA

  • Protocols & Mounting:

    • NFS (Network File System): NFSv3 protocol recommended for Linux OS (mount -t nfs -o vers=3,timeo=600,noresvport,nolock <mount-point> <local-path>).

    • CIFS (Common Internet File System): Standard file sharing protocol for Windows OS mounted via Map Network Drive.

  • Comparison: SFS vs. OBS vs. EVS:

Metric

Scalable File Service (SFS)

Object Storage Service (OBS)

Elastic Volume Service (EVS)

Data Logic

Hierarchical file tree (POSIX)

Flat Key-Value bucket/object

Raw binary block device

Access Protocol

NFS / CIFS mount

HTTP / HTTPS REST APIs

Attached block storage

Capacity Scale

PB-scale

EB-scale

TB-scale

Latency

3 ms−10 ms3\text{ ms} - 10\text{ ms}

≈10 ms\approx 10\text{ ms}

Sub-millisecond

Multi-Node Access

Concurrent multi-instance read/write

Unlimited concurrent web access

Requires specialized cluster software

  • Cloud Backup and Recovery (CBR):

    • Architecture: Backups copies are organized inside Vaults (Server Backup Vaults, Disk Backup Vaults, SFS Turbo Vaults) governed by Backup Policies (frequency, execution window, retention days) and Replication Policies (cross-region vault replication).

    • Features & Performance: Supports crash-consistent backups across multi-disk servers and application-consistent backups for databases. Utilizes forever-incremental backups to reduce backup windows by 95%. Delivers Recovery Point Objectives (RPO) down to 1 hour and Recovery Time Objectives (RTO) within minutes.

Database Cloud Services

  • Database Fundamentals:

    • Database vs. Instance: A database is the organized collection of stored physical data files; an instance consists of the background memory structures and computing processes that manage the database files.

    • ACID Transaction Guarantees:

    • Atomicity: Transactions execute completely or roll back entirely.

    • Consistency: Database constraints and integrity rules are preserved across transactions.

    • Isolation: Concurrent transactions execute independently without cross-interference.

    • Durability: Committed transaction data persists permanently despite power/system failure.

    • Relational vs. Non-Relational (NoSQL): Relational databases use structured 2D tables with rigid schema and ACID guarantees; NoSQL databases sacrifice strict ACID compliance for horizontal scalability across unstructured models (key-value, document, wide-column, graph).

    • Cloud Databases vs. Self-Built Databases: Cloud databases eliminate hardware procurement, OS deployment, and routine DBA maintenance overhead while providing built-in high availability, automated patching, point-in-time recovery, and elastic scaling.

  • HUAWEI CLOUD Database Product Portfolio:

    • Relational Databases: RDS for MySQL, RDS for PostgreSQL, GaussDB (enterprise distributed OLTP), GaussDB(DWS) (data warehousing / OLAP).

    • Non-Relational Databases (GeminiDB / DDS): DDS (Document / MongoDB-compatible), GeminiDB Cassandra, GeminiDB Redis, GeminiDB Influx.

    • Ecosystem Ecosystem Tools: Distributed Database Middleware (DDM), Data Replication Service (DRS for online migration), Data Admin Service (DAS), Database and Application Migration UGO.

  • RDS for MySQL:

    • Kernel & Performance: Employs Huawei enhanced MySQL kernel (HWSQL), delivering 3x throughput performance in high-concurrency environments compared to community MySQL.

    • High Availability & Replicas:

    • Cross-AZ Primary/Standby deployment featuring automatic failover within seconds.

    • Supports up to 5 Read Replicas to offload read operations from the primary DB instance.

    • Read/Write Splitting: Provides a single unified proxy connection address. Automatically routes write requests to the primary instance and distributes read requests to read replicas based on assigned weights, monitored by active health checks.

    • Point-In-Time Recovery (PITR): Combines automated full data backups with binary logs (binlog). Enables restoration to any specific second within the retention window (up to 732 days / 2 years).

  • RDS for PostgreSQL:

    • Overview: Open-source object-relational database focused on extensibility, data integrity, and complex queries.

    • Key Capabilities:

    • Geospatial Data: Fully integrates the PostGIS plugin for 2D/3D spatial modeling, spatial indexing, and geographic operators.

    • Plugin Support: Supports 90+ community plugins (TimescaleDB for time-series data, BRIN/GIN/GiST indexes for fast text retrieval).

    • Data Types: Supports native JSON, XML, arrays, network addresses, and custom data types.

    • High Availability: Features active-standby replication monitored by the HA Monitor module, supporting seamless virtual IP failover.

  • GaussDB:

    • Overview: Enterprise-grade distributed relational database designed for mission-critical transactional applications.

GaussDB Distributed Architecture Diagram
  • Distributed System Components:

    • OM (Operation Manager): Provides cluster management interfaces and administrative configurations.

    • CM (Cluster Manager): Monitors the physical status of nodes and manages cluster state.

    • GTM (Global Transaction Manager): Manages global transaction IDs and maintains global ACID consistency (GTM-lite technology eliminates centralized bottlenecks).

    • CN (Coordinator Node): Receives client requests, parses SQL queries, generates distributed execution plans, and routes task shards to Data Nodes.

    • DN (Data Node): Stores data shards, executes query fragments, and returns results to CNs.

    • ETCD: Distributed key-value store used for cluster configuration state and arbitration.

  • Performance & Scale: Supports clusters scaling up to 1,000+ nodes and petabytes of data. A 32-node cluster achieves up to 15 million tpmC (transactions per minute). Guarantees zero data loss (RPO=0\text{RPO} = 0) and failover recovery within 10 seconds (RTO<10 s\text{RTO} < 10\text{ s}).

  • Security: Provides Always Encrypted engine capabilities, dynamic data masking, comprehensive database auditing, and fine-grained access controls for sensitive government and financial transactions.