fix(function-autoscaler): re-evaluate metric source after first LLM request
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 218
- Forks
- 72
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 427
Description
Describe the bug
In autoscaler 1.21.0, a running LLM function with no prior requests has no worker or per-function gateway series. The autoscaler selects ControlPlane and caches it for one hour, so later LLM traffic remains invisible and the function cannot scale correctly.
Steps or code to reproduce bug
- Deploy a new LLM function with
minInstances: 1. - Wait 2–3 minutes without sending requests.
- Send sustained LLM traffic.
- Observe that the autoscaler continues using ControlPlane metrics and reports 0% utilization.
Expected behavior
Absence-based fallback is re-evaluated after gateway metrics appear, and missing utilization data cannot trigger scale-to-zero.
Additional context
- Parent tracking issue: https://github.com/NVIDIA/nvcf/issues/15
- Add coverage for traffic beginning after initial metric-source selection.
By submitting this issue, you agree to follow our code of conduct and our contributing guidelines.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the function autoscaler’s metric-source selection and its one-hour cache, then inspect the existing autoscaler coverage around traffic beginning after initial selection. Reproduce the no-request-then-LLM-traffic sequence and verify that gateway metrics are reconsidered and missing utilization cannot cause scale-to-zero.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cloud, observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100