当前位置:网站首页>Tidb data migration scenario overview
Tidb data migration scenario overview
2022-07-02 15:08:00 【Tianxiang shop】
The general introduction of this document can be used for TiDB Data migration solutions for . The data migration scheme is as follows :
Full data migration .
- Data import : Use TiDB Lightning take Aurora Snapshot,CSV File or Mydumper SQL Import all the data of the file into TiDB colony .
- Export data : Use Dumpling take TiDB The total data of the cluster is exported as CSV File or Mydumper SQL file , So as to better cooperate from MySQL A database or MariaDB Database for data migration .
- TiDB DM (Data migration) It also provides a database suitable for small-scale data volume ( For example, is less than 1 TiB) Full data migration function .
Quick initialization TiDB colony :TiDB Lightning The fast import function provided can realize fast initialization TiDB The effect of the specified table of the cluster . Please note that , Use quick initialization TiDB Cluster function pair TiDB The impact of clusters is great , During initialization ,TiDB The cluster does not support external access .
Incremental data migration : Use TiDB DM from MySQL,MariaDB or Aurora Sync Binlog To TiDB, This function can greatly reduce the downtime window time in the process of business migration .
TiDB Cluster replication :TiDB Support backup and recovery , This function can realize TiDB Initialize a snapshot of to another brand new TiDB colony .
According to the type of database where the migrated data is located 、 Deployment location 、 Business data size 、 Business needs and other factors , There will be different data migration options . Here are some common data migration scenarios , It is convenient for users to choose the most suitable data migration scheme according to these clues .
transfer Aurora MySQL To TiDB
from Aurora Migrate data to deploy in AWS Of TiDB colony , Data migration can be divided into two steps: full migration and incremental migration . Please choose the corresponding steps according to your business needs .
transfer MySQL To TiDB
If you don't use it Cloud storage (S3) service , And the network connection and delay are good , So from MySQL Migrate data to TiDB You can refer to the following scheme .
If you have requirements for data migration speed , Or the data scale is particularly large ( For example, greater than 1 TiB), And forbid TiDB There are other businesses written to the cluster during the migration , Then you can use Lightning Perform a quick import , Then choose whether to use... According to business needs DM Perform incremental data (Binlog) Sync .
Sub database and sub table MySQL Merge and migrate to TiDB
If your business is based on MySQL Sub database scheme to store data , Business data from MySQL Migrate to TiDB after , Merge these sub table data into a consolidated , Then you can use DM Perform split table consolidation and migration .
If the total scale of sub table data is particularly large ( For example, greater than 1 TiB), And forbid TiDB There are other businesses written to the cluster during the migration , Then you can use Lightning Quickly merge and import split table data , Then choose whether to use... According to business needs DM Perform incremental data (Binlog) Table synchronization .
Migrate data from files to TiDB
Complex migration scenarios
DM During real-time synchronization , Several existing features can make the synchronization process more flexible , Adapt to various business needs :
边栏推荐
- List集合&UML图
- Points clés de l'examen de principe de compilation pour l'année scolaire 2021 - 2022 [Université chinoise d'outre - mer]
- Simple verification code generator for 51 single chip microcomputer experiment
- 871. Minimum refueling times: simple priority queue (heap) greedy question
- Reuse and distribution
- Dragonfly low code security tool platform development path
- Database connection pool and data source
- Yolov6 training: various problems encountered in training your dataset
- btrace-(字节码)动态跟踪工具
- kityformula-editor 配置字号和间距
猜你喜欢

Learn the method code example of converting timestamp to uppercase date using PHP
[email protected]: The platform “win32“ is incompatible with this module."/>info [email protected]: The platform “win32“ is incompatible with this module.

Leetcode - Search 2D matrix

为什么只会编程的程序员无法成为优秀的开发者?
![[apipost] tutorial](/img/f9/717908a72720f152ad49034be64b35.png)
[apipost] tutorial
[email protected] : The platform “win32“ is incompatible with this module."/>info [email protected] : The platform “win32“ is incompatible with this module.

Ad20 cannot select the solution of component packaging in PCB editor

Have you learned the wrong usage of foreach

The past and present lives of visual page building tools

Fundamentals of software testing
随机推荐
C thread transfer parameters
C# richTextBox控制显示最大行数
871. 最低加油次数 : 简单优先队列(堆)贪心题
广州市应急管理局发布7月高温高湿化工安全提醒
TiDB 环境与系统配置检查
Leetcode - Search 2D matrix
[C language] explain the initial and advanced levels of the pointer and points for attention (1)
MFC 定时器使用
Mfc a dialog calls B dialog function and passes parameters
The past and present lives of visual page building tools
LeetCode 2320. 统计放置房子的方式数
info [email protected] : The platform “win32“ is incompatible with this module.
jmeter脚本参数化
It's no exaggeration to say that this is the most user-friendly basic tutorial of pytest I've ever seen
[noi simulation] Elis (greedy, simulation)
C语言实现N皇后问题
C RichTextBox controls the maximum number of lines displayed
Internet Explorer officially retired
Solve the problem that El radio group cannot be edited after echo
Introduction to mathjax (web display of mathematical formulas, vector)