Rollout groups Unreleased: coming in v1.3

Rollout groups roll an InferenceService's OMENative components out as one, so prefill and decode change together, by canary, blue-green or rolling update, with metric-gated canary steps.

A rollout group rolls a change out to components of an InferenceService as a unit. Put the engine and the decoder in one group, and prefill and decode move to each new revision together, by blue-green, rolling update or canary. A canary moves capacity in steps, and a step can wait for a timer, for you, or for Prometheus analysis that advances the canary or rolls it back.

You declare up to four groups in spec.rollout.groups. A component can be in only one group, and a component in no group rolls out on its own.

Groups need OMENative declared on the InferenceService, with spec.deploymentMode: OMENative or the component's ome.io/deploymentMode annotation. A component that's OMENative only because of its leader and worker, or its runtime, doesn't count, as Opt in to OMENative explains. A single-node component runs as RawDeployment by default, where a change is a plain Deployment update, with no group.

Roll prefill and decode together

This InferenceService serves the pre-configured model mistral-7b-instruct-v0-2. Its prefill-decode runtime, srt-mistral-7b-instruct-pd, runs a router, an engine and a decoder, and needs GPU nodes with RDMA NICs, as Serve a prefill-decode model shows. One group holds the engine and the decoder:

mistral-pd.yaml
apiVersion: ome.io/v1beta1
kind: InferenceService
metadata:
  name: mistral-pd
  namespace: mistral-demo
spec:
  deploymentMode: OMENative
  model:
    name: mistral-7b-instruct-v0-2
  runtime:
    name: srt-mistral-7b-instruct-pd
  engine:
    minReplicas: 1
    maxReplicas: 1
  decoder:
    minReplicas: 1
    maxReplicas: 1
  router:
    minReplicas: 1
    maxReplicas: 1
  rollout:
    groups:
      - components: [engine, decoder]

Apply the file:

Shell
kubectl apply -f mistral-pd.yaml
Output
inferenceservice.ome.io/mistral-pd created
  • When a change gives both a new revision, they roll out together by blue-green, since the group sets no progression, paced in batches.
  • The router is in no group, so it rolls out on its own.
  • While a component's update waits, status.components.<component>.lifecycle.rolloutHold names the gate that holds it. Lifecycle status lists the gates.
  • Where the group as a whole stands is in status.rolloutCoordination.groups: see Observe a group in status.
  • An edit to spec.rollout during a rollout applies to the next one.

Each group can set:

Field Description
components Required. One to four of router, engine, decoder and encoder.
canary, blueGreen or rollingUpdate The progression. Set at most one. See Choose a progression.
policyRef Alpha, and off by default. A RolloutPolicy that supplies the progression when the group sets none.
soak In a sequence, how long to wait between components.
maintainRatio For a blue-green or rolling-update group of two or more components. Keeps them in step, and their replica ratio within tolerance percent. A group that names the encoder can keep a ratio only beside one other role (EncoderRatioGroup): see What admission rejects. See Rolling update and Batches for the engine and the decoder.

Choose a progression

A group rolls out blue-green unless it sets another progression.

Progression How the group rolls out Set
Blue-green Its components start together. Each updates at most 25% of its replicas at a time, rounded up, while both revisions serve requests. Nothing, or blueGreen: {}
Rolling update Each component moves within its own maxSurge or maxUnavailable budget, and maintainRatio can keep them in step. rollingUpdate
Canary Steps move a share of capacity to the new revision, and a step can wait for you or for metric analysis. canary

In a blue-green or rolling-update group, a failed Instance in any component marks the whole group failed. OME records a CoordinationGroupFailed Warning event on the InferenceService, but doesn't stop the other components.

Rolling update

maxSurge and maxUnavailable set each component's own budget, as a count or a percentage, 25% by default. With the default SurgeThenDrain update strategy, a component starts a new Instance before it stops an old one, within maxSurge. With any other strategy, it moves within maxUnavailable.

An edit that changes some of the group's components and not others is admitted: the changed components roll out, and the rest keep their revision and roll nothing. The webhook warns, once per group, naming who moves and who stays: spec.rollout.groups[0]: only the engine changes; the decoder keeps its revision and rolls nothing (RollingUpdatePartialChange). A component counts as changed when the edit re-renders its pod template — its image, but also an env, a command, a resource, a volume, a label or an annotation — while a change that re-renders no pods, such as its replica counts or its lifecycle block, draws no warning. The group rolls one member alone because any mix of its members' revisions is expected to serve together; when the engine-decoder wire protocol makes a mix unsafe, change it through pairingProtocol, which needs one group listing both the engine and the decoder — a rolling-update group included.

This group moves four engines and two decoders one Instance at a time, and keeps their 2:1 ratio:

YAML
spec:
  engine:
    minReplicas: 4
    maxReplicas: 4
  decoder:
    minReplicas: 2
    maxReplicas: 2
  rollout:
    groups:
      - components: [engine, decoder]
        rollingUpdate:
          maxSurge: 1
          maxUnavailable: 0
        maintainRatio:
          tolerance: 25
  • maxSurge: 1 lets each component start one new Instance at a time. Under another strategy, maxUnavailable: 0 would stall it.
  • maintainRatio keeps the two in step. OME holds a component while it's more than 25% further through its rollout than the other. It also holds an update that would move their serving ratio more than 25% from 2:1 — though never for good: when no single step of a component could fit that band, OME admits such a step rather than hold the roll for good, as described below. The held component's rolloutHold gate is Ratio.

tolerance runs from 0 to 100, and 0 allows no drift. When you leave it out, it's 5, the ome-resources value ome.controller.coordination.defaultRatioTolerancePercent. Above 50, the webhook warns that the check is effectively off (RatioToleranceTooHigh).

An update that InPlaceIfPossible or InPlaceOnly applies in place skips only the serving-ratio half of the check, since the patched pod returns with its capacity. The update still waits, at the same Ratio gate, while its component is more than tolerance percent further through its rollout than the other. When it goes ahead, OME records a Normal RatioGateBypassed event on the InferenceService: the serving-capacity band is waived for an in-place start, and the new-revision lockstep still applies.

Neither hold wedges the group below the replica counts it asks for. A component that serves fewer pods than its desired count — an Instance failed mid-roll, or a node outage took its pods — recovers capacity through the same Ratio gate: OME starts one new Instance at a time for it, even while the serving-ratio band refuses its ordinary steps. A recovery step never takes the component past its desired count, and it waits while the component's serving capacity, as a share of that count, is ahead of a peer's that is also short, so recovery can't buy a lead over a still-rolling peer. A held component that starts a new Instance is refilling lost capacity, not advancing its rollout past the gate.

The further-through hold yields to recovery only for a component that has lost capacity: one serving fewer pods than the Instances it has, not counting Instances a scale-up is still creating. Raising a component's replicas mid-rollout is not lost capacity. OME creates the extra Instances right away, outside these holds, but a component serving every Instance it had keeps the hold: when it's more than tolerance percent further through its rollout than the other, it waits at the Ratio gate until the other catches up, even though it now desires more. The serving-ratio band measures against the counts you ask for now, so the other component's updates can also wait at the same gate while the extra Instances come up; they go ahead once the new Instances serve.

Nor does the band hold a roll that no single step could ever satisfy. At some shapes the band is narrower than one Instance: two components of four Instances each under a tolerance of 25 read one pod out as 4:3, 33 points off 1:1, whichever side drains. When no single step of a component fits the band, OME admits the step rather than park the roll at the Ratio gate for good. The step starts from a component serving every Instance it asks for, in a group whose serving ratio sits inside the band — a component short of a pod recovers it first, as above — and the further-through hold still paces the component against its peer, so the allowance never buys a lead of more than the tolerance and one step. What the admitted step may do depends on its direction:

  • A surge only adds serving capacity: it never lowers the other component's count, and the extra pod is transient — once the new Instance serves, the old one drains. So the surge the band can't fit goes ahead, however far it reads: one replica surging beside one reads 2:1, 100 points off 1:1, and a 4:4 pair under a tolerance of 10 surges to 5:4, 25 points off. It draws no event, and the group's maxSurge still caps how many surges run at once.
  • A drain takes serving capacity out, so OME admits one pod of the component out of rotation at a time: until the replacement serves and the group is back at its reference, the component's next drain waits at the Ratio gate, and the group's off-band ratio refuses the other components' drains too. A drain that moves the serving ratio no more than twice the tolerance, with the component keeping a pod serving, is the ordinary overshoot of a drain-first roll under a narrow band, and draws no event. Past that — or when a single-replica component's only drain leaves it serving nothing, the drain-first step you chose for it — the serving ratio is outside the tolerance for as long as the step runs, and OME records a Warning RatioStepOutsideTolerance event on the InferenceService with the counts and the tolerance.

A RatioStepOutsideTolerance event therefore names a shape the webhook below would refuse — reached without asking it. Take eight engines patched in place beside a decoder on RecreatePod with no minReplicas and a maxReplicas of 4, under a tolerance of 20 — a pair these holds pace when the operator's keepRatio rule is off, since a single-pod in-place engine counts no moves. The webhook admits the spec, sizing the decoder at its maxReplicas of 4: one decoder pod out reads 8:3, 33 points off 8:4, within the 40 it grants a single drain. Then the decoder's autoscaler scales it to 2 — a scale lands on the component's InferenceReplica, not on the spec the webhook judges — and at 8:2 no decoder step fits: one pod out reads 8:1, 100 points off. OME admits the decoder's first drain all the same, and records the Warning: RatioStepOutsideTolerance: decoder 1 of 2 serving after the drain; no single step fits tolerance 20 at 8:2; admitting one. The serving ratio is outside the tolerance while this step runs; the band admits one such step at a time rather than hold the roll for good. Widen the tolerance or resize the group to a shape one step keeps inside it. The ratio reads 8:1 until the replacement decoder serves, and the second drain repeats the event. To stop them, do what the message says: widen maintainRatio.tolerance to 50, the smallest whose doubled overshoot covers the 100 points, or return the group to a shape one step keeps in band, such as more decoder replicas.

The webhook rejects a maintainRatio group whose drain-first member has no first step the band admits silently (RatioDrainInfeasible): rather than let a group roll only through RatioStepOutsideTolerance steps, it refuses the spec. A member drains first when it updates by RecreatePod, or by an in-place strategy on a multi-pod Instance, which recreates the whole gang. The webhook projects its first drain — one Instance out of rotation — against each other member of the group, the router included, and rejects the spec when the drain would leave the member with nothing serving, or would move a pair's serving ratio more than twice the tolerance from the ratio the rollout starts at — the overshoot the serving-ratio band grants a single drain from a fully serving group. It sizes each member the way the rollout does — minReplicas when it's positive, else maxReplicas, else the defaultMinReplicas fill — and judges at the group's tolerance, or the default above when the group sets none.

In this group, no decoder step fits the band or its silent overshoot: one of its two pods out reads the serving ratio as 6:1, 100 points off the starting 6:2, and twice the tolerance of 20 caps a single silent drain at 40 points:

YAML
spec:
  engine:
    minReplicas: 6
    maxReplicas: 6
    lifecycle:
      updateStrategy:
        type: InPlaceIfPossible
  decoder:
    minReplicas: 2
    maxReplicas: 2
    lifecycle:
      updateStrategy:
        type: RecreatePod
  rollout:
    groups:
      - components: [engine, decoder]
        rollingUpdate:
          maxUnavailable: 1
        maintainRatio:
          tolerance: 20

The rejection names the ways out: spec.rollout.groups[0]: the decoder rolls drain-first (RecreatePod) in a maintainRatio group, and its first step could never be admitted: with decoder 2 and engine 6, one decoder pod out reads decoder 1 : engine 6, 100 points off the starting ratio, and the ratio check lets a single drain go at most 40 points (twice the tolerance of 20), so the rollout would park for good; widen maintainRatio.tolerance to at least 50, give the decoder the SurgeThenDrain update strategy, add decoder replicas, or give the engine a SurgeThenDrain or RecreatePod update strategy, which hands the pacing to the batch step (RatioDrainInfeasible). The tolerance it suggests is the smallest that admits the drain. A drain-first member with a single replica is rejected at any tolerance — its only drain leaves it with nothing serving — with the same ways out except the tolerance.

The webhook skips a group the batches below pace: one that lists both the engine and the decoder, each with a declared strategy that counts its moves — SurgeThenDrain, RecreatePod, or an in-place strategy on multi-pod Instances. It reads only what the spec declares: a component with no lifecycle.updateStrategy surges by default at runtime but doesn't count here, and the webhook doesn't read the operator's keepRatio rule below either. So the last way out above is literal — declare SurgeThenDrain or RecreatePod on the engine or the decoder, and the batches pace the group instead. The rule runs on updates too: a scale-down or a strategy change that gives a group one of these shapes is refused the same way.

Batches for the engine and the decoder

OME paces a blue-green or rolling-update group that lists both the engine and the decoder in batches instead, whether or not it sets maintainRatio, when each of the two counts its moves in a step of its own:

  • A component that drains first — it updates by RecreatePod, or by an in-place strategy on a multi-pod Instance, which recreates the whole gang — counts its drains. Its step is the stricter of the group's maxUnavailable resolved against its replicas, rounded up for a percentage, and its own lifecycle.updateStrategy.rollingUpdate.maxUnavailable.
  • A component on the default SurgeThenDrain update strategy counts its surges, the new Instances it starts. Its step is the stricter of the group's maxSurge — 25% when the group sets none — and its own lifecycle.updateStrategy.rollingUpdate.maxSurge, resolved the same way.

No component starts its next batch until every component's current batch serves on the new revision, and the batches are what keep the components in step: for the batched components, OME consults neither the serving-ratio band nor the further-through hold above. A router in the group joins the batches when it counts its moves the way the engine or the decoder does, and stays under the holds above otherwise. A component that updates single-pod Instances in place counts no drains or surges, so it puts the group back under the holds above — unless the operator's keepRatio rule below makes it count its in-place updates against its maxUnavailable step, like a drain-first component.

With four engines and two decoders on RecreatePod and maxUnavailable: "50%", the first batch drains two engines and one decoder together. The decoder's second drain then waits, at the same Ratio gate, with a reason that names the two batches: decoder batch 2 waits for engine batch 1 to serve (0 of 2 serving). Both new engines serving releases it. An update attempt that ends without serving counts toward its batch until OME retries it, so a failed Instance doesn't hold the other components, and a batch still short counts its failures, as in 1 of 3 serving, 1 failed. The one exception is under the operator's firstSide rule below: while the named side's revision is held, its failed attempts settle nothing for the other side.

A member's rollingUpdate.partition shrinks what its batches cover: they count the Instances the roll may move — the member's count less the Instances its partition keeps on the old revision — while its step still resolves against the full count. Give the same group four decoders and a decoder partition of 2, and the decoder's two movable Instances are its whole roll, one batch: the first batch drains two engines and both movable decoders, and the engine's third drain waits with engine batch 2 waits for decoder batch 1 to serve (0 of 2 serving, 2 of 4 movable). The note names what the member's partition lets the roll move, in any hold that waits on it. A member whose movable Instances have all served is done, whatever its partition keeps back: no peer waits on a decoder batch that never comes, and the group reads Staged, done up to the partitions its components set. Lower the partition later, and the freed Instances start as a new batch.

The ome-resources chart adds two rules to these batches, on by default in its lifecycle.prefillDecodeRoll block — so on a default install, an engine-decoder group rolls in paired, decoder-first batches, even one that surges and sets no maintainRatio:

  • keepRatio: true plans the two components' batches together, sized so that the share of each side already moving to the new revision stays within the group's tolerance of the other side's share — the operator default, the chart's 5, when the group names none. A move counts from the moment it starts, on the drain-first and the surge path alike. A batch that can't fit within the tolerance shrinks, and at least one Instance moves per batch, so a tight tolerance slows the roll and never stops it. A group opts out of the sizing with a tolerance of 100.
  • firstSide: decoder makes the decoder move first inside every batch: the engine's moves of a batch are admitted once the decoder's new Instances of that batch serve. Until then the engine waits, at the same Ratio gate, with a reason such as engine batch 1 waits for decoder batch 1 to serve first (0 of 1 serving).

While the decoder's new revision is held — its update retries ran out, the Held gate of Lifecycle status — nothing of its batch will serve until you act, so the engine's wait reads at the Held gate instead of Ratio, naming the decoder's record and the ways out: engine batch 1 waits for decoder batch 1 to serve first (0 of 1 serving, 1 failed), and the decoder is held: update to mistral-pd-decoder-86c9f4d7 held after 3 failed attempt(s): ImagePullBackOff; a corrected revision, or a release of the held revision on the decoder, resumes both sides. Every wait on the named side reads this way while its record is held, and only the decoder Instances that serve the new revision settle a decoder batch for the engine: a failed attempt that no retry will re-open settles nothing, so the engine opens no start beside the held side, and the roll holds as a whole. What the reason names ends it, for both sides: a fix in the InferenceService, whose new revision replaces the held one, or a release of the held revision on the decoder — the decoder then starts its failed attempt again at once, and the engine waits on it at the Ratio gate again.

The OME binary applies neither rule without the operator's block. Pace a prefill-decode roll shows what each rule does, with a worked example, and how to turn one or both off.

None of these batches are a plan the roll fixes when it starts. Every time OME answers a side's next move, it reads each side's count off its spec — your edit to its replicas, or its autoscaler's — and the partition that holds some of it, resolves its step against that count, and, under keepRatio, plans the paired batches again over what the partitions leave movable; the sides keep their own steps without the rule, and the same re-read applies, with no side's batches covering more than its movable Instances. A side resized mid-roll reads the rest of the roll off the new plan, and its place in that plan is everything it has started since the roll began — the Instances on the new revision, moving to it, or whose attempt ended — so the starts it has already made can read as more or fewer batches than they did. Nothing is done over: the side's next move belongs to the first batch of the new plan its starts haven't filled.

Take 12 engines and 8 decoders on RecreatePod, the group's maxUnavailable: "10%" — steps of 2 and 1 — and a maintainRatio tolerance of 10 under the chart's two rules. The plan pairs the batches 2:1, 4:2, 5:3, 7:4 and so on; two batches in — 4 engines and 2 decoders started — the engine's next drain waits at engine batch 3 waits for decoder batch 3 to serve first (2 of 3 serving), and the decoder's is admitted. A resize moves both sides' readings at once:

  • Scale the engine to 24, and its step is now 3 — 10% of 24, rounded up — and the plan over 24:8 reads 3:1, 6:2, 9:3 and on. The 4 engines already started fill the first batch and part of the second, so the engine's next drain opens batch 2, whose decoder share already serves. What holds it is the Budget gate instead: the 12 Instances the scale-up is still creating count as unavailable against the budget the new count resolves, 3, so the drain waits, with unavailable budget 3 exhausted (current 12, in-flight 0, would become 13), until enough of them serve. The decoder's third drain, admitted before the resize, now waits too: decoder batch 3 waits for engine batch 2 to serve (4 of 6 serving).
  • Scale the engine down to 8 instead, and the plan over 8:8 moves one of each per batch: the same 4 started engines now read as four full batches, so the engine's next drain waits at engine batch 5 waits for decoder batch 4 to serve (2 of 4 serving), while the decoder's third is still admitted. The old Instances the scale-down hasn't retired yet aren't starts, and count toward no batch.
  • Scale the decoder to 16, and its step is now 2, the plan over 12:16 reads 2:2, 4:4, 5:6 and on, and its 2 started drains are one full batch: its next drain opens batch 2, held at the Budget gate while its 8 new Instances come up, and the engine waits on that batch, at engine batch 3 waits for decoder batch 2 to serve (2 of 4 serving).

The re-plan reaches the batch that's open as well: resize the engine while its first batch is still coming up, and the decoder's second drain waits on an engine batch 1 of 3, or of 1, as the new counts size it. And firstSide holds inside each batch of whichever plan a pass makes: the decoder still leads every batch of the new plan.

Canary

A canary group moves all its components through one canary's steps. Each step's capacity applies to each component: at "25%", a quarter of the engine's replicas and a quarter of the decoder's, rounded up, run the new revision. The step waits until both are ready. The components that pair — the engine, the decoder and the encoder — are one canary unit: when the InferenceService declares two or more of them, a canary group that names one must name every one the service declares. The router is a unit of its own, and one canary group can hold both units.

YAML
spec:
  rollout:
    groups:
      - components: [engine, decoder]
        canary:
          steps:
            - capacity: "25%"
              traffic: 10
              pause: {}
            - capacity: "100%"
              traffic: 100

The first step waits until you promote it. To promote a step, or to roll the canary back to its stable revision, see Promote or roll back a canary. The router can run a canary of its own at the same time, under groupOrdering: Concurrent. The alpha kubectl ome rollout promote and rollback commands then refuse, since they act only on a rollout with one canary group. Canary progression describes the steps, and Canary metric analysis describes their Prometheus checks.

Change the engine-decoder wire protocol

spec.rollout.pairingProtocol is a token you choose, such as kv-v1, for the wire protocol between the engine and the decoder. Change it only when that protocol changes. A new token gives both components a new revision, and OME labels their pods with ome.io/pairing-protocol. An encoder carries the token too, but isn't kept pairable through a change, so while a service declares one the token is frozen except for clearing: see While an encoder is declared.

To move from one token to another, roll the engine and the decoder out in one group. Any progression serves — blue-green, rolling update or canary — since what admits the change is the shared group, under which the two sides roll together. If mistral-pd runs with pairingProtocol: kv-v1, this spec moves it to kv-v2 in a blue-green group:

YAML
spec:
  rollout:
    pairingProtocol: kv-v2
    groups:
      - components: [engine, decoder]
        blueGreen: {}

While the change rolls out, OME keeps at least one engine and decoder pair with the same token serving, and keeps each component at its pairable floor: at least its desired replicas minus maxUnavailable Instances with a serving pod that still has a partner. A partner is a serving pod of the other component whose token is the same, or empty on either side, and a surge replacement counts from the moment it serves. maxUnavailable is the stricter of the group's rollingUpdate.maxUnavailable — 25% of the component's desired replicas, rounded up, when the group sets none — and the component's own lifecycle.updateStrategy.rollingUpdate.maxUnavailable. A canary group carries no budget of its own, so there the floor reads the component's own maxUnavailable alone, and a component that declares none keeps no floor beyond the one pair. The floor applies only when it comes to 2 or more: four engines with the default budgets keep a floor of 3, and with one or two replicas only the one-pair rule applies.

Under the default SurgeThenDrain update strategy, each component starts and serves its new-token pods before its old pods drain, and an old pod's drain waits, with the rolloutHold gate Pairing, in four cases:

  • The component's own new pods can't pair yet, because no serving pod of the other component runs the new token, and the other component also updates by SurgeThenDrain. Retiring an old pod that still pairs would trade serving capacity for pods that can't pair, so the drain waits, with a reason such as pairing protocol transition to "kv-v2": the replacement engine cannot pair because no serving decoder runs cohort "kv-v2" yet; holding the drain of the serving engine of cohort "kv-v1" until one does. The other component's first pod to serve the new token releases the hold.
  • The drain would push the other component below its floor, because the pods leaving are the last partners of its Instances still on the old token. The reason counts the shortfall, such as pairing protocol transition to "kv-v2": draining the serving engine pods of cohort "kv-v1" would leave the decoder with 2 pairable serving Instance(s), below its floor of 3 (desired 4 minus maxUnavailable 1); holding the drain until the decoder Instances still on cohort "kv-v1" have another partner or have moved. The hold releases once those Instances have another partner, through new-token replacements of their own, or have moved.
  • The drain would push the component itself below its own floor: its replacement can't pair yet, and the other component's new token is already coming up without this drain, by surge or by an Instance mid-update toward it. The reason combines the two, ending in retiring the serving engine of cohort "kv-v1" would leave the engine with 2 pairable serving Instance(s), below its floor of 3 (desired 4 minus maxUnavailable 1); holding the drain until one does, and the other component's first pod to serve the new token releases it.
  • The drain would take the last such pair out of service. It waits until the new token serves on both components.

A floor holds a drain only when the drain itself lowers the pairable count, so a component already below its floor doesn't block a drain that leaves the count unchanged. The holds can't deadlock, because a SurgeThenDrain component's new pods come up whether or not any drain waits. With that strategy on both components, even one engine and one decoder keep a pair serving through the change.

Under RecreatePod or an in-place strategy, a component runs the new token only once its old pods leave rotation, so OME checks both floors before a step takes its pod out of rotation, at the same Pairing gate. The step waits with a reason such as pairing protocol transition to "kv-v2": updating a serving engine of cohort "kv-v1" would leave the engine with 2 pairable serving Instance(s), below its floor of 3 (desired 4 minus maxUnavailable 1); holding until cohort "kv-v2" serves on both Components, until the new token serves on both components. With one engine and one decoder the change can briefly leave no pair.

These holds follow each component's update strategy, whatever progression the group sets, and come on top of the group's ordinary pacing: in a rolling-update or blue-green group, the batches and budgets still pace the steps, and in a canary group the steps still stage capacity, with the Pairing holds added to them.

The webhook rejects a change from one token to another when no group lists both the engine and the decoder, because they roll out independently or in separate groups (PairingProtocolChangeUncoordinated). The refusal names the fix: spec.rollout.pairingProtocol: changing the pairing protocol ("kv-v1" -> "kv-v2") requires engine and decoder to roll together: declare one spec.rollout group that lists both components (rollingUpdate, blueGreen or canary); when they roll independently or in separate groups nothing holds one side back for the other, so a step can leave every serving engine on a protocol no serving decoder speaks (PairingProtocolChangeUncoordinated). With no encoder declared, it always accepts setting a token for the first time, or clearing it.

While an encoder is declared

An encoder's revisions and pods carry the token exactly as the engine's and the decoder's do, so a change of the token rolls the encoder too. But the holds above keep only the engine and the decoder pairable through a change — nothing keeps the encoder and the engine paired — and they start from what still serves, not from your edit: a token set while an earlier change still rolls would leave the encoder beside two tokens with no guard. So two refusals apply to an edit, whatever groups the service declares, a blue-green group over all three components included:

  • While the old or the new spec declares an encoder, the token may only stay as it is or be cleared (PairingProtocolChangeWithEncoder). A move between tokens and a first-time set from empty are refused alike, in the edit that removes the encoder too, since the rule reads both specs. If mistral-pd declared an encoder, the spec above would be refused with spec.rollout.pairingProtocol: setting the pairing protocol to "kv-v2" is refused while the service declares an encoder, or in the edit that removes it; the value may only stay "kv-v1" or be cleared, since only the engine and the decoder are kept pairable through a change (PairingProtocolChangeWithEncoder). For a first-time set, the middle of the message reads the value may only stay empty. To move to a new token, remove the encoder first, then change the token in a second edit, under the group rule above.
  • An edit that adds an encoder must leave the token empty (EncoderAddedWithPairingProtocol), even when the edit doesn't touch the value: an earlier change of the token may still be rolling, and the edit alone can't show it. The refusal names the fix: spec.rollout.pairingProtocol: adding an encoder needs an empty pairing protocol, but it is "kv-v1"; clear it in the same edit, because an earlier change of the value may still be rolling and only the engine and the decoder are kept pairable through it (EncoderAddedWithPairingProtocol).

Clearing the token is always admitted, and safe at any mix of revisions, since an empty token pairs with any. The clear gives every component that carries the token a new revision, the encoder included.

Roll components one at a time

When the groups that aren't canaries are two or more blue-green groups of one component each, they form a sequence. OME rolls a sequence out one group at a time, in list order. With this spec.rollout, mistral-pd rolls out the decoder first, then the engine:

YAML
spec:
  rollout:
    groups:
      - components: [decoder]
        soak: 10m
      - components: [engine]

When a change gives both a new revision, OME:

  1. Rolls out the decoder, while the engine waits.
  2. Waits out the 10-minute soak once the decoder finishes.
  3. Rolls out the engine.

OME skips a component that the change leaves alone. Each wait lasts the longest soak of any group but the last, counted from when the component before it last finished a rollout.

While the decoder rolls out, the engine's rolloutHold shows why it waits:

Shell
kubectl get inferenceservice mistral-pd -n mistral-demo -o custom-columns='GATE:.status.components.engine.lifecycle.rolloutHold.gate,REASON:.status.components.engine.lifecycle.rolloutHold.reason'
Output
GATE         REASON
Sequential   Sequential waiting on decoder

During the soak, the reason is Sequential.Soak: engine waiting out the 10m0s soak after decoder.

If a component's rollout fails, the components after it wait, and OME records a CoordinationGroupFailed Warning event. The sequence goes on once another change, such as a fixed image or the previous one, makes the failed component healthy.

How groups run together

Each canary group rolls out on its own, alongside the other groups. The other groups roll out at the same time, unless they form a sequence.

spec.rollout.groupOrdering changes only what the webhook accepts, not how the groups roll out. Sequential, the default, accepts one group or a sequence alone. Any other list of two or more groups, such as a canary group beside another group, needs groupOrdering: Concurrent, or the webhook rejects it with GroupOrderingNotHonored.

Observe a group in status

OME reports where each blue-green or rolling-update group stands — a sequence included — in status.rolloutCoordination.groups, rolls the groups up into the RolloutCoordinationReady condition, and records events on the InferenceService at a rollout's turning points. The surface exists only while the service declares such groups: a canary group reports through status.components.<component>.rolloutPhase instead, and a component in no group has only its rolloutHold.

Each group gets one entry, named by its position in spec.rollout.groups, as a string: the first group is "0". A sequence collapses into one entry, 0. Read the group of mistral-pd while it rolls:

Shell
kubectl get inferenceservice mistral-pd -n mistral-demo -o custom-columns='GROUP:.status.rolloutCoordination.groups[0].name,PHASE:.status.rolloutCoordination.groups[0].phase,COMPOSITE:.status.rolloutCoordination.groups[0].compositePhase,MESSAGE:.status.rolloutCoordination.groups[0].message'
Output
GROUP   PHASE     COMPOSITE   MESSAGE
0       Waiting   Waiting     waiting for new-revision pods to be Ready

The entry is a RolloutCoordinationGroupStatus:

Field What it reports
name, components, policy The group's index as a string, its components, and how it rolls out: BlueGreen, RollingUpdate, or Sequential for a sequence.
order In a sequence, the components in list order.
phase The base phase. See the table below.
compositePhase The phase with the rolling member composed in. See below.
currentComponent, previousComponent In a sequence, the member rolling out now — or the next one, while the group waits between members — and the member before it.
memberFinished In a sequence with a soak, the member whose rollout last finished (component) and when it did (at): the instant the wait runs from.
memberNotReady In a sequence with a soak, the finished member whose Ready condition is False or absent while the next member waits on it.
observedSurge The group's rollingUpdate.maxSurge, or 25% when it sets none.
observedRatio With maintainRatio: original, the desired counts the band measures against — they follow the spec, so a resize moves them — then each component's live pods (current) and new-revision pods (newPods).
lastTransitionTime When phase last changed.
mixedPairing A rolling-update group's live pods span more than one revision, which it permits while it rolls.
surgeHeldByRatio maintainRatio held at least one component's next start on this pass, at the Ratio gate of Rolling update.
message A sentence that explains the phase.

The phases

Phase The group is
Idle At rest, with no rollout in flight. A sequence also reads Idle between members: compositePhase is what says it hasn't finished.
Surging Starting new-revision pods.
Waiting Waiting for its new-revision pods to be ready.
Shifting Writing the components' traffic weights toward the new revision.
ScalingDown Removing old-revision pods.
Staged Done up to the rollingUpdate.partition its components set, holding old-revision pods by design.
Failed Held by a failed component, as Choose a progression describes. The message names the progression, or the failed member of a sequence.
Paused Held by the ome.io/rollout-paused annotation. See Pause and resume a rollout.

The CoordinationPhase values Draining and RollingBack exist in the API, but OME doesn't set them.

compositePhase is the phase to read; phase is the stable value the group metrics carry. For a blue-green or rolling-update group the two match. A sequence composes the member into it:

  • decoder.Surging: the named member is rolling, in the base phase after the dot.
  • Sequential.AwaitingNextComponent: the sequence is between members — waiting out a soak, or waiting for a change to the next member. The base phase is Idle.
  • Sequential.Failed: a failed member blocks the sequence.
  • Idle: the sequence is done, or hasn't started.

The RolloutCoordinationReady condition

OME rolls the groups' phases up into one condition in status.conditions, which the COORDINATION column of kubectl ome rollout status shows:

Status Reason When
False Failed A group is Failed. The message names the groups: rollout coordination failed in groups: 0.
False InProgress No group is Failed, and a group is in any phase but Idle or Staged. The message names each with its phase: rollout coordination in flight: 0:Waiting.
True Idle, or Staged Every group is Idle — or Staged, which counts as ready.
True NoCoordinationGroups An edit left the service without blue-green or rolling-update groups — it dropped them, or moved to canary only — and OME cleared status.rolloutCoordination with them. A service that never declared such groups never gets the condition.
Shell
kubectl get inferenceservice mistral-pd -n mistral-demo -o jsonpath='{.status.conditions[?(@.type=="RolloutCoordinationReady")].status}{" "}{.status.conditions[?(@.type=="RolloutCoordinationReady")].reason}{"\n"}'
Output
False InProgress

Two details to read it right. The condition reads the base phase, so a sequence between members reads True while a soak runs or the next member waits for you: its compositePhase is what says the sequence hasn't finished. And the service's own Ready condition doesn't depend on it, so a mid-rollout group doesn't make the service unready.

The transition events

OME records an event on the InferenceService when a group enters these phases — once per transition, not per reconcile — so kubectl describe shows a rollout's turning points without polling status:

Event Type When
CoordinationGroupSurging Normal The group enters Surging.
CoordinationGroupShifting Normal The group enters Shifting.
CoordinationGroupCompleted Normal The group returns to Idle.

Each message is the group and its status message, as in coordination group 0 surging: creating new-revision pods. Entering Failed records the CoordinationGroupFailed Warning that Choose a progression describes; entering Waiting, ScalingDown, Staged or Paused records nothing. A group first observed already in one of these phases records that event; one first observed at rest records nothing. In a sequence, CoordinationGroupSurging fires once per member. CoordinationGroupCompleted fires when the base phase returns to Idle: between members while the sequence waits — out a soak, or for a change to the next member — and when the sequence finishes. With no wait, the base phase moves straight from a finished member to the next member's Surging, with no CoordinationGroupCompleted between them.

What admission rejects

When the webhook rejects a rollout, kubectl prints admission webhook "inferenceservice.ome-webhook-server.validator" denied the request:, then a message that ends in a reason in parentheses:

Reason Cause
CoordinationRequiresOMENative A grouped component doesn't declare OMENative on the InferenceService. A canary group gets CanaryRequiresOMENative.
InvalidComponentInCoordinationGroup, OrphanCoordinationGroup A group names a component other than router, engine, decoder or encoder, or one that the InferenceService doesn't declare.
DuplicateComponentInCoordinationGroups A component is in two groups.
GroupOrderingNotHonored Under Sequential, two or more groups other than a sequence alone.
SoakNotHonored A soak outside a sequence.
OrderNotHonored A group sets order, which no progression applies.
InvalidRollingUpdateInteger, InvalidRollingUpdatePercent, ZeroBudgetPacingUnstartable A negative count, a string that isn't a percentage from "0%" to "100%", or two budgets that resolve to zero.
RatioDrainInfeasible A maintainRatio group's drain-first member's first drain would leave it with nothing serving, or move a pair's serving ratio more than twice the tolerance. See Rolling update.
EncoderRatioGroup A maintainRatio group names the encoder and two or more other roles. The ratio check compares members two at a time, and three members can hold each other, so the roll would never finish. Keep the ratio on a two-role group, or drop maintainRatio.
PairingProtocolChangeUncoordinated With no encoder declared, pairingProtocol changes tokens while no group lists both the engine and the decoder: they roll out independently, or in separate groups.
PairingProtocolChangeWithEncoder pairingProtocol changes — between tokens, or a first-time set — while the old or the new spec declares an encoder. The token may only stay or be cleared. See While an encoder is declared.
EncoderAddedWithPairingProtocol An edit adds an encoder while pairingProtocol is set. Clear the token in the same edit.
RolloutPolicyRefUnsupported A group sets policyRef while RolloutPolicy is off.

Not every reason in parentheses is a rejection: an edit that changes only some of a rolling-update group's components is admitted, with a RollingUpdatePartialChange warning. See Rolling update.

Canary progression lists the rules for canary groups.

Next steps