Skip to content

Add warm capacity observability#609

Merged
bill-ph merged 2 commits into
mainfrom
codex/dynamic-warm-capacity-pr-e
May 22, 2026
Merged

Add warm capacity observability#609
bill-ph merged 2 commits into
mainfrom
codex/dynamic-warm-capacity-pr-e

Conversation

@bill-ph
Copy link
Copy Markdown
Collaborator

@bill-ph bill-ph commented May 21, 2026

Summary

  • add Kubernetes warm-capacity metrics for foreground misses, recent demand, base/dynamic/effective targets, ready/spawning warm workers, global headroom, and reconciliation spawn outcomes
  • wire dynamic warm-capacity target and worker-state metrics into the janitor path without adding foreground configstore reads
  • add reason-aware capacity reject metric labels plus OpenTelemetry/log attributes for miss reason and retry hint
  • add configstore aggregation for cluster-wide ready/spawning neutral warm workers by image scope
  • update the dynamic warm-capacity plan with the PR E observability scope

Tests

  • go test ./controlplane
  • go test ./controlplane/configstore
  • go test -tags kubernetes ./controlplane
  • go test -tags kubernetes ./controlplane ./cmd/duckgres-controlplane
  • go test -run 'TestListWarmCapacityWorkerStatsPostgres|TestRecordWarmCapacityMissAggregatesByBucketScopeAndReasonPostgres|TestListWarmCapacityMissesSinceAggregatesByScopeAndReasonPostgres' ./tests/configstore
  • golangci-lint run

@bill-ph bill-ph merged commit 8591cb1 into main May 22, 2026
22 checks passed
@bill-ph bill-ph deleted the codex/dynamic-warm-capacity-pr-e branch May 22, 2026 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant