当前位置:网站首页>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 :
边栏推荐
- AtCoder Beginner Contest 254
- Advanced C language (realize simple address book)
- Table responsive layout tips
- SQL 后计算的利器 SPL
- Learn the method code example of converting timestamp to uppercase date using PHP
- 用户隐私协议有些汉字编码不规范导致网页显示乱码,需要统一找出来处理一下
- CDN 在游戏领域的应用
- mathjax 入门(web显示数学公式,矢量的)
- [development environment] install the visual studio community 2013 development environment (download the installation package of visual studio community 2013 with update 5 version)
- C语言习题---(数组)
猜你喜欢
Table responsive layout tips
fatal: unsafe repository is owned by someone else 的解决方法
[C language] explain the initial and advanced levels of the pointer and points for attention (1)
广州市应急管理局发布7月高温高湿化工安全提醒
Thoroughly master prototype__ proto__、 Relationship before constructor (JS prototype, prototype chain)
Fatal: unsafe repository is owned by someone else
.NET Core 日志系统
kibana 基础操作
IE 浏览器正式退休
Advanced C language (learn malloc & calloc & realloc & free in simple dynamic memory management)
随机推荐
LeetCode 209. 长度最小的子数组
Large top heap, small top heap and heap sequencing
kityformula-editor 配置字号和间距
Xilinx Vivado set *. svh as SystemVerilog Header
用户隐私协议有些汉字编码不规范导致网页显示乱码,需要统一找出来处理一下
TiDB 集群最小部署的拓扑架构
Fundamentals of software testing
Learn the method code of using PHP to realize the conversion of Gregorian calendar and lunar calendar
LeetCode 2310. 个位数字为 K 的整数之和
Niuke Practice 101
【无标题】LeetCode 2321. 拼接数组的最大分数
[apipost] tutorial
Principles, language, compilation, interpretation
mathjax 入门(web显示数学公式,矢量的)
taobao. trade. Get (get some information of a single transaction), Taobao store order interface, Taobao oauth2.0 interface, Taobao R2 interface code docking and sharing
Table responsive layout tips
学习使用php实现公历农历转换的方法代码
Learn the method code example of converting timestamp to uppercase date using PHP
buuctf-pwn write-ups (7)
fatal: unsafe repository is owned by someone else 的解决方法