Skip to content
sinc-LLMBook a 15-minute call

How to Keep Requests Away From Warming AI Workers

Separate Kubernetes startup, readiness, and liveness probes, then verify that the Service sends requests only to the intended model workers.

On this page

By Mario Alexandre · November 29, 2026 · 24 min read

Use a Kubernetes readiness probe to keep a warming AI worker out of normal Service traffic. Have the probe check that the intended model revision has loaded, the relevant serving path has completed its warm-up, and the worker can accept new requests. Give slow initialization its own startup allowance. Use liveness to detect a condition the container can recover from by restarting. In staging, prove the traffic rule from the real client path and a record from the serving pod. Kubernetes probes

TL;DR. A listening port tells you that the process can answer a probe. It takes a ready endpoint and a successful request attributed to the intended pod and loaded model revision to prove that a warm worker can serve. Hold the rollout if a cold pod receives fresh business traffic after routing has converged, a ready pod serves the wrong revision, or your records cannot distinguish the worker that actually handled the request.

If you need to decide Check this first What changes the decision
Can the container start supervising itself? Startup probe and container restart count Increase the measured startup allowance or investigate a reproducible initialization failure
Can the candidate receive new requests? Worker state, Pod Ready condition, Service EndpointSlice, and a real route test Hold a cold endpoint, revision mismatch, or unverified route
Should a failed health check restart the container? Whether a clean process can repair the failure Keep shared outages out of liveness unless a restart demonstrably restores progress
Can the old replica go away? Candidate serves the expected revision with enough healthy capacity, and old streams follow a tested drain policy Keep the old capacity present if new traffic or existing streams lack a safe destination

Know what each green light observes

A model service often starts its HTTP listener long before it can run inference. It may open the port, read a deployment manifest, download or open model files, allocate accelerator memory, initialize a tokenizer, and start the process responsible for scheduling requests. Some workloads also build caches or initialize kernels the first time they see an input. An HTTP handler can serve health checks during several of those steps. That gives you a useful view of process progress. It only becomes a serving decision when the procedure tests the part of the system that handles the customer request.

Separate three questions before you write any configuration. Startup asks whether the container has finished enough initialization for normal probe supervision. Readiness asks whether the pod should receive new ordinary traffic. Liveness asks whether the process continues to make progress in a way a restart can restore. Kubernetes supports startup, readiness, and liveness probes with those separate consequences. When a startup probe is configured, Kubernetes holds off readiness and liveness probing until startup succeeds. Repeated startup or liveness failures can lead to a restart. A failed readiness probe can remove the pod from normal Service traffic without requiring a container restart. Kubernetes startup, readiness, and liveness documentation

Write the checks against a single coherent worker state. A process that has finished parsing configuration might report startup success. Readiness can remain false while model verification and warm-up proceed. Liveness can stay healthy if the worker is making expected progress during that time. A costly warm-up operation belongs in the worker’s initialization flow. A lightweight readiness handler can then read its result. Sending a generation request every few seconds from every probe may consume capacity, reproduce an initialization race, or distort the application latency you intended to measure. Choose a cheap state observation that still depends on the serving operation having completed.

Keep the observation independent of a convenience status page. In a multi-container pod, a proxy sidecar might be listening while the inference container is still initializing. An application status route might be served from a separate process that reads a stale flag. Pick the model-serving component that can tell whether the request handler and scheduler agree about the active revision. Publish one readiness answer from that state. When several components are essential to accepting new work, the pod-level result needs to reflect those components in the context of the same request path.

Use a restart test to choose liveness. Pause a disposable worker's processing loop in staging and verify that the restart restores the loop and fresh successful service. Separately interrupt a shared upstream dependency and observe whether restarting changes anything. When the second test reproduces the same outage after each restart, a fail-closed admission or readiness policy may still be appropriate if no useful work can proceed. The restart action has a different consequence. This distinction is especially important when all replicas depend on the same backing service and would otherwise lose capacity together.

Make the expected revision part of readiness

A readiness flag that says only “the model has finished loading” can be stale or ambiguous. Suppose a pod uses a deployment annotation that names revision blue, but its local model cache still holds revision green. A successful synthetic generation from green would establish that some model responds. It would leave open whether the deployment actually activated blue. The acceptance check needs the revision the worker opened, connected to the immutable name or digest the deployment expected.

Write down what identifies one serving revision for your application. It may include model artifact identity, tokenizer or template version, and a runtime feature flag that changes the request path. Choose the fields that would change the decision if wrong. If the application accepts version aliases, resolve and record the immutable artifact behind the alias, then associate that resolution with the pod's initialization attempt and selected model. Keep credentials, input prompts, and private artifact location details outside your probe response and routine release worksheet.

Start new worker state with readiness false. After the model initializes, request an inexpensive, deterministic test through the part of the system that runs normal work. Some teams can check a toy input against an expected format. Others need to verify an explicit model identity field from the internal serving runtime alongside a successful response. A guessed version string from the response text is weak evidence. Ask the process that loaded the artifact to report the loaded revision as structured metadata or as a log joined to the same inference request. A staging-only response header can help during a test, but server-side correlation also works and avoids exposing deployment details to customers.

Tie the warm-up result to a worker generation. If a worker can replace or reload its model inside the same pod, clear the prior generation's warm-up success before the new generation is eligible. Recheck that the active worker generation, model revision, and successful warm-up belong together. This prevents an earlier ready flag from carrying into a reloaded process that has not yet proven its new configuration. Test the behavior during the reload path if your application uses it. A cold boot test covers a different transition.

For a service that routes several model families, decide whether readiness is genuinely a single pod-wide condition. If a pod can legitimately serve requests for one model while another loads, a binary Kubernetes Ready state may be too blunt for that decision. You can separate serving pools, or use a routing layer with explicit model-specific admission and its own evidence path. Keep a precise pod readiness decision for the Service that selects the pod. Then test the model-specific decision through whichever layer owns it. A general web request that succeeds on a different model is an insufficient readback for the route under test.

Build a timing allowance from real initialization states

Collect the elapsed time for initialization under the rollout conditions you expect. Keep cached and uncached startup examples separate when their paths differ. Capture significant times such as listener open, model artifact recognized, model initialization complete, warm-up result, first Ready observation, and first accepted request from the candidate. A single timestamp called “started” hides the interval during which a process is alive but unable to serve. A startup budget chosen from development machines can also miss slower storage or resource contention in the target environment.

Start with a bounded set of staging cases. Include a representative cold pod after a deployment, a reload if supported, and a controlled failure such as a missing warm-up result or a temporary shared dependency outage. Use the same scheduler class, model footprint, and routing mode where feasible. Mark any differences that can affect timing. Look for an explanation when one startup time is much longer than the rest. A wide range may call for different release controls or an investigation into resource contention, rather than a single increase applied without diagnosis.

Use configured probe interval, timeout and failure threshold to reason about when repeated failures can become disruptive. The Kubernetes documentation gives startup examples configured to allow slow initialization before restart. Treat the configured numbers as part of the real decision, and measure how the cluster applies them under the chosen fixture. Probe scheduling, connection handling and scheduling delays can make a wall-clock interval differ from a simple mental estimate. In a staging review, record both the declared configuration and the timestamps at which the expected responses were observed. Kubernetes configuration guidance for probes

For an illustrative calculation, imagine a team observes cold warm-up stages taking forty, seventy, and one hundred seconds in repeatable staging conditions. If its first candidate repeatedly restarts around sixty seconds while waiting on an otherwise progressing model load, the cold fixture distinguishes an allowance that is too short from permanent startup failure. Increase the allowance for that case, then try the case where the expected revision cannot load. A useful result permits the expected cold initialization yet still exposes an unrecoverable mismatch. In the real system choose the threshold from an agreed release objective, a current observed distribution, and a documented policy for an overdue initialization. Three illustrative inputs establish no production timing percentile.

Give readiness its own stabilization expectations. Some workers briefly oscillate when a lazy initialization or a resource limit first sees demand. Readiness can require a stable verified state, but making the check overly strict can remove safe capacity during brief transient conditions. Record the worker's state transitions rather than assuming every health event calls for the same correction. A side effect of your probe settings becomes visible when you record a legitimate warm-up alongside a transient failure and compare what the Service actually routes in both cases. Start with the smallest set of probe rules that keeps the safety property intact.

Verify both endpoint registration and the traffic path

A Kubernetes Service selects Pods according to its configuration. EndpointSlices provide a way to inspect the endpoints associated with a Service, along with readiness-related conditions. For a conventional Service, use the candidate Pod's UID or reference and address to match the right endpoint, then compare the EndpointSlice with the pod's Ready condition and actual client traffic. Avoid counting an unrelated ready endpoint or assuming that matching a human-readable pod name proves the accessed instance. Pod names can describe intent. The UID identifies a particular created pod. Kubernetes Services · EndpointSlice conditions

Inspect each relevant slice, because one Service can have more than one. Record the time and identity at every observation. When available, capture the endpoint's target reference, address, and condition values. Compare those to the pod record you intended to test. During a warm-up hold you might see an endpoint with a false readiness condition, or an endpoint shape that depends on the Service and controller. The actual assertion is that a normal request through the designated route is excluded from that candidate. Pod conditions and endpoint records explain where to investigate if the data path violates that assertion.

An important exception is a Service intentionally configured to publish addresses for unready Pods. Kubernetes documents the special behavior of publishNotReadyAddresses for EndpointSlice readiness. Other traffic systems can also consume endpoints on their own terms. A headless Service uses a different discovery path from a conventional virtual IP, and a workload that is reached directly by address cannot rely on someone else's readiness-filtering proxy. Inventory the route your real client takes and the route your test client takes. A tested Service does not cover a bypass route. EndpointSlice ready, serving, and terminating conditions

A useful path inventory has four lines: the client address and client connection mode, the routing objects behind that address, the destination records identifying selected pods, and the application record showing actual execution. In a cluster-only test, that may be the Service DNS name, ordinary Service and EndpointSlices, the pod UID, and a request log. In another cluster, a gateway or service mesh may show an intermediate destination that must also be checked. Use the actual runtime path. An empirical client check and an independent serving record help you establish that the target you inspected matches the target your customer path uses.

Treat time as part of the evidence. A Pod Ready transition, an EndpointSlice change, and convergence in the client path can happen at different moments. Capture which boundary was inspected before or after sending the test request. Establish a measured and agreed window for fresh traffic to follow the change. If the records come from clocks with unknown alignment, use centrally correlated timestamps or a sequence agreed by the harness. A request with no reliable relation to the readiness transition cannot establish a convergence fault. It can still identify the next measurement you need.

Run one cutover rehearsal with a positive control

In this synthetic staging exercise an inference Service has a ready old worker and one candidate. The old worker serves revision pine and the candidate is configured to serve revision birch. Both can handle a fixed toy input when ready. A test-only latch stops the candidate after its HTTP listener opens and before its warm-up succeeds. The test harness assigns a unique ID to each request and can join it to the server handling record. Keep customer input and live configuration out of the fixture. The staging route should model the actual production selection path closely enough to exercise the same readiness behavior.

Before introducing the candidate, prove that one fresh request succeeds through the designated Service and read back its handling record from the old pod. Repeat that control while the candidate is paused. If there is no success at the old replica, inspect the client URL, the selected endpoint set, and the available old capacity. Until a request can pass along that same route, a cold pod receiving zero test requests tells you little. Checking a different health URL or using a direct pod probe as the positive control would leave the ordinary route untested.

Then verify that the candidate is actually in the designed adverse state. Its listener should be open, warm-up should be held, and its Ready condition should be false. A deliberately paused application that never opened a socket makes the traffic gate harder to distinguish from a port that rejects everything. Use a staging-only check of the listener and an explicit health event to show that the port is alive while readiness is still false. Send fresh normal-traffic test requests and inspect both pods for their correlation IDs. A candidate request that arrives after readiness has settled false is an explained failure only after you confirm the route can reach that candidate under the corresponding positive case.

Rehearsal step Expected client and destination result If the result differs
Old worker alone A fresh Service request succeeds and its server record names pine and the expected old pod Resolve the route or capacity before introducing the candidate
Candidate listener open and latch held Candidate Ready false, old worker still serves, and fresh correlation IDs have no candidate handling record after convergence Inspect the real route, stale registrations, expected pod identity, and log coverage
Candidate ready on birch At least one fresh request through the intended route has a candidate handling record and successful response with the loaded birch revision Hold promotion, and distinguish no traffic selection from a candidate serving error
Candidate made unready again New ordinary traffic returns to ready capacity after the agreed convergence interval Preserve sample IDs and compare the pod, endpoint, proxy, and client observations
Existing stream held during withdrawal Stream follows the documented finish or reconnect behavior with attributable outcome Fix the drain and client policy before assuming readiness protects in-flight work

Release the latch and wait for the worker’s own readiness predicate to become true. Observe the Pod and EndpointSlice again, then send fresh requests through the designated client path. Keep collecting until the candidate receives at least one known request under a bounded staging procedure. You can use a representative gateway canary rule or a controlled test route that still passes through the intended serving mechanism. Calling the pod directly can test whether it serves, while the normal routing test still must prove it was selected as intended. A burst in which all requests happen to land on pine is an inconclusive selection test. A bounded staging feed can stop and report that limitation rather than repeatedly increasing production traffic until the endpoint appears.

Once you have a successful candidate request, hold the same worker outside readiness through a recoverable controlled condition. Preserve old healthy capacity and watch fresh requests after routing has converged. Confirm that the candidate's worker is still running if you are testing readiness alone. Try both an ordinary fresh connection and whatever connection reuse your production client is known to use. Record those behaviors separately. If concurrent tests are changing service membership or gateway state, use distinct namespaces or a deliberately coordinated fixture. That makes your evidence attributable to the exact change under test.

Draw a sharper line between drained and unready

Readiness is a useful control for new normal Service traffic. Existing connections need a separate application and client contract. For models that stream tokens, an already open client stream can continue on the old pod while new connections follow ready endpoints. A client can also reuse a connection for a new logical request, depending on the proxy and protocol. The decision therefore has two parts: whether fresh application work reaches the candidate and how in-flight work ends when an endpoint is withdrawn. Confirm what constitutes a new request at the application, rather than classifying every packet sent on a pre-existing connection as old work.

Define a drain expectation you can measure. One reasonable policy in a staging example accepts no new inference on a draining worker and permits an established stream to finish within a bounded grace period. If a stream reaches that deadline, the client receives a documented interruption or retry signal and can attribute the outcome to the same logical request. Other teams may choose a bounded cancellation path to meet a stricter request deadline. Choose the policy based on what the system can actually honor. Avoid assuming a transparent retry is safe when the model can emit results or the workload can charge for a second attempt.

Kubernetes tracks terminating endpoints with conditions that can help consumers interpret whether they are serving or terminating. The specific proxy or client can have its own handling of those conditions. Record the relevant condition transitions and then test the real observable consequence. Create one stream through the routing path, start the worker's drain, and create two new logical requests: one on a fresh connection and one through the representative connection reuse path if applicable. Observe which endpoint gets each request and whether the original stream produces a valid completion or the agreed interruption. EndpointSlice conditions and termination · Pod termination flow

Treat a client success report and a worker execution report as separate records. For a streamed response, a client can experience a clean or partial termination while the worker records a different local outcome. If there is an application side effect tied to the request, check its authoritative destination before retrying. Preserve the request identity so a retry can be interpreted in context. If your staging environment cannot prove safe reconnection for streamed requests, record termination behavior as unverified and keep the release decision within the portion of traffic you actually checked.

Use this check when evaluating deployment availability. Leaving the old replica running protects capacity only while the actual route can still send it supported traffic. It also leaves open how and when the worker can be removed. Kubernetes Deployments offer settings for rollout surge, unavailability, and timing of availability. Those settings describe controller behavior. Derive capacity needs for your workload and compare the desired policy to observed ready endpoints and successful requests as you transition. If both old and new versions are unavailable at once, fix the capacity plan before using the readiness drill to approve promotion. Kubernetes Deployment rolling updates

Diagnose disagreements in the order they occur

When the application reports ready but the Pod condition is false, start with the probe that Kubelet actually uses. Verify path, port, timeout, configured container, startup completion and any readiness gates that affect the pod. Read the worker state and its probe responses around the transition. A test run might have inspected a status handler on a sidecar or a different port. A successful manual call may come from a different network location or hit a different code path. Let the first discrepant boundary direct the next check.

When the Pod is Ready but the target endpoint does not reflect it, verify Service selection and match the exact Pod UID or address. Inspect the relevant EndpointSlices, their association with the Service, and time ordering. Check for probing one namespace while sending requests to another. In a deployment with multiple Services selecting different labels, it is easy to correctly inspect one Service and test another. Fix identity before trying a more permissive readiness probe. A missing endpoint with a ready pod can be a registration or selector issue. Changing the health semantics would not test that hypothesis.

When the endpoint is unready yet a candidate receives fresh traffic, record the precise client route and compare the arrival time with the agreed convergence window. Check whether the consumer publishes unready addresses or caches destinations. Distinguish direct access, existing connection reuse, an earlier request continuing, and ordinary fresh Service traffic. If the application receives a fresh request through the protected route after convergence while unready, hold the rollout. Add an adverse fixture that reproduces the route mismatch on a known test system. Then correct the changed boundary before running the same evidence trail again.

When the candidate is ready and receives the request but serves an unexpected revision, inspect the immutable identity assigned to the serving process. Look at the exact request's serving metadata, not a dashboard that groups multiple pods under one release label. A deployment can have consistent labels with an inconsistent runtime state. Hold the activated candidate even if the request technically succeeds. Resolve the artifact selection, cache loading, or routing issue and rerun the gate against the specific pod handling the controlled request.

When no one receives a logged request, preserve the difference between no traffic and missing logging. The old replica success case, a known application-level request ID, and a corresponding response help diagnose the problem. You may still need a staging route trace when a proxy can serve an error response without reaching a pod. In that case an empty application log is expected even though the client made the request. Locate the last boundary with affirmative evidence and test the next one. Avoid narrowing the investigation to model warm-up until you know the request progressed far enough to reach the worker.

Record a release decision someone else can reproduce

Give the operator a short worksheet with stable evidence references. Name the environment, Service, actual client address, old and candidate pod identities, expected revision, model artifact identity, application request boundary, and readiness configuration. Record any deviations from production, such as a staging header or the use of a synthetic input. Add UTC timestamps for each state and request, the recorded convergence allowance, the specific log ID supplied by each serving pod, and whether the stream case ran. Begin with the normal control before listing failures, so someone can tell the harness succeeded at least once.

Keep the acceptance rule finite. A candidate may take new traffic when the application proves the expected loaded revision and warm-up, the conventional Service selects a ready endpoint, and a normal request succeeds with attributable candidate evidence. A cold candidate should remain excluded while an old healthy control continues to serve. Any special consumer, connection reuse behavior, or stream drain you depend on needs its own evidence. A readback missing for a critical path creates a hold or an explicitly limited release decision. It does not turn into success because adjacent readbacks look healthy.

Add a recovery row for each likely hold. When the cold start exceeds its allowance but progresses, extend the staging allowance with an observed bound and rerun permanent startup failure. When one candidate is already serving the wrong model, take that candidate out of the test route and verify old or known-good capacity still serves. When membership is stale, restore a known-good routing state and observe ordinary traffic through that state. When the test cannot reach the old replica, restore the test route and re-establish the positive control before collecting new candidate evidence. Coordinate any production action with the actual release owner and record the observed recovery at its destination.

Keep an expected negative result close to every release control. For readiness semantics, a listening cold worker supplies a bounded adverse example. For attribution, an intentionally unexpected model revision proves the checker can catch a success from the wrong revision. For drainage, a test client with an already open stream distinguishes in-flight behavior from new admission. If the normal template cannot catch a deliberately wrong result, correct the evidence check before trusting it on a candidate. These are test fixtures that teach the operator how to read the outcome. They establish no specific production guarantees without runs against the deployment that will use them.

One useful first action is to write the five-row rehearsal table for a single Service and one nonproduction model rollout. Pair it with an old-replica request and one candidate-attributed readback. Run the warm-up hold and release conditions with the same client path. Once those signals line up, add a distinct drain test if your application streams. When the release is ready, use the wider model-swap procedure to address evaluation, canary thresholds, and incident controls beyond this traffic gate. sinc-LLM’s deployment guide for model swaps

Account for workers that also consume queue jobs

An AI worker can receive work from a Service and poll a queue from the same process. A false Kubernetes readiness signal can exclude it from normal network traffic reaching the Service. It does not inherently pause a queue poller. A model still warming can claim a job while a synchronous endpoint correctly excludes it. Give the poller an application admission rule tied to the same expected loaded revision if taking a job early would waste an attempt or violate a deadline.

In a disposable test, place two identifiable items in the queue while the candidate listener is active and readiness false. Give the old worker normal access and allow it to claim an item through the usual queue mechanism. Inspect the queue's authoritative record for which worker claimed each item, and correlate the old worker's claim to completion. A query that merely counts remaining items cannot reveal which worker acted. Release the warm-up hold and observe a candidate claim and successful completion for the other item. If the old worker can drain both items before the test exercises the candidate, pace the second arrival or isolate claim eligibility in the staging fixture. Preserve the normal queue semantics for the decision you intend to verify.

Then make the candidate unready after it has claimed a job. Choose whether that work may finish or should be handed back under the queue's actual lease and retry rules. Require a separate result for new claims after withdrawal and for completion of the existing claim. An expired lease plus a restarted worker can produce a competing attempt, so check the final business outcome using the job's identity when the operation matters. Do not turn off an old consumer based on a green Service routing check if your real work still arrives through the queue.

If readiness returns before the team can attribute a successful fresh request to the candidate, the serving decision is still open. Keep the healthy probe reading, then close the gap with the request ID, candidate pod identity, and loaded revision from the serving path. An older replica's successful response can keep the service usable while that check runs.

FAQ

Is a successful readiness endpoint enough to promote a model worker?

Use it as evidence of a local readiness predicate. Promotion through a real route also needs Service selection evidence and a successful application request attributable to the pod and revision you intended. The readiness route can return success from an older generation, a sidecar, or a state machine that marks the worker ready too early. The controlled warm-up hold and the candidate success case show whether the rule affects the actual traffic path.

Do I need a startup probe if I already delay readiness?

A slow or variable startup is a reason to separate startup supervision from readiness. A readiness check governs new traffic, while startup probing can prevent early liveness checks from restarting a container that is legitimately initializing. If your workload starts quickly and the liveness policy already tolerates its startup path, its needs may be simpler. Decide from the slow realistic startup fixture and the behavior when startup genuinely fails. Kubernetes startup probe documentation

Should readiness fail when a shared model provider fails?

Decide whether the specific worker can still do useful work, perhaps because some routes use local models or an approved fallback. If every eligible request depends on the failing provider, removing new traffic through a controlled path may be appropriate. If failing readiness across the fleet would hide healthy capacity, design per-service or per-capability admission. Test whether restarting helps before using the shared dependency as a liveness signal.

Why did I see a request at an unready pod?

Start by identifying whether it was a fresh application request, a still-running request, a reused connection, or a request that bypassed the Service. Check the timestamp against observed routing convergence and confirm the pod and endpoint identity. Inspect whether the relevant Service or consumer intentionally publishes or uses unready addresses. A fresh request through the ordinary protected route after convergence requires a hold and investigation even when the pod eventually becomes ready.

Can I test the candidate by calling its Pod IP?

A direct test can prove the process can respond and expose the exact revision. It does not exercise the user-facing selection mechanism. Pair it with a request through the actual Service or gateway path that your rollout depends on, and inspect a candidate handling record for one of those ordinary requests. Keep the results scoped to the path each test exercised.

What should I save if some evidence is ambiguous?

Save the application and pod identity, expected revision, request IDs, route configuration, Ready and EndpointSlice snapshots, timestamps and the last boundary where you have reliable evidence. Mark the affected test unresolved. For example, a success response from pine while birch was ready may establish continued healthy service but leave candidate selection open. Running the positive candidate fixture supplies the missing observation.

Sources