Skip to content

backup-and-restore: add basic introduction#2089

Merged
IANTHEREAL merged 11 commits into
pingcap:masterfrom
3pointer:br_introduce
Dec 3, 2019
Merged

backup-and-restore: add basic introduction#2089
IANTHEREAL merged 11 commits into
pingcap:masterfrom
3pointer:br_introduce

Conversation

@3pointer
Copy link
Copy Markdown
Contributor

@3pointer 3pointer commented Dec 2, 2019

What is changed, added or deleted?

add basic introduction for br

What is the related PR or file link(s)?

N/A

N/A

Which version does your change affect?

N/A

Comment thread dev/how-to/maintain/backup-and-restore/br.md Outdated
Comment thread dev/how-to/maintain/backup-and-restore/br.md Outdated
3pointer and others added 3 commits December 2, 2019 12:09
Comment thread dev/how-to/maintain/backup-and-restore/br.md Outdated
Comment thread dev/how-to/maintain/backup-and-restore/br.md Outdated
3pointer and others added 2 commits December 3, 2019 11:11
Co-Authored-By: Ian <ArGregoryIan@gmail.com>
Co-Authored-By: Ian <ArGregoryIan@gmail.com>
Comment thread dev/how-to/maintain/backup-and-restore/br.md Outdated
Comment thread dev/how-to/maintain/backup-and-restore/br.md Outdated
3pointer and others added 3 commits December 3, 2019 11:16
Copy link
Copy Markdown
Contributor

@IANTHEREAL IANTHEREAL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Contributor

@zier-one zier-one left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


### 备份原理

BR 执行备份时,会先从 PD 获取到
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
BR 执行备份时,会先从 PD 获取到
BR 执行备份时,会先从 PD 获取到

@zier-one zier-one added the status/LGT2 Indicates that a PR has LGTM 2. label Dec 3, 2019

然后根据上述信息,在 BR 内部启动一个 TiDB,获取对应 TS 的数据库/表信息。同时过滤掉系统库(`information_schema`,`performance_schema`,`mysql`);

如果是全量备份,会遍历全部库表,并且根据每一张表构建需要备份的 KV Range;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
如果是全量备份,会遍历全部库表,并且根据每一张表构建需要备份的 KV Range;
- 如果是全量备份,会遍历全部库表,并且根据每一张表构建需要备份的 KV Range;


如果是全量备份,会遍历全部库表,并且根据每一张表构建需要备份的 KV Range;

如果是单表备份,会根据该表构建需要备份的 KV Range。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
如果是单表备份,会根据该表构建需要备份的 KV Range。
- 如果是单表备份,会根据该表构建需要备份的 KV Range。

- 当前的 TS 作为备份快照的时间点。
- 当前集群的 TikV 节点信息。

然后根据上述信息,在 BR 内部启动一个 TiDB,获取对应 TS 的数据库/表信息。同时过滤掉系统库(`information_schema`,`performance_schema`,`mysql`);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
然后根据上述信息,在 BR 内部启动一个 TiDB,获取对应 TS 的数据库/表信息。同时过滤掉系统库(`information_schema``performance_schema``mysql`)
然后根据上述信息,在 BR 内部启动一个 TiDB,获取对应 TS 的数据库/表信息。同时过滤掉系统库(`information_schema``performance_schema``mysql`)


最后,BR 将需要备份的 KV Range 收集后,构造完整请求分发给集群内的 TiKV 节点。

请求主要结构如下
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
请求主要结构如下
请求主要结构如下

Copy link
Copy Markdown
Contributor

@zier-one zier-one left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@IANTHEREAL IANTHEREAL merged commit c0b81ae into pingcap:master Dec 3, 2019
@lilin90 lilin90 added the translation/doing This PR’s assignee is translating this PR. label Dec 3, 2019
@lilin90
Copy link
Copy Markdown
Member

lilin90 commented Dec 3, 2019

@TomShawn Please take a look at the language, apply changes to v3.1, and update the English version pingcap/docs#1680 accordingly. Thanks!
@3pointer Any further changes to this BR doc, please let @TomShawn know because he is working on translating it into English. And please also update v3.1. Thanks!

@lilin90 lilin90 added the priority/P1 The issue has P1 priority. label Dec 3, 2019
@TomShawn TomShawn added translation/done This PR has been translated from English into Chinese and updated to pingcap/docs-cn in a PR. and removed translation/doing This PR’s assignee is translating this PR. labels Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority/P1 The issue has P1 priority. status/LGT2 Indicates that a PR has LGTM 2. translation/done This PR has been translated from English into Chinese and updated to pingcap/docs-cn in a PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants