NVIDIA / NVIDIA/nvcf

fix(function-autoscaler): re-evaluate metric source after first LLM request

Open
#1,601 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs-triage
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

  1. Deploy a new LLM function with minInstances: 1.
  2. Wait 2–3 minutes without sending requests.
  3. Send sustained LLM traffic.
  4. 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


By submitting this issue, you agree to follow our code of conduct and our contributing guidelines.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.