﻿# Stage a stateful inference update with a partition

A StatefulSet partition selects ordinal ranges for template updates; mixed-version model compatibility remains an application requirement.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-ks-statefulset-update-partition/
Language: en

A stateful inference rollout should update a limited set of workers while preserving lower-index workers on the previous revision. A StatefulSet rolling-update partition expresses that ordinal boundary. It does not express a random traffic percentage or guarantee that two model-stack versions can safely cooperate.

## Read the boundary as an ordinal

Under the documented partition behavior, Pods at or above the partition are updated from the new template. Pods below it remain on the previous revision, including when recreated under that policy. Check the effective ordinal range rather than treating the field as a count of new Pods. A configured nondefault start makes that distinction especially important.

## Inspect the complete update strategy

The partition works within the configured RollingUpdate strategy. Other update controls and supported features can affect progression and availability. Record them with the template revision. Do not assume a Deployment's surge behavior or a traffic router's canary percentage applies to the StatefulSet controller merely because the rollout is called staged.

## Validate mixed-version compatibility

Independent serving replicas can sometimes coexist under a supported API contract. Tightly coupled distributed workers may require matching communication protocols, tensor layouts or collective participation. Determine whether the proposed partition can form a valid model group before advancing it. A ready container is insufficient evidence that a mixed group produces correct results.

## Observe the updated role

Use safe instance and revision markers to identify which ordinal actually changed. Run bounded execution checks through the intended routing path and inspect the controller's progression conditions. If an updated Pod cannot become ready, diagnose that failure before interpreting a stationary rollout as a partition error. The controller can be waiting on the new revision it already attempted.

## Test replacement below the boundary

In an isolated synthetic StatefulSet, update the template with a partition, then replace a Pod below the boundary and verify its expected revision. Compare this with an eligible higher ordinal. Acceptance means the staged population follows the declared boundary and the application supports coexistence. It does not provide a full rollback transaction for external model files, mutable configuration or persistent data changed by the updated workers.

## Primary references

[Kubernetes StatefulSets](https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/).

[Kubernetes Pod Lifecycle](https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/).

[Kubernetes API Concepts](https://kubernetes.io/docs/reference/using-api/api-concepts/).

Related reading: [Updating an LLM on a GPU: testing a new version with a small rollout](/journal/model-update-canary/); [Deployment rollback starts the new image: the mutable tag problem](/journal/kubernetes-rollback-mutable-image-tag/).
