Skip to content

Conversation

Yisaer
Copy link
Contributor

@Yisaer Yisaer commented May 26, 2021

Signed-off-by: yisaer disxiaofei@163.com

What problem does this PR solve?

Close #3701

What is changed and how it works?

Adjust the threshold for the threshold for the read stats.

Release note

None

Signed-off-by: yisaer <disxiaofei@163.com>
@ti-chi-bot ti-chi-bot added the release-note-none Denotes a PR that doesn't merit a release note. label May 26, 2021
@ti-chi-bot ti-chi-bot requested a review from disksing May 26, 2021 02:50
@codecov
Copy link

codecov bot commented May 26, 2021

Codecov Report

Merging #3707 (5be5f7c) into master (afe21ec) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3707      +/-   ##
==========================================
- Coverage   74.94%   74.94%   -0.01%     
==========================================
  Files         244      244              
  Lines       24408    24410       +2     
==========================================
+ Hits        18292    18293       +1     
+ Misses       4500     4496       -4     
- Partials     1616     1621       +5     
Flag Coverage Δ
unittests 74.94% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/mock/mockcluster/mockcluster.go 95.86% <ø> (ø)
server/cluster/cluster.go 82.80% <100.00%> (+0.04%) ⬆️
server/kv/etcd_kv.go 79.71% <0.00%> (-5.80%) ⬇️
pkg/etcdutil/etcdutil.go 84.70% <0.00%> (-3.53%) ⬇️
server/election/leadership.go 83.52% <0.00%> (-3.53%) ⬇️
server/tso/tso.go 68.96% <0.00%> (-2.88%) ⬇️
pkg/dashboard/adapter/manager.go 82.97% <0.00%> (-2.13%) ⬇️
server/election/lease.go 94.91% <0.00%> (-1.70%) ⬇️
server/encryptionkm/key_manager.go 71.78% <0.00%> (-1.66%) ⬇️
server/schedulers/utils.go 93.63% <0.00%> (-1.28%) ⬇️
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update afe21ec...5be5f7c. Read the comment docs.

// RegionStats is a thread-safe method
return c.hotStat.RegionStats(statistics.ReadFlow, c.GetOpts().GetHotRegionCacheHitsThreshold())
// As read stats are reported by store heartbeat, the threshold needs to be multiplied by 6.
threshold := c.GetOpts().GetHotRegionCacheHitsThreshold() * 6
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace 6 with writeInterval/readInterval?

Signed-off-by: yisaer <disxiaofei@163.com>
@ti-chi-bot
Copy link
Member

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • lhy1024

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by writing /lgtm in a comment.
Reviewer can cancel approval by writing /lgtm cancel in a comment.

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label May 26, 2021
@Yisaer Yisaer added the require-LGT1 Indicates that the PR requires an LGTM. label May 26, 2021
@Yisaer
Copy link
Contributor Author

Yisaer commented May 26, 2021

/merge

@ti-chi-bot
Copy link
Member

@Yisaer: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 6ed3c19

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label May 26, 2021
@ti-chi-bot
Copy link
Member

@Yisaer: Your PR was out of date, I have automatically updated it for you.

At the same time I will also trigger all tests for you:

/run-all-tests

If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Yisaer
Copy link
Contributor Author

Yisaer commented May 26, 2021

/run-integration-common-test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note-none Denotes a PR that doesn't merit a release note. require-LGT1 Indicates that the PR requires an LGTM. status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configuration for the hot-region scheduling
3 participants