-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
*: add docs for TiFlash MinTSO scheduler #18621
Conversation
Signed-off-by: xufei <[email protected]>
Signed-off-by: xufei <[email protected]>
Signed-off-by: xufei <[email protected]>
Signed-off-by: xufei <[email protected]>
Signed-off-by: xufei <[email protected]>
Signed-off-by: xufei <[email protected]>
Signed-off-by: xufei <[email protected]>
Signed-off-by: xufei <[email protected]>
Signed-off-by: xufei <[email protected]>
Signed-off-by: xufei <[email protected]>
Signed-off-by: xufei <[email protected]>
Co-authored-by: joey-yez <[email protected]>
tiflash/tiflash-mintso-scheduler.md
Outdated
summary: 介绍 TiFlash MinTSO 调度器。 | ||
--- | ||
|
||
# TiFlash MinTSO Scheduler |
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.
如果没有其它考量,标题可否直接用“TiFlash MinTSO 调度器”?
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.
可以的
tiflash/tiflash-mintso-scheduler.md
Outdated
|
||
# TiFlash MinTSO Scheduler | ||
|
||
本文介绍 TiFlash MinTSO scheduler 的原理与实现。 |
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.
建议先用一句话描述下 TiFlash MinTSO 调度器是什么,然后再接“本文介绍”句话。
tiflash/tiflash-mintso-scheduler.md
Outdated
|
||
MinTSO Scheduler 的目标就是在控制系统线程数的同时,确保系统中始终有且只有一个特殊的 query,其所有的 MPPTask 都可以被调度到。 MinTSO Scheduler 是一个完全分布式的调度器,每个 TiFlash 仅根据自身信息对 MPPTask 进行调度,因此,所有 TiFlash 的 MinTSO Scheduler 需要找到同一个“特殊”的 query。在 TiDB 中,每个 query 都会带有一个读的时间戳(TiDB 中称之为 start_ts),MinTSO Scheduler 定义“特殊” query 的标准即为当前 TiFlash 节点上 start_ts 最小的 query,根据全局最小一定是局部最小的原理,所有的 TiFlash 选出的“特殊” query 必然是同一个。我们称之为 MinTSO query。MinTSO scheduler 的调度流程如下: | ||
|
||
<img src="/media/tiflash/tiflash_mintso_v2.png" width=50%></img> |
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.
<img src="/media/tiflash/tiflash_mintso_v2.png" width=50%></img> | |
![TiFlash MinTSO Scheduler v2](/media/tiflash/tiflash_mintso_v2.png) |
In response to a cherrypick label: new pull request created to branch |
In response to a cherrypick label: new pull request created to branch |
In response to a cherrypick label: new pull request created to branch |
In response to a cherrypick label: new pull request created to branch |
In response to a cherrypick label: new pull request created to branch |
In response to a cherrypick label: new pull request created to branch |
First-time contributors' checklist
What is changed, added or deleted? (Required)
Which TiDB version(s) do your changes apply to? (Required)
Tips for choosing the affected version(s):
By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.
For details, see tips for choosing the affected versions (in Chinese).
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?