-
Notifications
You must be signed in to change notification settings - Fork 412
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
Refactor storage configuration and strategies for choosing paths with multi-disks #1216
Conversation
/run-all-tests |
6535e00
to
7fad2df
Compare
7fad2df
to
4131247
Compare
4131247
to
0791d0c
Compare
/run-all-tests |
tests/docker/config/tiflash_dt.toml
Outdated
default_profile = "default" | ||
users_config = "users.toml" | ||
|
||
# old style storage paths |
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.
# old style storage paths | |
# Deprecated path setting style. Check [storage] section for new style. |
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.
addressed.
tests/docker/config/tiflash_dt.toml
Outdated
|
||
## Store capacity of each path, i.e. max data size allowed. | ||
## If it is not set, or is set to 0s, disk capacity will be used. | ||
# capacity = [ ] |
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.
Please also make an example.
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.
addressed.
tests/docker/config/tiflash_dt.toml
Outdated
# dir = [ "/data0/tiflash", "/data1/tiflash" ] | ||
|
||
## Store capacity of each path, i.e. max data size allowed. | ||
## If it is not set, or is set to 0s, disk capacity will be used. |
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.
## If it is not set, or is set to 0s, disk capacity will be used. | |
## If it is not set, or is set to 0s, the actual disk capacity is used. |
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.
addressed.
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.
LGTM
/merge |
/run-all-tests |
* Support multi-disks for PageStorage (#1156) * Support multi-disks for RegionPersister (#1199) * Refactor storage configuration and strategies for choosing paths with multi-disks (#1216) Signed-off-by: JaySon-Huang <[email protected]>
Signed-off-by: JaySon-Huang [email protected]
What problem does this PR solve?
Issue Number: a part of #1128
Problem Summary:
Previously, we choose a path according to the used size inside one table. The global data distribution may be skew.
And if the capacities of different disks are not the same, the disk with a smaller capacity makes get full while other disks are available.
What is changed and how it works?
Related changes
Check List
Tests
Side effects
Release note