Skip to content

[Feature]: Upgrade-safe Helm chart defaults for the Async Processor #560

Open

Description

@jtechapps

Scope

Multi-replica Async Processors are not officially supported yet. This issue covers making upgrades and restarts of the single-replica processor the chart ships (replicas: 1, ap-deployments.yaml#L51) safe by default. Adding a replica count or multi-replica settings is out of scope.

Problem Statement

Every helm upgrade, helm rollback or config change replaces the single processor pod. These chart gaps decide whether in-flight work survives that.

Two items that would normally come up here don't fit a single replica:

Proposed Solution

  1. Make the update strategy explicit, and document it. Add a strategy value whose default is spelled out in the template. Document the trade-off for one replica:

    • RollingUpdate with maxSurge: 1, maxUnavailable: 0: no gap in consumption, but two versions overlap until the old pod finishes draining.
    • Recreate: no version overlap, but nothing consumes the queue from SIGTERM until the new pod is Ready.

    Choosing the default is part of this issue.

  2. Make terminationGracePeriodSeconds a value. Default it to drainTimeout plus a margin (e.g. 10s), and fail the render when it is set below drainTimeout.

  3. Add a checksum/config pod annotation computed over the AP ConfigMap, so a config-only helm upgrade rolls the pod. Then remove the manual rollout restart steps from the llm-d guides.

  4. Fix the chart version: keep Chart.yaml version and appVersion in sync with releases, or document that they are placeholders.

  5. Add helm-unittest cases for the above.

  6. Keep replicas: 1 hardcoded for now, with a template comment saying multi-replica is not supported yet.

Part of llm-d/llm-d#3073 (llm-d components upgrade).

Activity

  1. added
    enhancement
    on Nov 18, 2026
  2. jtechapps commented on Nov 18, 2026

    @jtechapps
    CollaboratorAuthor

    Note: multi-replica llm-d-async is unsupported. Single upgrade restarts/upgrades are the only thing in scope.

  3. sohom-cs commented on Nov 18, 2026

    @sohom-cs
    Contributor

    The hardcoded 130s is the actual bug. On SIGTERM the runner drains for up to drainTimeout, cancels whatever is left, and only then flushes it to the retry set with its claim renewed, so the next pod picks it up within one poll. Work only waits out the 300s lease when the kubelet kills the pod before that flush, and today any drainTimeout above about 120s causes exactly that. The grace period should be drainTimeout plus that flush tail.

    @jtechapps, one decision before the PR: Helm can't parse Go durations. Either the template accepts single-unit values (90s, 2m) and fails the render on anything else, or a new drainTimeoutSeconds drives both the flag and the grace period, with drainTimeout kept as a deprecated alias. I'd go with the second.

    I'll take this. The first PR fixes the grace period and makes the strategy explicit, keeping RollingUpdate with maxSurge: 1 since cancelled work already comes back through retry and the overlap only hurts on envelope changes (#561). It also adds checksum/config with helm-unittest cases.

    /assign

  4. sohom-cs commented on Nov 25, 2026

    @sohom-cs
    Contributor

    Correction: Helm templates can parse Go durations, since sprig's mustDateModify runs time.ParseDuration, the same parser behind --drain-timeout. So the first option can take any duration with no new value and is the smaller change; the second still gives an integer setting, and either works for me.

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

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions