Skip to content
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

feat(hotspot): new algorithm of hotspot detection #479

Merged
merged 226 commits into from
Mar 5, 2020
Merged

Conversation

Smityz
Copy link
Contributor

@Smityz Smityz commented Feb 19, 2020

What problem does this PR solve?

According to #477

What is changed and how it works?

It is a strategy of hotspot detection #444
Compared to the previous algorithm, it makes the following improvements:

  1. It defined the concept of threshold, and ready for automatic monitoring.
  2. It has higher stability

Result

  1. no hotspot, single set/single get
    微信截图_20200221134449
  2. one hotspot, single set/single get
    微信截图_20200221132757
  3. two hotspot, single set/single get
    微信截图_20200221144307
  4. three hotspot, single set/single get
    微信截图_20200221142337
    5 one hotspot, multiget

New Configuration:

[pegasus.collector]
  hotspot_detect_algorithm = hotspot_algo_qps_variance # default = hotspot_algo_qps_variance

src/server/info_collector.cpp Outdated Show resolved Hide resolved
src/server/info_collector.cpp Outdated Show resolved Hide resolved
src/server/info_collector.cpp Outdated Show resolved Hide resolved
src/server/info_collector.cpp Outdated Show resolved Hide resolved
src/server/info_collector.cpp Outdated Show resolved Hide resolved
src/server/info_collector.cpp Outdated Show resolved Hide resolved
Co-Authored-By: Yingchun Lai <405403881@qq.com>
acelyc111
acelyc111 previously approved these changes Mar 5, 2020
@Smityz Smityz merged commit a0ddab2 into apache:master Mar 5, 2020
@Smityz Smityz deleted the hotspot branch March 12, 2020 10:28
@neverchanje neverchanje mentioned this pull request Mar 31, 2020
@neverchanje neverchanje added the type/config-change Added or modified configuration that should be noted on release note of new version. label Mar 31, 2020
acelyc111 pushed a commit that referenced this pull request Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.12.3 type/config-change Added or modified configuration that should be noted on release note of new version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants