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

release-22.2: schedulerlatency: export Go scheduling latency metric #88403

Merged
merged 2 commits into from
Sep 22, 2022

Commits on Sep 12, 2022

  1. schedulerlatency: export Go scheduling latency metric

    And record data into CRDB's internal time-series database. Informs
    \#82743 and #87823. To export scheduling latencies to prometheus, we
    choose an exponential bucketing scheme with base multiple of 1.1, and
    the output range bounded to [50us, 100ms). This makes for ~70 buckets.
    It's worth noting that the default histogram buckets used in Go are
    not fit for our purposes. If we care about improving it, we could
    consider patching the runtime.
    
      bucket[  0] width=0s boundary=[-Inf, 0s)
      bucket[  1] width=1ns boundary=[0s, 1ns)
      bucket[  2] width=1ns boundary=[1ns, 2ns)
      bucket[  3] width=1ns boundary=[2ns, 3ns)
      bucket[  4] width=1ns boundary=[3ns, 4ns)
      ...
      bucket[270] width=16.384µs boundary=[737.28µs, 753.664µs)
      bucket[271] width=16.384µs boundary=[753.664µs, 770.048µs)
      bucket[272] width=278.528µs boundary=[770.048µs, 1.048576ms)
      bucket[273] width=32.768µs boundary=[1.048576ms, 1.081344ms)
      bucket[274] width=32.768µs boundary=[1.081344ms, 1.114112ms)
      ...
      bucket[717] width=1h13m18.046511104s boundary=[53h45m14.046488576s, 54h58m32.09299968s)
      bucket[718] width=1h13m18.046511104s boundary=[54h58m32.09299968s, 56h11m50.139510784s)
      bucket[719] width=1h13m18.046511104s boundary=[56h11m50.139510784s, 57h25m8.186021888s)
      bucket[720] width=57h25m8.186021888s boundary=[57h25m8.186021888s, +Inf)
    
    Release note: None
    irfansharif committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    11a8072 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2022

  1. admission: fix some code comments

    Release note: None
    irfansharif committed Sep 22, 2022
    Configuration menu
    Copy the full SHA
    86e487a View commit details
    Browse the repository at this point in the history