Skip to content

Commit 3b2df7c

Browse files
authored
Merge pull request #146314 from cockroachdb/blathers/backport-release-25.2-146288
release-25.2: admission: log the ingest model
2 parents 6166a1d + 1239da2 commit 3b2df7c

File tree

3 files changed

+65
-61
lines changed

3 files changed

+65
-61
lines changed

pkg/util/admission/io_load_listener.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1341,10 +1341,14 @@ func (res adjustTokensResult) SafeFormat(p redact.SafePrinter, _ rune) {
13411341
res.aux.perWorkTokensAux.intL0WriteLinearModel.multiplier,
13421342
ib(res.aux.perWorkTokensAux.intL0WriteLinearModel.constant),
13431343
res.l0WriteLM.multiplier, ib(res.l0WriteLM.constant))
1344-
p.Printf("ingested-model %.2fx+%s (smoothed %.2fx+%s) + ",
1344+
p.Printf("l0-ingest-model %.2fx+%s (smoothed %.2fx+%s) + ",
13451345
res.aux.perWorkTokensAux.intL0IngestedLinearModel.multiplier,
13461346
ib(res.aux.perWorkTokensAux.intL0IngestedLinearModel.constant),
13471347
res.l0IngestLM.multiplier, ib(res.l0IngestLM.constant))
1348+
p.Printf("ingest-model %.2fx+%s (smoothed %.2fx+%s) + ",
1349+
res.aux.perWorkTokensAux.intIngestedLinearModel.multiplier,
1350+
ib(res.aux.perWorkTokensAux.intIngestedLinearModel.constant),
1351+
res.ingestLM.multiplier, ib(res.ingestLM.constant))
13481352
p.Printf("write-amp-model %.2fx+%s (smoothed %.2fx+%s) + ",
13491353
res.aux.perWorkTokensAux.intWriteAmpLinearModel.multiplier,
13501354
ib(res.aux.perWorkTokensAux.intWriteAmpLinearModel.constant),
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
echo
22
----
33
zero:
4-
compaction score 0.000 (0 ssts, 0 sub-levels), L0 growth 0 B (write 0 B (ignored 0 B) ingest 0 B (ignored 0 B)): requests 0 (0 bypassed) with 0 B acc-write (0 B bypassed) + 0 B acc-ingest (0 B bypassed) + 0 B adjusted-LSM-writes + 0 B adjusted-disk-writes + write-model 0.00x+0 B (smoothed 0.00x+0 B) + ingested-model 0.00x+0 B (smoothed 0.00x+0 B) + write-amp-model 0.00x+0 B (smoothed 0.00x+0 B) + at-admission-tokens 0 B, compacted 0 B [≈0 B], flushed 0 B [≈0 B] (mult 1.00); admitting all (used total: 0 B elastic 0 B); write stalls 12
4+
compaction score 0.000 (0 ssts, 0 sub-levels), L0 growth 0 B (write 0 B (ignored 0 B) ingest 0 B (ignored 0 B)): requests 0 (0 bypassed) with 0 B acc-write (0 B bypassed) + 0 B acc-ingest (0 B bypassed) + 0 B adjusted-LSM-writes + 0 B adjusted-disk-writes + write-model 0.00x+0 B (smoothed 0.00x+0 B) + l0-ingest-model 0.00x+0 B (smoothed 0.00x+0 B) + ingest-model 0.00x+0 B (smoothed 0.00x+0 B) + write-amp-model 0.00x+0 B (smoothed 0.00x+0 B) + at-admission-tokens 0 B, compacted 0 B [≈0 B], flushed 0 B [≈0 B] (mult 1.00); admitting all (used total: 0 B elastic 0 B); write stalls 12
55
real-numbers:
6-
compaction score 2.700[L0-overload] (195 ssts, 27 sub-levels), L0 growth 577 MiB (write 0 B (ignored 0 B) ingest 0 B (ignored 0 B)): requests 0 (0 bypassed) with 0 B acc-write (0 B bypassed) + 0 B acc-ingest (0 B bypassed) + 0 B adjusted-LSM-writes + 0 B adjusted-disk-writes + write-model 0.00x+0 B (smoothed 0.00x+0 B) + ingested-model 0.00x+0 B (smoothed 0.00x+0 B) + write-amp-model 0.00x+0 B (smoothed 0.00x+0 B) + at-admission-tokens 0 B, compacted 77 MiB [≈62 MiB], flushed 0 B [≈0 B] (mult 1.00); admitting 116 MiB (rate 7.7 MiB/s) (elastic 1 B rate 0 B/s) due to L0 growth (used total: 0 B elastic 0 B); write stalls 2
6+
compaction score 2.700[L0-overload] (195 ssts, 27 sub-levels), L0 growth 577 MiB (write 0 B (ignored 0 B) ingest 0 B (ignored 0 B)): requests 0 (0 bypassed) with 0 B acc-write (0 B bypassed) + 0 B acc-ingest (0 B bypassed) + 0 B adjusted-LSM-writes + 0 B adjusted-disk-writes + write-model 0.00x+0 B (smoothed 0.00x+0 B) + l0-ingest-model 0.00x+0 B (smoothed 0.00x+0 B) + ingest-model 0.00x+0 B (smoothed 0.00x+0 B) + write-amp-model 0.00x+0 B (smoothed 0.00x+0 B) + at-admission-tokens 0 B, compacted 77 MiB [≈62 MiB], flushed 0 B [≈0 B] (mult 1.00); admitting 116 MiB (rate 7.7 MiB/s) (elastic 1 B rate 0 B/s) due to L0 growth (used total: 0 B elastic 0 B); write stalls 2

0 commit comments

Comments
 (0)