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
Help Center/ GeminiDB/ GeminiDB Cassandra API/ GeminiDB (DynamoDB API Compatible) Instance/ Migration from DynamoDB to GeminiDB (DynamoDB API Compatible)

Migration from DynamoDB to GeminiDB (DynamoDB API Compatible)

Updated on 2024-12-31 GMT+08:00

GeminiX is a Huawei-developed tool that can seamlessly migrate data from DynamoDB to GeminiDB (DynamoDB API compatible) based on DynamoDB semantics. This section describes how to migrate data from AWS DynamoDB to GeminiDB (DynamoDB API compatible).

Migration Principles

This solution consists of two modules: full migration and incremental migration. You need to create an ECS for data forwarding. GeminiX supports distributed migration and concurrent migration of multiple service tables on multiple servers.

  • During full migration, DynamoDB scan APIs read all data by segment and write the data to the GeminiDB (DynamoDB API compatible) instance.
  • During incremental migration, DynamoDB stream APIs synchronize incremental data to the GeminiDB (DynamoDB API compatible) instance.

Prerequisites

  • A GeminiDB (DynamoDB API compatible) instance has been created and is running properly.
  • An ECS with 16 vCPUs, 64 GB of memory, and 100 or more GB of disk space has been created. For details about how to create an ECS, see Purchasing an ECS" in Getting Started with Elastic Cloud Server.
  • Data is transmitted between the AWS DynamoDB instance and ECS via private connections. Ensure that the networks between the ECS and AWS DynamoDB instance and between the ECS and GeminiDB (DynamoDB API compatible) instance are normal.
  • The storage space of the GeminiDB (DynamoDB API compatible) instance cannot be less than that of the AWS DynamoDB instance.
  • AWS DynamoDB stream interfaces have been enabled.

Procedure

  1. Deploy the required migration tool.

    1. Obtain GeminiX.
    2. Modify the conf.yaml configuration file and configure the following items:
      source:
        endpoint: 'https://dynamodb.us-west-2.amazonaws.com' #Domain name of the AWS DynamoDB instance
        access_key_id: 'xx' #Access key ID of the AWS DynamoDB instance
      secret_access_key: 'xx' #Secret access key of the AWS DynamoDB instance
      target:
        endpoint: ***.***.***.*** #Domain name of the GeminiDB (DynamoDB API compatible) instance
        access_key_id: 'xx' #AK of the GeminiDB (DynamoDB API compatible) instance
        secret_access_key: 'xx' #SK of the GeminiDB (DynamoDB API compatible) instance

  2. Perform a full data migration.

    Run the following command:

    nohup ./bin/migration.sh fullsync -c conf/conf.yaml >run.log 2>&1 &
    If information similar to the following is displayed, synchronizing full data is complete.
    finish syncing all tables and indexes

  3. Migrate incremental data.

    Before running the incremental migration command, configure connection information of the DynamoDB instance and GeminiDB (DynamoDB API compatible) instance and the name of the incremental migration table in GeminiX. For details, see 1.b.

    Run the following command:
    nohup ./bin/migration.sh incresync -c conf/conf.yaml >run.log 2>&1 &

  4. After the migration is complete, switch workloads to the GeminiDB (DynamoDB API compatible) instance.

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