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
Situation Awareness
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

Migration Process

Updated on 2024-07-29 GMT+08:00
Figure 1 Migration flowchart

Evaluation

Collect the following information about the cached data to be migrated (based on Information to be collected for the migration):

  • Number of instances
  • Number of databases (DBs) configured for each instance
  • Number of keys in each DB
  • DBs used for your services
  • Space occupied by each instance
  • Redis version
  • Redis instance configurations (single-node, master/standby, or cluster)
  • Mapping relationships between your services and instances
Plan the following information about DCS instances based on the collected information:
  • Number of instances to be applied for
  • Specifications and type (single-node, master/standby, or cluster) of each instance
  • Virtual Private Clouds (VPCs), security groups, and subnets, and security groups, to which the instances and services belong
NOTE:

redis-cli -h ${redis_address} -p ${port}

  • Run the following command to query the data distribution and obtain the IDs of DBs with data and the number of keys in each DB:

    info keyspace

    Query and record the number of keys in each DB for subsequent migration verification.

  • Run the following command to query the space occupied by the instance data. Check whether the available disk space of Elastic Cloud Servers (ECSs) is sufficient for transition, and whether the instance specifications and remaining available memory are sufficient.

    info memory

    The occupied space can be obtained from the value of used_memory_human.

Preparation

After completing the evaluation, prepare the following items:

  1. Mobile storage devices

    These devices are used to copy and transfer data in case of network disconnection (in scenarios with data centers of enterprises).

  2. Network resources

    Create VPCs and subnets based on service planning.

  3. Server resources

    Apply for ECSs to bear Redis clients. The ECSs are used to export or import cached data.

    Recommended ECS specifications are 8 vCPUs | 16 GB or higher.

  4. DCS instances

    Create DCS instances based on the migration planning. If the number of instances exceeds the default quota, submit a service ticket or contact technical support.

  5. Related tools

    Install the FTP tool and Redis migration tools.

  6. Information to be collected

    Collect the contact information of people involved in the migration, server addresses, login credentials, cache instance information, and DB information.

  7. Overall migration plan

    Formulate the overall migration plan, including the personnel arrangement, rehearsal, migration, verification, service switchover, and rollback solutions.

    Break down each solution into executable operations and set milestones to mark the end of tasks.

Rehearsal

The rehearsal phase aims to:

  1. Verify the feasibility of the migration tools and migration process.
  2. Discover problems that may occur during migration and make effective improvements.
  3. Evaluate the time required for migration.
  4. Optimize the migration steps and verify the feasibility of concurrent implementation of some tasks to improve migration efficiency.

Backup

Before migration, back up related data, including but not limited to cached data and Redis configuration files, in case of emergency.

Migration

After conducting one or two rounds of migration rehearsal and solving problems found in the rehearsal, start data migration.

Break down the migration process into executable steps with specific start and end confirmation actions.

Data Verification

Check the following items:

  • The key distribution of each DB is consistent with the original or expected distribution.
  • Main keys.
  • Expiration time of keys.
  • Whether instances can be normally backed up and restored.

Service Switchover

  1. After the data migration and verification, use the new instances for your services.
  2. If DB IDs are changed, modify the ID configurations for your services.
  3. If your services are migrated from data centers or cloud platforms provided by other vendors to this cloud as a whole, services and cached data can be migrated concurrently.

Service Verification

After the service switchover:

  1. Verify the connectivity between your service applications and DCS instances.
  2. Verify whether cached data can be normally added, deleted, modified, and queried.
  3. If possible, perform pressure tests to ensure that the performance satisfies the peak service pressure.

Rollback

If your services are unavailable after the data migration because unexpected problems occur and cannot be solved in the short term, roll back your services.

Since source Redis data still exists, you only need to roll back your services and use the source Redis instances again.

After the rollback, you can continue to restart from the rehearsal or even preparation phase to solve the problems.

Information to be collected for the migration

The following table lists the information to be collected in the evaluation and preparation phases.

Table 1 Information to be collected for the migration

Migration Source

Item

Description

Source Redis

(List the information about all instances to be migrated.)

Source Redis IP address

-

Redis instance password (if any)

-

Total data volume

Obtained from the value of used_memory_human by running the info memory command.

Used to evaluate whether the migration solution, DCS instance specifications, and available disk space of ECSs meet requirements, and to estimate the time required for migration (service interruption duration).

IDs of DBs with data

Obtained by running the info keyspace command.

Used to check whether the migration involves multiple DBs and non-AOF files. Some open-source tools can export and import data of only one DB at a time.

For DCS instances, the single-node and master/standby types provide 256 DBs (DB 0 to DB 255), and the cluster type provides only one DB by default.

Number of keys in each DB

Used to verify the data integrity after migration.

Data type

The Cloud Data Migration (CDM) service supports two data formats: hash and string. If the source data contains data in other formats such as list and set, use a third-party migration tool.

ECS

If a large number of instances are to be migrated, prepare multiple ECSs for concurrent migration.

EIP

Select ECSs that can communicate with DCS instances for data import to ensure network stability.

Configure high-specification bandwidth to improve data transmission efficiency.

Login credentials (username and password)

-

CPU and memory

Some migration tools support concurrent import through multiple threads. High-specification ECSs help improve import efficiency.

Available disk space

Sufficient available disk space needs to be reserved on the ECSs to store compressed files and decompressed cached data files.

Note: To improve data transmission efficiency, compress large-size data files before transmitting them to ECSs.

DCS instances

(Select appropriate instance specifications and quantities based on the number of source Redis instances and data volume.)

Instance connection address

-

Instance connection port

-

Instance password

-

Instance type

-

Instance specifications and available memory

-

Network configurations

VPC

Plan VPCs in advance to ensure that your service applications and DCS instances are in same VPCs.

Subnet

-

Whitelist or security group

DCS Redis 3.0, 4.0, 5.0, and 6.0 professional edition instances are deployed in different modes. Therefore, the access control methods vary. You can control access to your DCS instances by setting security groups or whitelists. For details, see Security Group Configurations or Managing IP Address Whitelist.

...

...

Other configurations.

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