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
On this page

Doubling Shards and Resharding Data Records

Updated on 2022-08-17 GMT+08:00

Overview

With resharding, physical databases corresponding to the schema are doubled and rebalanced to each DB instance as much as possible. During this process, data records are redistributed.

Prerequisites

  • There are schemas available in a running DDM instance.
  • You have purchased a MySQL DB instance. The DB instance and your DDM instance are in the same VPC, and the DB instance is not in use by other DDM instances.

Procedure

  1. In the instance list, locate the instance that contains schemas you require and click the instance name.
  2. On the displayed page, in the navigation pane, choose Schemas.
  3. In the schema list, locate the schema that you want to scale out and click Scale Out the Operation column.

    Figure 1 Scale Out

  4. On the displayed page, select Reshard for Scaling Method, configure Traffic Switch and Automatic Clearance Required, select the required DB instances, enter the administrator password, and click Test Connection. After the connection is successful, click Next: Confirm Information.

    Figure 2 Reshard
    Figure 3 Reshard

  5. Click Next: Pre-check. After all check items are complete, click Scale out.

    If the schema status changes to Running, the scaling out succeeds and the newly-added MySQL DB instance is displayed in the Associated DB Instance column.

    NOTE:

    If the DDM instance version is earlier than 2.4.1.3, do not set sql_mode to ANSI_QUOTES. If you do so, do not use double quotation marks to quote text strings because the quotation marks will be translated into an identifier that makes the quoted string invalid.

    For example, logic in select * from test where tb = "logic" cannot be parsed correctly.

  6. If Status changes to Scaling failed, the schema failed to be scaled out. Click Retry or Roll Back.

    NOTE:
    • Scale out a schema during off-peak hours.
    • Storage scaling does not support tables without primary keys.
    • Only schemas whose status is Running can be scaled out.
    • Only one schema can be scaled out in a DDM instance at a time.
    • A maximum of 256 MySQL DB instances can be selected for scaling.
    • You can view the scaling progress on the Schemas page. The whole scaling process takes about 5 to 30 minutes depending on the amount of data to be migrated.
    • During scaling, DDM automatically enables the LOAD DATA function. After scaling, you can disable the function in parameter template settings of the MySQL DB instance as needed.

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