-
Notifications
You must be signed in to change notification settings - Fork 726
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
*: Parameterize hotspot scheduling and adjust hot cache #2239
Conversation
Signed-off-by: nolouch <[email protected]>
Signed-off-by: nolouch <[email protected]>
Signed-off-by: nolouch <[email protected]>
Signed-off-by: nolouch <[email protected]>
Signed-off-by: nolouch <[email protected]>
@@ -228,7 +230,7 @@ func (h *hotScheduler) gcRegionPendings() { | |||
empty := true | |||
for ty, op := range pendings { | |||
if op != nil && op.IsEnd() { | |||
if time.Now().After(op.GetCreateTime().Add(minRegionScheduleInterval)) { | |||
if time.Now().After(op.GetCreateTime().Add(h.conf.GetMaxZombieDuration())) { |
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.
GetMaxZombieDuration?
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.
Yes, it still influences the store, which should be consistent with the pendingSum
.
Signed-off-by: nolouch <[email protected]>
Signed-off-by: nolouch <[email protected]>
Signed-off-by: nolouch <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #2239 +/- ##
==========================================
+ Coverage 76.66% 76.69% +0.03%
==========================================
Files 197 198 +1
Lines 21290 21442 +152
==========================================
+ Hits 16321 16446 +125
- Misses 3761 3784 +23
- Partials 1208 1212 +4
Continue to review full report at Codecov.
|
Signed-off-by: nolouch <[email protected]>
/rebuild |
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.
would you like to show test result?
Hi, @lhy1024 I update the test result in the issue comment, you can check it now. |
Signed-off-by: nolouch <[email protected]>
Signed-off-by: nolouch <[email protected]>
/merge |
/run-all-tests |
Signed-off-by: nolouch <[email protected]>
Signed-off-by: nolouch [email protected]
What problem does this PR solve?
Improve stability and let hot region configurable.
What is changed and how it works?
Check List
Tests
Command: sysbench oltap_read_only (table size=2000000, threads=300)
Before:
After: