-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
store/tikv: make cache ttl configurable #12647
Conversation
Signed-off-by: disksing <i@disksing.com>
Codecov Report
@@ Coverage Diff @@
## master #12647 +/- ##
================================================
- Coverage 79.9038% 79.8601% -0.0437%
================================================
Files 462 461 -1
Lines 104393 103804 -589
================================================
- Hits 83414 82898 -516
+ Misses 14889 14814 -75
- Partials 6090 6092 +2 |
@@ -70,6 +71,7 @@ txn-total-size-limit=2000 | |||
[tikv-client] | |||
commit-timeout="41s" | |||
max-batch-size=128 | |||
region-cache-ttl=6000 |
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.
It seems that we don't check it. region-cache-ttl
is written to configure file, but we don't check it.
config/config.toml.example
Outdated
@@ -283,6 +283,10 @@ batch-wait-size = 8 | |||
# Enable chunk encoded data. | |||
enable-arrow = true | |||
|
|||
# If a Region has not been accessed for more than the given duration, it |
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.
Do we need to add the unit of region-cache-ttl
to the comment (second)?
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.
Good idea 👍
Signed-off-by: disksing <i@disksing.com>
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
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
/run-all-tests |
cherry pick to release-3.0 failed |
cherry pick to release-3.1 failed |
It seems that, not for sure, we failed to cherry-pick this commit to release-3.0. Please comment '/run-cherry-picker' to try to trigger the cherry-picker if we did fail to cherry-pick this commit before. @disksing PTAL. |
Signed-off-by: disksing i@disksing.com
What problem does this PR solve?
Fix #12646
What is changed and how it works?
Add item in config file.
Check List
Tests
Related changes
Release note
RegionCacheTTL