fix(function-autoscaler): use unified invocation metric - #1600
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. 📝 WalkthroughWalkthroughInvocation discovery now uses ChangesInvocation discovery query consolidation
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: 🔵 Low · up to The autoscaler now relies on function_request_total for invocation discovery. This is mergeable provided managed deployments expose that metric before upgrade; otherwise autoscaling discovery may fail closed. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 Clippy (1.97.1)Clippy execution failed Comment |
🛡️ CodeQL Analysis🚨 Found 5 issue(s) Severity Breakdown:
📋 Top Issues🔗 View full details in Security tab 🕐 Last updated: 2026-09-05 20:26:07 UTC | Commit: a2ac622 |
TL;DR
Use
function_request_totalas the single recent-invocation metric for both the invocation service and gRPC proxy.This removes the unused
function_requestquery and stops attributing combined invocation traffic to gRPC proxy.Additional Details
invocation.Managed deployments must expose
function_request_totalbefore rolling out this autoscaler version. Self-managed deployments already expose that name.For the Reviewer
Please focus on the query construction and per-function fail-closed behavior in
work/discovery.rs.For QA
bazel test //src/control-plane-services/function-autoscaler/crates/server:rs_autoscaler_test --nocache_test_results --runs_per_test=3nvcr.iobase image without registry credentials.Issues
Related to #15
Checklist
Summary by CodeRabbit