Skip to content

feat: use latency class and max aggregation for wakeup-latency - #74

Merged
k-rister merged 1 commit into
mainfrom
feat-latency-aggregation
Jul 31, 2026
Merged

feat: use latency class and max aggregation for wakeup-latency#74
k-rister merged 1 commit into
mainfrom
feat-latency-aggregation

Conversation

@k-rister

Copy link
Copy Markdown
Contributor

Summary

  • Change wakeup-latency-usec metric descriptor from class: count to class: latency with default-aggregation: max
  • Cyclictest reports worst-case wakeup latency, so aggregating across engines should take the maximum rather than summing (which inflates the value by N engines)

This is the first benchmark migration for CDM default-aggregation support (CDM PR#202). The default-aggregation field is accepted by both v9dev and v10dev, so this change is forward-compatible regardless of which CDM version is active.

Validated with a 4-engine cyclictest run on a kube endpoint:

  • sum (old behavior): 24860 usec (incorrect — 4x inflated)
  • max (new behavior): 4431 usec (correct — worst engine)
  • avg: 4414 usec
  • min: 4397 usec

Test plan

  • Run cyclictest with multiple engines, verify crucible get result shows the max value rather than the sum
  • Verify re-indexing existing results still works (field is ignored by CDM versions that don't support it)

🤖 Generated with Claude Code

Change the metric descriptor from class=count to class=latency
and add default-aggregation=max. This ensures that when multiple
engines report wakeup latency, the aggregated result is the
maximum across engines (worst-case latency) rather than the sum.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@k-rister k-rister self-assigned this Jul 31, 2026
@k-rister
k-rister requested a review from a team July 31, 2026 18:11
@project-crucible-tracking project-crucible-tracking Bot moved this to In Progress in Crucible Tracking Jul 31, 2026
@k-rister
k-rister merged commit cb3abef into main Jul 31, 2026
38 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Crucible Tracking Jul 31, 2026
@k-rister
k-rister deleted the feat-latency-aggregation branch July 31, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants