当前位置:网站首页>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 :
边栏推荐
- Base64 编码原来还可以这么理解
- 学习使用php将时间戳转换为大写日期的方法代码示例
- 學習使用php實現公曆農曆轉換的方法代碼
- LeetCode 2320. Count the number of ways to place the house
- TiDB 软件和硬件环境建议配置
- Why can't browsers read JSX?
- 数据库内容输出有问题怎么解决
- GeoServer offline map service construction and layer Publishing
- Makefile separates file names and suffixes
- MFC A对话框调用B对话框函数并传参
猜你喜欢
[email protected]: The platform “win32“ is incompatible with this module."/>info [email protected]: The platform “win32“ is incompatible with this module.

编译原理课程实践——实现一个初等函数运算语言的解释器或编译器

使用mathtype编辑公式,复制粘贴时设置成仅包含mathjax语法的公式

C#代码审计实战+前置知识

forEach的错误用法,你都学废了吗
![[Space & single cellomics] phase 1: single cell binding space transcriptome research PDAC tumor microenvironment](/img/e1/c8e81570ab78de1e488a611c25ebb9.png)
[Space & single cellomics] phase 1: single cell binding space transcriptome research PDAC tumor microenvironment

Simple verification code generator for 51 single chip microcomputer experiment

C code audit practice + pre knowledge

MathML to latex

Xilinx Vivado set *. svh as SystemVerilog Header
随机推荐
07_哈希
数据分析常见的英文缩写(一)
php获取数组中键值最大数组项的索引值的方法
CodeCraft-22 and Codeforces Round #795 (Div. 2)D,E
C # delay, start the timer in the thread, and obtain the system time
C code audit practice + pre knowledge
记一次面试
It's no exaggeration to say that this is the most user-friendly basic tutorial of pytest I've ever seen
TiDB 环境与系统配置检查
为什么只会编程的程序员无法成为优秀的开发者?
使用 TiUP 部署 TiDB 集群
用户隐私协议有些汉字编码不规范导致网页显示乱码,需要统一找出来处理一下
Mavn 搭建 Nexus 私服
LeetCode 2320. 统计放置房子的方式数
Edit the formula with MathType, and set it to include only mathjax syntax when copying and pasting
Database connection pool and data source
CTO如何帮助业务?
Printf function and scanf function in C language
forEach的错误用法,你都学废了吗
taobao. trades. sold. Get query the transaction data that the seller has sold (according to the creation time), Taobao store sales order query API interface, Taobao R2 interface, Taobao oauth2.0 trans