kvserver: improve help text for admission.io.overload#90788
kvserver: improve help text for admission.io.overload#90788craig[bot] merged 1 commit intocockroachdb:masterfrom
admission.io.overload#90788Conversation
KaiSun314
left a comment
There was a problem hiding this comment.
Thank you for improving the help text for admission.io.overload!
Reviewable status:
complete! 1 of 0 LGTMs obtained (waiting on @irfansharif and @kvoli)
pkg/kv/kvserver/metrics.go line 1063 at r1 (raw file):
Help: `1-normalized float indicating whether IO admission control considers the store as overloaded with respect to compaction out of L0 (considers sub-level and file counts).` Measurement: "Threshold", Unit: metric.Unit_PERCENT,
The range for admission io overload metric is technically [0, +∞) (albeit most of the time this metric should be within [0, 1)). Moreover, we compare this metric against the threshold set by the admission.kv.pause_replication_io_threshold cluster setting, which may not be 1. I was wondering if Unit_PERCENT would still be proper if admission io overload metric could be > 1?
KaiSun314
left a comment
There was a problem hiding this comment.
Reviewable status:
complete! 1 of 0 LGTMs obtained (waiting on @irfansharif and @kvoli)
pkg/kv/kvserver/metrics.go line 1061 at r1 (raw file):
metaIOOverload = metric.Metadata{ Name: "admission.io.overload", Help: `1-normalized float indicating whether IO admission control considers the store as overloaded with respect to compaction out of L0 (considers sub-level and file counts).`
Need comma at end of line
Since this is text that's available in any running binary (`SHOW ALL CLUSTER SETTINGS`), we shouldn't expect readers to have the source code checked out, which makes our referencing of specific file names less than useful. Release note: None Release justification: No behavioural change, only changing user-visible help text.
91ecde2 to
084f85a
Compare
irfansharif
left a comment
There was a problem hiding this comment.
Thanks!
bors r+
Reviewable status:
complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @KaiSun314 and @kvoli)
pkg/kv/kvserver/metrics.go line 1061 at r1 (raw file):
Previously, KaiSun314 (Kai Sun) wrote…
Need comma at end of line
Done.
pkg/kv/kvserver/metrics.go line 1063 at r1 (raw file):
Unit percent is fine, it's sensible to say we're 150% of the threshold since AC is off/malfunctioning for ex.
Moreover, we compare this metric against the threshold set by the admission.kv.pause_replication_io_threshold cluster setting, which may not be 1
A lot of our % based controls/cluster settings are floating point ones, so that feels fine too. These for ex.:
cockroach/pkg/util/admission/scheduler_latency_listener.go
Lines 209 to 260 in e397faf
|
👎 Rejected by code reviews |
|
Oh RIP, @KaiSun314, you might have re-stamp. |
KaiSun314
left a comment
There was a problem hiding this comment.
Oop sorry about that, thanks again for making this improvement!
Reviewable status:
complete! 1 of 0 LGTMs obtained
|
Nothing to apologize for! bors r+ |
|
Build succeeded: |
Since this is text that's available in any running binary (
SHOW ALL CLUSTER SETTINGS), we shouldn't expect readers to have the source code checked out, which makes our referencing of specific file names less than useful. See #87656 (review).Release note: None
Release justification: No behavioural change, only changing user-visible help text.