fix(function-autoscaler): record utilization data age - #1875
Conversation
Signed-off-by: Bora Oztekin <boztekin@nvidia.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 WalkthroughWalkthroughThe autoscaler now retains the newest utilization timestamp, calculates its non-negative age in milliseconds, and records that age when data is available. Tests cover timestamp propagation, missing timestamps, and future timestamps. ChangesUtilization age tracking
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change records utilization-data age only for completed scaling decisions and safely handles missing or future timestamps, with no concrete merge-blocking risk identified. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 Clippy (1.98.0)Clippy execution timed out Comment |
🛡️ CodeQL Analysis🚨 Found 5 issue(s) Severity Breakdown:
📋 Top Issues🔗 View full details in Security tab 🕐 Last updated: 2026-09-14 22:22:25 UTC | Commit: 0f6f1bd |
|
🎉 This PR is included in version nvcf-function-autoscaler-v1.21.7 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
TL;DR
Record the age of the newest utilization sample after the autoscaler produces a scaling decision, making the documented histogram observable.
Additional Details
nvcf_autoscaler.processing.utilization_data_age_millisecondsonly for real scaling decisions.For the Reviewer
Please focus on the timestamp units and metric emission point in
work/mod.rs.For QA
Passed locally:
cargo clippy -p rs-autoscaler --all-targets -- -D warningscargo test -p rs-autoscaler(158 passed, 10 ignored)git diff --checkcargo fmt -p rs-autoscaler --checkstill reports pre-existing formatting drift inwork/discovery.rsand unrelated sections ofwork/mod.rs; the new lines are formatted and that unrelated drift is excluded from this PR.Issues
Relates to #15
Checklist
Summary by CodeRabbit