﻿# A canary resource budget must include replicas that are still terminating

Budget model-canary resources through preparation and slow termination, preserving actual worker lifetimes rather than relying on the desired replica count.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/field-econ-canary-terminating-replica-envelope/
Language: en

## The old worker has left routing but not the resource account

A model canary starts candidate workers while old replicas drain long generations. The rollout dashboard looks within its nominal surge setting, but terminating processes still hold memory and execute work. The economic question is how much temporary resource envelope the rollout actually needs. Counting only desired or available replicas can omit the transition's largest overlap. A successful final candidate deployment does not retrospectively remove the old worker's continued consumption during that interval.

## Preserve controller semantics

[Kubernetes Deployment documentation](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/) explicitly notes that terminating Pods can consume resources beyond the nominal surge count. Its [Pod lifecycle guide](https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/) describes graceful termination and readiness as separate events. Preserve effective rollout strategy, termination behavior and model identity. These mechanisms do not establish the GPU allocations of a particular worker. Observe process and device release directly where possible, retaining the interval between removal from new traffic and the actual end of admitted computation.

## Construct a finite rollout trace

Use a controlled collection containing ordinary and long-lived requests. Establish the old model's service baseline, then exercise the approved candidate rollout under the same offered schedule and acceptance requirements. Record candidate loading, warmup, routing admission, old-worker drain and termination. Include rollback readiness in the declared resource boundary. Do not increase the candidate cohort mid-test merely because the early short requests look healthy; preserve the planned evidence and stopping conditions for interpreting the experiment.

## Measure concurrent owners across stages

Retain resources for old active workers, new workers preparing, candidates serving and workers terminating. Include retained artifacts and host preparation where they belong to the transition. Report accepted logical service, errors and lateness beside the temporary peak and total occupation. Shared consumption should stay at its observed boundary rather than being allocated twice to old and new cohorts. If a worker is forcefully stopped at a declared limit, record lost or repeated work instead of treating resource release as a costless success.

## Test slow drain and rejected candidates

Include a long generation that outlives candidate readiness and an eligible fixture where the candidate fails acceptance before promotion. Observe old-state retention and cleanup of the rejected cohort. A rollout that only fits when every termination is immediate has not demonstrated the intended grace behavior. Also inspect overlapping retries or resubmissions after drain failures. They may extend resource use beyond the controller's replica timeline and must remain attached to their original logical operations.

## Publish transition capacity separately

Save actual worker lifetimes, acceptance evidence, resource peaks and the stopping outcome. [Model canary validation](/journal/model-update-canary/) defines a bounded update experiment; [maintenance capacity](/journal/gpu-n-plus-one-maintenance-capacity/) explains ready headroom. This article adds termination overlap to the economic budget. It does not claim that a surge setting caps every resource or that a rollout fitting steady-state capacity must fit its transition. The supported conclusion concerns the tested grace behavior, workload and candidate cohort under the measured pool boundary.
