Skip to content

feat: Add Scale-to-Zero configuration to KServe InferenceService #47

Closed as not planned

Description

@KUNDAN1334

Problem

The current manifests/inference-service.yaml has no autoscaling configuration. The InferenceService will keep GPU nodes running continuously even when idle, which is costly and inefficient for the bursty, on-demand query patterns of a documentation assistant.

Proposed Solution

Add Scale-to-Zero using KServe's Knative-based autoscaling annotations:

  • Set minReplicas: 0 to allow full scale-down when idle
  • Configure scaleTarget and scaleMetric (e.g. concurrency-based)
  • Document cold-start latency tradeoff in README
  • Add optional KEDA-based scaling config as an alternative for
    clusters without Knative

Why This Matters

Scale-to-Zero for bursty workloads is explicitly listed as a key deliverable in the GSoC project scope for this repo. This change also makes the reference architecture more cost-practical for community members deploying on OCI or other clouds.

References

I'd like to work on this.

Activity

  1. KUNDAN1334 commented on Feb 22, 2026

    @KUNDAN1334
    Author

    Hi @franciscojavierarceo

    I’d like to work on this issue.

    My plan is to:

    Add scale-to-zero support using KServe’s Knative-based autoscaling annotations
    Set minReplicas: 0 to enable full scale-down when idle
    Configure scaleMetric and scaleTarget (concurrency-based)
    Document the cold-start latency tradeoff in the README

    Optionally add a KEDA-based scaling alternative for clusters without Knative

    Please let me know if this approach aligns with the expected direction before I start implementing it. Thanks!

  2. chasecadet commented on Nov 20, 2026

    @chasecadet
    Contributor

    Thank you for reporting this!

    We are closing pre-restructure issues targeting the legacy server/, server-https/, manifests/, kagent-feast-mcp/, or in-process SentenceTransformer prototype code. In #207, #210, #233, #240, and #249, kubeflow/docs-agent migrated to dedicated TEI (text-embeddings-inference), FastMCP (docs-agent-mcp/mcp-server/), shared modular KFP pipelines (docs-agent-mcp/pipelines/), and Helm charts (docs-agent-mcp/charts/).

    If you still observe an equivalent issue on the current main stack, please feel free to open a new issue using the current issue templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions