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

Calculate the state of the cluster using the CPU usages reported by TiKV #1875

Merged
merged 19 commits into from
Dec 2, 2019

Commits on Nov 19, 2019

  1. caculate the cluster cpu

    Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
    shafreeck committed Nov 19, 2019
    Configuration menu
    Copy the full SHA
    06a33be View commit details
    Browse the repository at this point in the history
  2. cacluate the cluster state

    Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
    shafreeck committed Nov 19, 2019
    Configuration menu
    Copy the full SHA
    ac91b80 View commit details
    Browse the repository at this point in the history
  3. add unittest for keys and bytes statistics

    Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
    shafreeck committed Nov 19, 2019
    Configuration menu
    Copy the full SHA
    77e8d5d View commit details
    Browse the repository at this point in the history
  4. Add string representation for LoadState

    Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
    shafreeck committed Nov 19, 2019
    Configuration menu
    Copy the full SHA
    abdc1a6 View commit details
    Browse the repository at this point in the history
  5. cluster: support to exclude store IDs

    Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
    shafreeck committed Nov 19, 2019
    Configuration menu
    Copy the full SHA
    cbccf03 View commit details
    Browse the repository at this point in the history
  6. cluster: fix the potential panic caused by a 0 interval

    Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
    shafreeck committed Nov 19, 2019
    Configuration menu
    Copy the full SHA
    1174821 View commit details
    Browse the repository at this point in the history
  7. cluster: fix potential panic may be caused by div 0

    Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
    shafreeck committed Nov 19, 2019
    Configuration menu
    Copy the full SHA
    b6defdf View commit details
    Browse the repository at this point in the history
  8. cluster: add bytes and keys as the statistics to return the cluster

    state
    
    Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
    shafreeck committed Nov 19, 2019
    Configuration menu
    Copy the full SHA
    6ff7076 View commit details
    Browse the repository at this point in the history
  9. cluster: fix typo

    Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
    shafreeck committed Nov 19, 2019
    Configuration menu
    Copy the full SHA
    b6b2482 View commit details
    Browse the repository at this point in the history
  10. cluster: use named results

    Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
    shafreeck committed Nov 19, 2019
    Configuration menu
    Copy the full SHA
    dbec094 View commit details
    Browse the repository at this point in the history
  11. cluster: move LoadStateNone to the first value

    Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
    shafreeck committed Nov 19, 2019
    Configuration menu
    Copy the full SHA
    48e74e6 View commit details
    Browse the repository at this point in the history
  12. cluster: fix the comment

    Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
    shafreeck committed Nov 19, 2019
    Configuration menu
    Copy the full SHA
    e4c7d4e View commit details
    Browse the repository at this point in the history
  13. cluster: avoid using cap as the var name

    Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
    shafreeck committed Nov 19, 2019
    Configuration menu
    Copy the full SHA
    587d09f View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2019

  1. cluster: use statistics's median filter to calculate cpu usage

    Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
    shafreeck committed Nov 20, 2019
    Configuration menu
    Copy the full SHA
    9874883 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2019

  1. cluster: use the average value of the threads cpu usage

    Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
    shafreeck committed Nov 29, 2019
    Configuration menu
    Copy the full SHA
    2b7458b View commit details
    Browse the repository at this point in the history
  2. cluster: remove the unused parameter

    Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
    shafreeck committed Nov 29, 2019
    Configuration menu
    Copy the full SHA
    2a1e832 View commit details
    Browse the repository at this point in the history
  3. cluster: remove the unused test code

    Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
    shafreeck committed Nov 29, 2019
    Configuration menu
    Copy the full SHA
    c6ecf2c View commit details
    Browse the repository at this point in the history
  4. cluster: fix typos

    Signed-off-by: Shafreeck Sea <shafreeck@gmail.com>
    shafreeck committed Nov 29, 2019
    Configuration menu
    Copy the full SHA
    dc6ac02 View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2019

  1. Configuration menu
    Copy the full SHA
    a10746b View commit details
    Browse the repository at this point in the history