-
Notifications
You must be signed in to change notification settings - Fork 1.2k
distribute-table: support to scatter the region distribution of the given table and engine #19534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
ca62ac6
a4fc306
c0b9415
e80d334
1bdc893
2bfb0e1
acd05fa
92d3a9c
c7611d9
20a6312
a4ccf2c
1e9b393
51c781b
8f08f70
418934e
17547f5
e2f16f4
3ce5099
4e1386f
0ae5d5c
0881fba
f0545be
7140d09
1bfac73
4bffb4e
745d235
4bcab8e
5673ec1
f5e6ffa
9bae0eb
97fc420
a27f6cd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,84 @@ | ||||||||||
| --- | ||||||||||
| title: distribute table 使用文档 | ||||||||||
| aliases: ['/docs-cn/dev/sql-statements/sql-statement-distribute-table/','/docs-cn/dev/reference/sql/statements/distribute-table/'] | ||||||||||
| summary: TiDB 中的 distribute table 功能可以解决表中 region 分布不均衡问题。通过重新调整 table 中的 region 的分布,可以让指定 table 下的 region 按照一定的策略进行均衡。重新分配可以指定不同的存储引擎,比如 TIFLASH 和 TIKV。同时也可以指定不同的 raft role,比如 learner,leader,voter。 | ||||||||||
| --- | ||||||||||
|
|
||||||||||
| # Distribute Table 使用文档 | ||||||||||
|
||||||||||
| # Distribute Table 使用文档 | |
| # DISTRIBUTE TABLE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
qiancai marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 对表A 上的 tikv 上的 leader 重新进行均衡调度 | |
| 通过 `DISTRIBUTE TABLE` 语句重新调度表中的 Region 时,你可以根据需求指定存储引擎(如 TiFlash 或 TiKV)以及不同的 Raft 角色(如 learner、leader、voter)。 | |
| 对表 `t1` 在 TiKV 上的 leader 所在的 Region 重新进行均衡调度: |
qiancai marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 显示当前所有的调度任务 | |
| 显示当前所有的调度任务: | |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | 1 | db_1 | t1 | | TIKV | LEADER | RUNNING | ADMIN | 20240712 | | |
| | 1 | db_1 | t1 | | TIKV | LEADER | RUNNING | ADMIN | 20240712 | |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 显示当前表 t1 的 region 分布情况 | |
| 显示表 `t1` 当前的 Region 分布情况: | |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
“### Distribute Table Region” 里面目前没有内容,请看看是需要删除还是添加
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
删除了
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Distribute Table 语句重新调度 table 下的 region 也会受到 PD 中热点调度器的影响。 同时该任务会在均衡后退出,退出后该表的分布可能会 | |
| 被被破坏。 | |
| `DISTRIBUTE TABLE` 语句在重新调度表中的 Region 时,可能会受到 PD 热点调度器的影响。调度完成后,随着时间推移,表的 Region 分布可能再次失衡。 |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
新增文档不需要 aliases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done