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

Tablet throttler: read and use MySQL host metrics #16904

Open
wants to merge 28 commits into
base: main
Choose a base branch
from

Commits on Sep 23, 2024

  1. mysqlctl proto: adding ThrottlerMetrics rpc

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    71d98fe View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2024

  1. naming: SystemMetrics instead of ThrottlerMetrics

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    9922731 View commit details
    Browse the repository at this point in the history
  2. implement SystemMetrics

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    214db0d View commit details
    Browse the repository at this point in the history
  3. tabletmanager: MysqlSystemMetrics rpc

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    5660b77 View commit details
    Browse the repository at this point in the history
  4. implement SystemMetrics

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    2ec9f75 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2024

  1. pass TabletAlias to throttler

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    0741a2b View commit details
    Browse the repository at this point in the history
  2. implement MysqlSystemMetrics

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    0b3666b View commit details
    Browse the repository at this point in the history
  3. force check result

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    20e0577 View commit details
    Browse the repository at this point in the history
  4. unit test

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    df99856 View commit details
    Browse the repository at this point in the history
  5. resolved conflict

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    a5d76d3 View commit details
    Browse the repository at this point in the history
  6. remove bogus files

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    098e6a4 View commit details
    Browse the repository at this point in the history
  7. Merge branch 'main' into throttler-mysql-metrics

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    338c52c View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2024

  1. resolved conflict

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    4250909 View commit details
    Browse the repository at this point in the history
  2. remove excessive file, caused by merge conflict

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    07a3461 View commit details
    Browse the repository at this point in the history
  3. Rename 'SystemMetrics'->'HostMetrics'

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    2c48d36 View commit details
    Browse the repository at this point in the history
  4. better doclet

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    0d73d30 View commit details
    Browse the repository at this point in the history
  5. use vtrpcpb.RPCError

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    e3fccae View commit details
    Browse the repository at this point in the history
  6. "datadir-used-ratio"

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    757cada View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2024

  1. internal refactor: SelfMetricReadParams

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    7dd4b8b View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2024

  1. Merge branch 'main' into throttler-use-mysql-metrics

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    73fd43f View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2024

  1. using threads_running as loadavg does not produce meaningful info on …

    …MacOS, and MacOS is beign used in local dev env unit and endtoend testing
    
    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    9166093 View commit details
    Browse the repository at this point in the history
  2. adding MysqldLoadAvgMetricName and MysqldDatadirUsedRatioMetricName

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    545112f View commit details
    Browse the repository at this point in the history
  3. moredebug info in case of error

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    72b09b9 View commit details
    Browse the repository at this point in the history
  4. return empty (zero) result for loadavg when not on linux

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    91d2e42 View commit details
    Browse the repository at this point in the history
  5. return empty (zero) result for loadavg when not on linux

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    38b9d73 View commit details
    Browse the repository at this point in the history
  6. SelfMetricReadParams includes TabletManagerClient and TabletInfo

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    adfcf6d View commit details
    Browse the repository at this point in the history
  7. pass tmClient and tabletInfo to self metrics

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    d8b6ec2 View commit details
    Browse the repository at this point in the history
  8. Merge branch 'main' into throttler-use-mysql-metrics

    Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
    shlomi-noach committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    6726285 View commit details
    Browse the repository at this point in the history