هذه الصفحة غير متوفرة حاليًا بلغتك المحلية. نحن نعمل جاهدين على إضافة المزيد من اللغات. شاكرين تفهمك ودعمك المستمر لنا.

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
Managed Threat Detection
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

Elastically Adding or Deleting a Logical Cluster

Updated on 2025-03-03 GMT+08:00

Context

Logical clusters can be manually added or deleted, and also have the ability to automatically expand or shrink as needed. Computing logical clusters can be created and deleted during the scheduled period of time to dynamically scale computing resources.

  • A custom scheduled scaling plan creates a logical cluster that provides computing power. Once such logical cluster is associated, user's queries are handled by it, while table creation statements are still managed by the original logical cluster. For instructions on how to configure a custom scheduled scaling plan, see Configuring a Custom Scheduled Scaling Plan.
    • A user can be bound to only one computing logical cluster.
    • If a user associated with the read-only logical cluster has workloads in progress when the cluster is deleted, an error may be reported.
  • An auto scaling plan creates a logical cluster that facilitates parallel expansion. Once such logical cluster is associated with the primary logical cluster, specific queries from the primary logical cluster are routed to the logical cluster, but table creation statements are still executed in the original logical cluster. For how to configure an auto scaling plan, see Configuring an Auto Scaling Plan.

    To reduce statement queuing time, use parallel expansion. When the primary cluster is overwhelmed by high-concurrency tasks and lacks resources like memory, GaussDB(DWS) will automatically add extra cluster capacity to process the increased read and write statements. The performance and data consistency are consistent for users, regardless of whether the statement is executed on the primary cluster or the parallel extended cluster. You can set up a resource pool to control which statements are directed to a parallel extended cluster. When parallel expansion is enabled, qualifying statements are directed to the concurrent expansion cluster instead of being queued. Here are the limitations of the parallel expansion feature:

  • Only V3 tables and foreign tables are supported. If the table is a replication table, only SELECT is supported.
  • Only SELECT, INSERT, UPDATE, and DELETE statements are supported.
  • COPY cannot be used to import data.
  • The UPSERT statement is not supported.
  • Transaction blocks are not supported.
  • Stored procedures are not supported.
  • Recursive statements with the RETURNING clause and WITH RECURSIVE are not supported.
  • Lightweight update is not supported.
  • INSERT statements generated by a single VALUES or generate_series are not supported.
NOTE:
  • You can manually add or delete plans for storage-compute decoupled clusters. For earlier versions, contact technical support to upgrade them.
  • Only storage-compute decoupled clusters and ECS clusters of 9.1.0.200 and later versions support auto elastic addition and deletion.
  • In a yearly/monthly storage-compute decoupled cluster, nodes are automatically added when logical clusters are added as scheduled. Nodes are billed on a pay-per-use basis.

Configuring a Custom Scheduled Scaling Plan

  1. Log in to the GaussDB(DWS) console. In the navigation pane, choose Dedicated Clusters > Clusters.
  2. In the cluster list, click the name of the target cluster. The Cluster Information page is displayed.
  3. After storage-compute decoupled clusters are created, they are in logical cluster mode.

    • For storage-compute decoupled clusters: In the navigation pane on the left, click Logical Clusters. On the displayed page, click Add Plan to configure a proper scheduling plan.

  4. Select a plan type. It can be:

    • Periodicity: The plan is executed once in every specified period (week or month). A logical cluster is created or deleted as scheduled as long as it does not conflict with other O&M operations. You can set the weekly time intervals for creating or deleting logical clusters.
      Figure 1 Setting Plan Type to Periodicity
    • One-time: The plan is executed only once in the specified period.
      Figure 2 Selecting One-time

  5. Click OK. In the scheduled plan list, you can view the plan details and next execution time.

    NOTE:

    To avoid affecting services and ensure resources are available at the scheduled time, the plan may be skipped if it conflict with O&M operations, and may be executed about 20 minutes earlier than planned if the cluster creation is time-consuming.

Configuring an Auto Scaling Plan

  1. Log in to the GaussDB(DWS) console. In the navigation pane, choose Dedicated Clusters > Clusters.
  2. In the cluster list, click the name of the target cluster. The Cluster Information page is displayed.
  3. Click Logical Clusters on the left to access the page for cluster management. Because once you have created a storage-compute decoupled cluster, it will be in logical cluster mode.
  4. Click Auto Resiliency Switch to enable the auto scaling function for logical clusters.

    Enabling this function allows the system to efficiently manage node resources by detecting service demand and creating or deleting read-only elastic logical clusters as needed. This means that unused nodes are free of charge and the system can adapt to peak and off-peak hours seamlessly.

    Figure 3 Enabling auto scaling for logical clusters

  5. After auto scaling is enabled, run SQL statements after completing the operation described in Using the SQL Editor to Connect to a Cluster to create and set a resource pool, and bind a user to the resource pool to enable auto scaling for the specified resource pool. In the command, poolg indicates the resource pool name, which can be customized.

    1
    2
    3
    create resource pool "poolg" with(nodegroup = 'v3_logical');
    alter user "write_user" with resource pool "poolg";
    alter resource pool "poolg"  with (enable_concurrency_scaling=true);
    
    Figure 4 Setting a resource pool

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