-
Notifications
You must be signed in to change notification settings - Fork 727
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
statistics, schedulers: split hot cache to each store #1641
Conversation
3136d89
to
e347d3a
Compare
Signed-off-by: nolouch <nolouch@gmail.com>
e347d3a
to
b262392
Compare
server/statistics/hot_cache.go
Outdated
hotRegionThreshold := calculateWriteHotThreshold(stats) | ||
return w.isNeedUpdateStatCache(region, WrittenBytesPerSec, hotRegionThreshold, value, WriteFlow) | ||
for _, storeID := range storeIDs { | ||
WrittenBytesPerSec = uint64(float64(region.GetBytesWritten()) / float64(RegionHeartBeatReportInterval)) |
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.
This can be calculated before the for loop
Signed-off-by: nolouch <nolouch@gmail.com>
Signed-off-by: nolouch <nolouch@gmail.com>
Signed-off-by: nolouch <nolouch@gmail.com>
Signed-off-by: nolouch <nolouch@gmail.com>
Signed-off-by: nolouch <nolouch@gmail.com>
Signed-off-by: nolouch <nolouch@gmail.com>
Signed-off-by: nolouch <nolouch@gmail.com>
Signed-off-by: nolouch <nolouch@gmail.com>
Signed-off-by: nolouch <nolouch@gmail.com>
Signed-off-by: nolouch <nolouch@gmail.com>
PTAL @Luffbee @jiyingtk @shafreeck |
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.
Why remove region flow metrics?
@shafreeck Usually a metric traces a stable object, too much region may affect the performance. |
Signed-off-by: nolouch <nolouch@gmail.com>
PTAL @rleungx @shafreeck |
Signed-off-by: nolouch <nolouch@gmail.com>
PTAL @shafreeck @Luffbee |
What problem does this PR solve?
Our concert about hotspot should the
hot store
then thehot region
more reasonable.What is changed and how it works?
hot cache
as a statistic for each store.Check List
Tests