You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2022/07/21 09:53:04 UTC

[shardingsphere] branch master updated: Update _index.cn.md (#19433)

This is an automated email from the ASF dual-hosted git repository.

zhonghongsheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 4d98c845d99 Update _index.cn.md (#19433)
4d98c845d99 is described below

commit 4d98c845d99eca5c6f50a5cf81ff36f3a0b74626
Author: Mike0601 <40...@users.noreply.github.com>
AuthorDate: Thu Jul 21 17:52:58 2022 +0800

    Update _index.cn.md (#19433)
---
 .../document/content/features/scaling/_index.cn.md | 53 ++++++++++++++--------
 1 file changed, 35 insertions(+), 18 deletions(-)

diff --git a/docs/document/content/features/scaling/_index.cn.md b/docs/document/content/features/scaling/_index.cn.md
index 454128b7c2d..a2948f0b58b 100644
--- a/docs/document/content/features/scaling/_index.cn.md
+++ b/docs/document/content/features/scaling/_index.cn.md
@@ -1,36 +1,53 @@
 +++
 pre = "<b>4.8. </b>"
-title = "弹性伸缩"
+title = "数据迁移"
 weight = 8
 chapter = true
 +++
 
-## 背景
+## 定义
 
-对于使用单数据库运行的系统来说,如何安全简单地将数据迁移至水平分片的数据库上,一直以来都是一个迫切的需求;
-对于已经使用了 Apache ShardingSphere 的用户来说,随着业务规模的快速变化,也可能需要对现有的分片集群进行弹性扩容或缩容。
+数据迁移是指准备从一个存储集群提取数据,然后将数据写入到新的存储集群,并校验数据一致性。
 
-## 挑战
+## 相关概念
 
-Apache ShardingSphere 在分片算法上提供给用户极大的自由度,但却给弹性伸缩造成了极大的挑战。
-找寻既能支持自定义的分片算法,又能高效地将数据节点进行扩缩容的方式,是弹性伸缩面临的第一个挑战;
+### 节点
+运行计算层或存储层组件进程的实例,可以是物理机、虚拟机、容器等。
 
-同时,在伸缩过程中,不应该对正在运行的业务造成影响。
-尽可能减少伸缩时数据不可用的时间窗口,甚至做到用户完全无感知,是弹性伸缩的另一个挑战;
+### 集群
+为了提供特定服务而集合在一起的多个节点。
 
-最后,弹性伸缩不应该对现有的数据造成影响,如何保证数据的正确性,是弹性伸缩的第三个挑战。
+### 源端
+原始数据所在的存储集群。
 
-ShardingSphere-Scaling 是一个提供给用户的通用数据接入迁移及弹性伸缩的解决方案。
+### 目标端
+原始数据将要迁移的目标存储集群。
 
-![概述](https://shardingsphere.apache.org/document/current/img/scaling/overview_v2.png)
+### 数据迁移作业
 
-## 目标
+把数据从某一个存储集群复制到另一个存储集群的完整流程。
 
-**支持自定义分片算法,减少数据伸缩及迁移时的业务影响,提供一站式的通用弹性伸缩解决方案,是 Apache ShardingSphere 弹性伸缩的主要设计目标。**
+### 存量数据
 
-## 状态
+在数据迁移作业开始前,数据节点中已有的数据。
 
-ShardingSphere-Scaling 从 **4.1.0** 版本开始向用户提供。
-当前处于 **alpha** 开发阶段。
+### 增量数据
 
-**源码:https://github.com/apache/shardingsphere/tree/master/shardingsphere-kernel/shardingsphere-data-pipeline**
+在数据迁移作业执行过程中,业务系统所产生的新数据。
+
+## 使用限制
+
+### 支持项
+
+* 将外围数据迁移至 Apache ShardingSphere 所管理的数据库;
+* 整型或字符串主键表迁移。
+
+### 不支持项
+
+* 无主键表迁移;
+* 复合主键表迁移;
+* 不支持在当前存储节点之上做迁移,需要准备一个全新的数据库集群作为迁移目标库。
+
+## 相关参考
+
+[数据迁移的配置](/cn/user-manual/shardingsphere-proxy/scaling/)