Configure the controller
Tune the OME controller manager's command-line flags, including reconcile concurrency, leader election and runtime-revision garbage collection.
Set the OME controller manager's command-line flags to speed up changes to your InferenceServices, keep its leader stable during API server slowdowns, or apply ConfigMap edits sooner. Controller manager flags lists them all, with their defaults. The chart can also add environment variables and files to the manager pod, such as proxy settings and a private CA bundle, and give the manager pods a disruption budget.
Step 1: Set a flag¶
Set a flag with its ome-resources Helm value when it has one, and with a patch to the Deployment when it doesn't. The Helm value column of Controller manager flags tells you which.
With a Helm valueUnreleased: coming in v1.3¶
On v1.2.2, the chart has no values for the manager's flags: set them with a patch, as in Without a Helm value.
The chart sets many flags from values under ome.controller. This example raises the number of InferenceServices that the manager reconciles in parallel from the chart's 4 to 8:
ome:
controller:
inferenceServiceMaxConcurrentReconciles: 8Keep your other values in the file: helm upgrade resets the values that aren't in the file to the chart's defaults. Upgrade with the chart version that you already run, which helm list -n ome shows in its CHART column:
helm upgrade --install ome oci://ghcr.io/moirai-internal/charts/ome-resources \
--namespace ome --version 1.3.0 -f values.yamlHelm reports that the release ome has been upgraded. The chart passes the value to the manager container of the ome-controller-manager Deployment as --inferenceservice-max-concurrent-reconciles=8, and the Deployment replaces its pods one at a time. Wait for the rollout:
kubectl rollout status deployment ome-controller-manager -n omeWhen the new pods are running, the command ends with:
deployment "ome-controller-manager" successfully rolled outWithout a Helm value¶
To set a flag that has no Helm value, patch the Deployment. This patch appends two flags to the arguments of the manager container, the pod's first container:
kubectl patch deployment ome-controller-manager -n ome --type=json -p='[
{"op": "add", "path": "/spec/template/spec/containers/0/args/-", "value": "--runtime-revision-retention=5"},
{"op": "add", "path": "/spec/template/spec/containers/0/args/-", "value": "--runtime-revision-grace-period=72h"}
]'deployment.apps/ome-controller-manager patchedThe pods roll, as with a Helm value. When a flag appears twice, the manager uses the last one, so a patch can also override a flag that the chart passes, such as --zap-encoder.
Step 2: Check the running flags¶
Print the arguments of the manager container, one per line:
kubectl get deployment ome-controller-manager -n ome \
-o jsonpath='{range .spec.template.spec.containers[?(@.name=="manager")].args[*]}{@}{"\n"}{end}'With the Helm value from Step 1, and the chart's other values at their defaults, the output is:
--metrics-bind-address=:8080
--leader-elect
--webhook
--zap-encoder=console
--inferenceservice-max-concurrent-reconciles=8
--inferencereplica-max-concurrent-reconciles=4
--config-cache-ttl=30s
--accelerator-resources=nvidia.com/gpu,google.com/tpu
--kube-api-qps=100
--kube-api-burst=200
--leader-elect-lease-duration=60s
--leader-elect-renew-deadline=40s
--leader-elect-retry-period=8sThe first four arguments are always there, and patched flags come last. Flags missing from the list run with their defaults.
Tune leader election¶
The chart runs three replicas of the manager, set by ome.controller.replicaCount. They elect a leader through the Lease ome-controller-manager-leader-lock, and only the leader runs the controllers. All replicas serve the admission webhooks, the metrics endpoint and the health probes. See which pod leads:
kubectl get lease ome-controller-manager-leader-lock -n ome -o jsonpath='{.spec.holderIdentity}{"\n"}'ome-controller-manager-7c9d5b8f4-kx2mq_3f6a0c52-9e1b-4d7a-8c2e-5b1f0a9d4e37The part before the _ is the leader's pod name.
The leader renews the Lease every retry period. A leader that can't renew it within the renew deadline logs Failed to start manager with the error leader election lost and exits, and Kubernetes restarts the container. A standby takes over once the Lease has gone unrenewed for the lease duration. A leader that stops keeps its Lease until it expires, so when a rollout replaces the leader, reconciling pauses until then.
Lease timingUnreleased: coming in v1.3¶
The chart sets a lease duration of 60 seconds, a renew deadline of 40 seconds and a retry period of 8 seconds. When leaders restart with leader election lost during API server slowdowns, raise the three values together:
ome:
controller:
leaderElection:
leaseDuration: "90s"
renewDeadline: "60s"
retryPeriod: "12s"Keep the lease duration longer than the renew deadline, and the renew deadline longer than 1.2 times the retry period. Otherwise the manager logs Invalid leader election timing when it starts, and exits. Longer values slow failover: a standby waits up to the lease duration before it takes over.
Give the manager pods a disruption budget¶
By default, the manager pods have no PodDisruptionBudget: ome.controller.podDisruptionBudget covers the workloads that the controller creates, not these pods. A maintenance drain across several nodes can therefore evict every manager pod at once — and while none runs, the API server refuses every create and update of OME's resources, such as InferenceServices, models and runtimes, because the admission webhooks, which every replica serves, have failurePolicy: Fail. Running pods keep serving; only changes are refused, until a manager pod reschedules.
To keep a drain to at most one manager pod at a time, enable the chart's budget for them:
ome:
controller:
managerPodDisruptionBudget:
enabled: trueUpgrade with your values file, as in Step 1. The chart creates the PodDisruptionBudget ome-controller-manager in the release's namespace, selecting the manager Deployment's pods — and changes nothing else: the Deployment and the inferenceservice-config ConfigMap stay as they are, so the pods don't roll. Check the budget:
kubectl get pdb ome-controller-manager -n omeNAME MIN AVAILABLE MAX UNAVAILABLE ALLOWED DISRUPTIONS AGE
ome-controller-manager N/A 1 1 30sTwo more values under ome.controller.managerPodDisruptionBudget set the budget's fields, and their defaults suit the chart's three replicas:
maxUnavailableis how many manager pods evictions can take down at a time:1by default, so a drain takes one, the rest keep serving the admission webhooks, and one of them takes over when the evicted pod was the leader, as Tune leader election describes. The value is a whole number of pods, not a percentage, and must be at least 1: with0, no node running a manager pod could ever be drained, so the chart refuses to render, and the upgrade stops before it changes anything, withome.controller.managerPodDisruptionBudget.maxUnavailable must be an integer of at least 1 so voluntary maintenance can make progress.unhealthyPodEvictionPolicy,AlwaysAllowby default, lets a drain always evict a manager pod that isn't Ready. Such a pod serves no webhook requests, but it can hold a drain under Kubernetes' default policy,IfHealthyBudget, which refuses to evict a not-Ready pod while the budget's Ready pods are below its target: with the defaults, two manager pods stuck unready would pin the nodes they run on. An empty value leaves the field off the budget, which keeps that Kubernetes default.
The budget bounds evictions only: a helm upgrade that changes the pods still replaces them one at a time, through the Deployment's rolling update. And it can't keep a lone pod up — with ome.controller.replicaCount: 1, the budget renders and still lets the one pod's node drain, so changes are refused until the pod reschedules. For maintenance without that window, keep the chart's three replicas.
Tune reconcile throughputUnreleased: coming in v1.3¶
Two limits set how fast the manager works through changes. The worker counts set how many InferenceServices and InferenceReplicas it reconciles in parallel: 4 each with the chart. The rate limit caps the requests that each of the manager's API clients sends to the API server: 100 a second, with bursts of 200.
When you run many InferenceServices and changes take long to reach them, raise the worker counts. A reconcile sends several requests, so raise the rate limit with them:
ome:
controller:
inferenceServiceMaxConcurrentReconciles: 8
inferenceReplicaMaxConcurrentReconciles: 8
kubeAPIQPS: 200
kubeAPIBurst: 400You don't have to set kubeAPIQPS and kubeAPIBurst together: with one value alone, the other keeps the chart's default, and the manager starts either way. But a 0 doesn't remove a limit: the chart then leaves the flag out, and the manager falls back to 20 requests a second, or a burst of 30 — far below the chart's values.
Tell whether the manager is throttled¶
When the rate limit holds a request back for more than a second, the manager logs Waited before sending request:
kubectl logs -n ome -l control-plane=ome-controller-manager --tail=-1 | grep 'Waited before sending request'The lines give the delay, and the request's verb and URL. An empty result means that no request waited that long. When the lines keep appearing, raise kubeAPIQPS and kubeAPIBurst.
To tell whether the workers keep up, read the metrics of the inferenceservice and inferencereplica controllers, filtered by the leader's pod label. When controller_runtime_active_workers stays at controller_runtime_max_concurrent_reconciles and workqueue_depth keeps growing, raise the worker counts, and the rate limit with them. See Collect metrics.
Change ConfigMap settings¶
Much of OME's configuration lives in the inferenceservice-config ConfigMap in the manager's namespace, which the chart writes from its values. To change a setting, set its Helm value and upgrade, as in Step 1. The upgrade restarts the manager, and the new leader reconciles all InferenceServices with the new setting.
If you edit the ConfigMap with kubectl instead, the next helm upgrade can undo the edit. The controllers read the edit within the TTL of their config cache, 30 seconds by default. They apply it to an object the next time they reconcile that object: the edit alone doesn't start a reconcile. To apply it to all InferenceServices at once, restart the manager:
kubectl rollout restart deployment ome-controller-manager -n omedeployment.apps/ome-controller-manager restartedThe manager reads these settings only when it starts, so a kubectl edit to one of them needs a restart:
- the
omeAgent,multicluster,omenativeStatus,eventRecorderandtpuSliceProvisioningentries; enableGatewayAPIin theingressentry;scaleUpPodBatchSize,scaleDownPodBatchSize,scaleDownRequeueIntervalandrepairBatchSizein thelifecycleentry;maxConcurrencyandcacheTTLin thecanaryAnalysisentry;maxPinnedPlanBytesin therolloutentry;preflightin theautoscalerPolicyentry;defaultRatioTolerancePercentin thecoordinationentry — in the admission webhook only.
The last item is one field with two readers. It fills maintainRatio.tolerance for a rollout group that omits its own, and the controllers that pace a roll read it through the config cache on every pass, so a kubectl edit re-paces a running roll within the TTL. The admission webhook reads it once, when the manager starts, and judges the RatioDrainInfeasible check of every new create or update against that copy — and every replica serves the webhooks, each with the value from its own start. So after an edit, admission keeps judging InferenceServices by the old default until the pods restart, even while running rolls already pace by the new one.
Set the cache TTLUnreleased: coming in v1.3¶
Set the TTL with ome.controller.configCacheTTL, as a quoted string such as "10s". Lower it when 30 seconds is too long to wait for a kubectl edit. Raise it when the manager's reads of the ConfigMap are a noticeable part of your API server traffic.
"0" turns the cache off: all reads go to the API server, and OME rechecks the metric providers that policies name only when something else changes. Prefer a small positive value. Keep the quotes: for an unquoted 0, the chart leaves out the flag, and the manager keeps its 30-second default.
Tune the per-object event budget¶
The manager bounds the Kubernetes Events that it records about any one object. For each object and event type (Normal or Warning), it keeps a bucket of burstSize events, which regains one event every refillInterval, and it silently drops an event whose bucket is empty. Every emission counts, including a repeat that only raises the count of an event the object already shows. So when new events about an InferenceService stop appearing during a busy rollout, with no error anywhere, the InferenceService has spent its budget: the manager keeps working, and its events return as the bucket refills.
The chart sets the budget with ome.controller.eventRecorder, which it writes to the eventRecorder entry of the inferenceservice-config ConfigMap: a burst of 400 events, refilled one every 5 seconds. Every recorder in the manager uses the same budget, so it also bounds the events about InferenceReplicas, runtimes and OME's other objects, each with its own buckets. It doesn't touch events from other processes, such as the kubelet's and the scheduler's events about pods.
The manager itself has no default: for a field that the entry leaves out, it keeps the default of client-go, its Kubernetes client library — a burst of 25 events, or a refill of one event every five minutes. That's little for an OMENative component: OME records an event on the InferenceService when it creates an Instance, when the Instance becomes ready, and when an update of an Instance starts and completes, so one rollout of a component with a few Instances spends the 25, and restarts and repairs draw on the same bucket. Keep both fields set, and raise them when events about one InferenceService still stop during busy periods:
ome:
controller:
eventRecorder:
burstSize: 800
refillInterval: "2s"Upgrade with your values file, as in Step 1, and check the rendered entry:
kubectl get configmap inferenceservice-config -n ome -o jsonpath='{.data.eventRecorder}{"\n"}'{"burstSize":800,"refillInterval":"2s"}The manager reads the entry once, when it starts, and the upgrade's restart applies it; a kubectl edit to the ConfigMap needs a restart, as Change ConfigMap settings describes. Both fields must be positive: with a zero or negative burstSize, or a refillInterval that isn't a positive duration such as "2s", the manager exits at startup. To hand a field back to client-go's default, set it to null, and the chart leaves it out of the entry.
Pace OMENative scale-ups and scale-downs¶
When an OMENative component scales, the manager creates and deletes its pods in bounded batches, one batch per reconcile pass, so one large change doesn't flood the API server or tear through a component at once. Three settings under ome.controller.lifecycle, which the chart writes to the lifecycle entry of the inferenceservice-config ConfigMap, set the budgets:
| Setting | Chart default | What it does |
|---|---|---|
scaleUpPodBatchSize |
100 |
Caps the pods that one pass creates for a component. |
scaleDownPodBatchSize |
100 |
Caps the delete work that one pass drives for a component: a pod count, or a percentage of the component's current pods, such as "10%". |
scaleDownRequeueInterval |
"5s" |
How often the manager rechecks a component whose deletes are in flight. |
A batch is made of whole Instances: a pass creates all of an Instance's missing pods together and deletes all of its pods together, and a leader and its workers count as one Instance. A budget can't wedge on an Instance larger than itself: the first Instance of a batch may exceed the budget, and then proceeds alone. Instances past the budget wait for the following passes. The entry's fourth batch setting, repairBatchSize, paces crash-loop repairs instead: see The crash-loop repair.
On a scale-down, an Instance costs its remaining pods, live and Terminating alike, and 1 when its pods are already gone but its cleanup still runs. A percentage is resolved against the component's footprint — the summed cost of its Instances — on every pass, rounded up and never below 1: "10%" bounds a pass to about a tenth of the component however large it grows, and a small component still makes progress. The batch's pods leave the component's Services first and are deleted once the Services stop routing to them, and the next batch starts when the current one is done, so a scale-down that you widen mid-flight finishes the deletes it already owns before it takes more Instances. The budget also caps the leftover PodGroups that one pass deletes when a component is torn down. While deletes are in flight, the manager rechecks the component every scaleDownRequeueInterval; watch events on the pods and the other objects it waits on drive progress too, so the interval is a backstop, not a delay.
Write a pod count as a number and a percentage as a quoted string:
ome:
controller:
lifecycle:
scaleUpPodBatchSize: 50
scaleDownPodBatchSize: "10%"The lifecycle values that you don't set keep the chart's defaults. Upgrade with your values file, as in Step 1, and check the rendered entry — with jq, since the entry holds other settings too:
kubectl get configmap inferenceservice-config -n ome -o jsonpath='{.data.lifecycle}' \
| jq '{scaleUpPodBatchSize, scaleDownPodBatchSize, scaleDownRequeueInterval}'{
"scaleUpPodBatchSize": 50,
"scaleDownPodBatchSize": "10%",
"scaleDownRequeueInterval": "5s"
}The manager reads the entry once, when it starts, and the upgrade's restart applies it; a kubectl edit to the ConfigMap needs a restart, as Change ConfigMap settings describes. While a scale-down runs, the leader logs one OMENative scale-down wave line per pass:
kubectl logs -n ome -l control-plane=ome-controller-manager --tail=-1 | grep 'OMENative scale-down wave'The lines give the configured and the resolved budget (configuredPodBudget and podBudget), the component's footprint (podFootprint), and the Instances the wave drives (activeInstances) and holds back (deferredInstances). The manager also publishes these signals as metrics: see Watch a scale-down in the metrics.
Both batch sizes must be at least 1. The percentage form is digits and a %, from "1%" to "100%": no sign, no spaces, no decimals — and a quoted "100" fails where a plain 100 works, since the manager reads every string as a percentage. The interval must be a positive duration such as "5s". On any other value, the manager exits at startup with Failed to initialize lifecycle scale configuration, whose error names the value and the rule, such as validate lifecycle.scaleDownPodBatchSize: invalid lifecycle.scaleDownPodBatchSize "101%" must be between 1% and 100%, and the rollout doesn't finish: see Troubleshooting. To remove a bound instead, set its field to null, and the chart leaves it out of the entry: without a batch size, one pass creates or deletes everything at once, and without the interval, the manager doesn't poll deletes in flight — watch events, and the exact deadlines of the force-delete escalation and the teardown deadline, still wake it.
Watch a scale-down in the metrics¶
If Prometheus scrapes the manager, as Collect metrics sets up, five series report the same scale-down signals, with history the log lines don't keep. Only the leader records them, so filter by its pod label. Cost counts as above: an Instance's remaining pods, or 1 when only its cleanup still runs.
| Metric | Labels | What it shows |
|---|---|---|
ome_omenative_scale_down_active_pods |
namespace, isvc, component |
A gauge: the summed cost of the batch's Instances — the delete work the current batch drives. |
ome_omenative_scale_down_deferred_instances |
namespace, isvc, component |
A gauge: the eligible Instances outside the batch, waiting for the passes that follow. |
ome_omenative_scale_down_batch_pods |
component |
A histogram of each batch's cost, recorded once, when the batch is admitted. |
ome_omenative_scale_down_instance_duration_seconds |
component |
A histogram of each Instance's removal: the seconds from its batch admitting the delete to the Instance leaving the component's status, its pods gone and its cleanup done. Time spent deferred doesn't count. |
ome_omenative_scale_down_oversized_batch_total |
component |
A counter of the batches that admit one Instance larger than the resolved budget — the first-Instance exception above. |
The two gauges name the InferenceService in isvc, so they locate the component whose Instances wait. Both return to 0 when the component has no scale-down in flight, and the manager removes their series when the component is deleted. The histograms and the counter carry only the component type — engine, decoder or router — summed across InferenceServices, so to single out one service, read the gauges, or the log line above.
When a scale-down is slower than you expect, the series say which lever to pull:
ome_omenative_scale_down_active_podssits at the resolved budget whileome_omenative_scale_down_deferred_instancesstays above0: the budget is the pace. RaisescaleDownPodBatchSize.ome_omenative_scale_down_oversized_batch_totalrises: an Instance cost more than the whole budget, so its batch was that one Instance, alone. The component scales down an Instance at a time however you set the budget — raise it to hold whole Instances, or use the percentage form, which grows with the component.ome_omenative_scale_down_instance_duration_secondsruns long: the batching isn't the brake — each Instance's own removal is slow, with pods stuckTerminatingor a drain that doesn't end. See Recover stuck deletions.
Pace a prefill-decode roll¶
When a rollout group lists both the engine and the decoder, OME rolls the two components in lockstep batches. Two settings under ome.controller.lifecycle.prefillDecodeRoll, which the chart writes into the same lifecycle entry of the inferenceservice-config ConfigMap and turns on by default, add rules to those batches:
| Setting | Chart default | What it does |
|---|---|---|
keepRatio |
true |
Plans the engine's and the decoder's batches together, sized so that the share of each side already moving to the new revision stays within the group's maintainRatio tolerance of the other side's share — ome.controller.coordination.defaultRatioTolerancePercent, the chart's 5, when the group names none. It applies on the drain-first and the surge path alike, and a move counts from the moment it starts. It also keeps a component that updates single-pod Instances in place in the batches, counting its in-place updates against its maxUnavailable step. |
firstSide |
decoder |
Names the side that moves first inside every batch, engine or decoder: the other side's moves of a batch are admitted once the named side's new Instances of that batch serve. Empty lets both sides start a batch together. |
Under keepRatio, a batch that can't fit within the tolerance shrinks, and at least one Instance moves per batch, so a tight tolerance slows a roll and never stops it. Take a group of 12 engines and 8 decoders whose components move 10% at a time — 2 engines and 1 decoder per batch: on steps of their own, five batches in, the engine is 10 of 12 Instances into its roll, 83%, while the decoder is at 5 of 8, 63%. At the tolerance of 5, the planned batches walk the two sides through 2:1, 3:2, 5:3, 6:4, 8:5, 9:6, 11:7 and 12:8 instead, so neither side's share drifts more than 5 points from the other's. A group opts out of the sizing by setting a maintainRatio tolerance of 100.
Name the firstSide that takes longer to come back, so one side of each batch is down at a time and both sides return close together. The waiting side's rolloutHold gate is Ratio, with a reason such as engine batch 1 waits for decoder batch 1 to serve first (0 of 1 serving) — until the named side's new revision is held, its update retries spent, when nothing of its batch will serve until you act: the waiting side's gate then reads Held, with the same wait text, the held side's record, and the ways out — a corrected revision, or a release of the held revision on the named side — either of which resumes both sides. Batches for the engine and the decoder shows the full reason.
The manager has no built-in rules: a field the entry leaves out is off. keepRatio: false turns off the paired sizing, and firstSide: "" the ordering; without them, the engine and the decoder still roll in lockstep batches, each side sized by its own step and with no order between the sides — unless a side updates single-pod Instances in place, which only keepRatio keeps in the batches. To turn both rules off, set the block to null, and the chart leaves it out of the entry:
ome:
controller:
lifecycle:
prefillDecodeRoll: nullUpgrade with your values file, as in Step 1, and check the rendered entry — with jq, since the entry holds other settings too:
kubectl get configmap inferenceservice-config -n ome -o jsonpath='{.data.lifecycle}' | jq '{prefillDecodeRoll}'{
"prefillDecodeRoll": null
}With the chart's defaults in place, the same command prints the block with its two fields, "firstSide": "decoder" and "keepRatio": true. The two settings aren't in the list that needs a restart: the manager reads them through its config cache, so even a kubectl edit takes effect within the cache's TTL — unlike the batch sizes in the same entry. The ratio-tolerance default that the keepRatio row names is cache-read the same way, but only for pacing: the admission webhook's copy of it is read once, at startup, as the list explains. A firstSide other than engine, decoder or empty doesn't stop the manager: it reads as empty, so both sides start their batches together while keepRatio stands as written, and the manager logs the bad value only at verbosity 1. So when the ordering doesn't apply, check the rendered entry for a typo.
Pace canary re-checks¶
During a canary rollout, the manager drives the canary in reconcile passes, and a waiting pass schedules the next one itself, because a wait can end without anything changing in the cluster: a timed pause runs out, a scaleDownDelaySeconds wait passes. Two settings under ome.controller.rollout, which the chart writes to the rollout entry of the inferenceservice-config ConfigMap, set how long it waits between checks:
| Setting | Chart default | What it does |
|---|---|---|
canaryRequeue |
"10s" |
How soon the manager re-checks a canary in progress: a step in Pending waiting for its new Instances, a held gate — a timed pause, or a manual one waiting for a promote — the scaleDownDelaySeconds wait before the canary completes, and a rollback moving Instances back. |
canaryParkedRequeue |
"5m" |
How often it revisits a canary parked at Failed, which only an action of yours moves, such as a rollback or a fix that gives the group a new revision. |
So with the chart's values, a pause that has run out can hold its step for up to 10 more seconds, and a parked canary is looked at every 5 minutes. What the manager watches doesn't wait for the cadence: a promote or rollback annotation, like any change to the InferenceService's spec, labels or annotations, starts a pass at once. And a step whose analysis gate holds is re-checked every interval of its analysis instead, so sampling keeps its own cadence.
This example re-checks a waiting canary every 5 seconds and revisits a parked one every minute:
ome:
controller:
rollout:
canaryRequeue: "5s"
canaryParkedRequeue: "1m"Every re-check is a reconcile pass, so a lower canaryRequeue adds API server load when many InferenceServices roll at once; raise it then instead. The rollout values that you don't set keep the chart's defaults. Upgrade with your values file, as in Step 1, and check the rendered entry — with jq, since the entry holds other settings too:
kubectl get configmap inferenceservice-config -n ome -o jsonpath='{.data.rollout}' \
| jq '{canaryRequeue, canaryParkedRequeue}'{
"canaryRequeue": "5s",
"canaryParkedRequeue": "1m"
}The two settings aren't in the list that needs a restart: the manager reads them through its config cache, so even a kubectl edit takes effect within the cache's TTL — unlike maxPinnedPlanBytes in the same entry.
With a value empty, or the entry absent — the kustomize manifests don't write one — the manager has no fixed cadence and falls back to its rate-limited requeue: the canary still moves, but on no schedule you can tune. A value that isn't a positive duration, such as "0s" or "3d", counts as empty the same way. Unlike a bad lifecycle value, it doesn't stop the manager, and nothing logs it — so when a canary re-checks slower than the cadence you set, check the rendered entry for a typo.
Damp per-revision traffic churn in status¶
For each OMENative component that no canary step drives, OME writes the component's live traffic split into status.components.<component>.traffic: the revisions' shares of the component's serving pods that the endpoints controller lists as Ready endpoints of their per-revision routing Service, as percents that sum to 100. The weights follow the raw counts of those listed pods, so on a large component one pod that blips out of readiness between reconciles — momentarily Pending, or draining — shifts the computed percents, and every shift is another status write for the API server and every watcher of the InferenceService to process. The weights report the split, they don't route it: requests reach every listed pod either way, so only the report churns.
Listed, not just Ready: the endpoints controller lists a pod behind its Service from the same Ready condition that serving reads, with a delay of its own, and no request reaches the pod before it's listed. So while a revision has serving pods that aren't listed yet, the written split withholds the missing share rather than report weight onto a Service with nothing behind it: the revision's listed pods alone carry its weight, and with none listed it gets no entry, so the revisions already listed keep the whole split. The InferenceService says why in a TrafficEndpointsReady: False condition, reason WaitingForEndpoints, whose message names each waiting revision and its counts:
kubectl get inferenceservice llama-chat -n llama-demo -o jsonpath='{.status.conditions[?(@.type=="TrafficEndpointsReady")].message}'engine revision 5c21f3aa: waiting for endpoints: 2 pods Ready, 0 listedThe wait isn't a stall, and no action of yours moves it: once the endpoints controller lists the pods, the revision's share lands in the written split and the condition turns True, reason EndpointsListed. OME writes that True only to resolve an earlier wait — an InferenceService that never waited carries no TrafficEndpointsReady condition — and the condition doesn't gate the InferenceService's Ready condition. The pod on its way out is the mirror case and counts for nothing: one the endpoints controller still lists after it stopped serving is leaving, and pulls no weight toward its revision.
The setting ome.controller.coordination.trafficWeightDeadbandPercent, which the chart writes to the coordination entry of the inferenceservice-config ConfigMap, puts a per-revision band on that writer. With a band above 0, OME skips the write when the recomputed weights name the same revisions as status and every revision's percent moves by less than the band from the value already written: the move counts as pod-count jitter. The chart's default is 0: the band is off, and every meaningful change is written. A negative value also turns the band off, and the manager itself has no built-in band — an absent entry reads as 0.
The band never suppresses:
- A revision's entry appearing, disappearing or changing name: a changed revision set is a real topology change, so the weights are always written.
- A
latestRevisionflip on any entry, which marks the revision the component converges toward. - A
pairingProtocolchange on any entry, which routing consumers pair engine and decoder targets on. - An entry arriving at exactly
0or100from another value: the end of a roll is never jitter, so a band larger than a roll's last step can't hold the written split at 95/5. - A move of the band or more on any entry.
Any one of these writes the whole weight set. The band compares each recomputed percent with the one written in status, not with the last one computed, so a roll that keeps moving pods drifts further from the written weights on every pass, crosses the band and is written: a ratio change bigger than the band always lands in status. What you accept is a lagging report — the written weights can sit up to a point under the band away from the live split for as long as the pods hold that split — so keep the band below any difference your dashboards or alerts must see. A suppressed write holds back only the weights: the component's latestReadyRevision and latestRolledoutRevision fields update independently.
This example treats per-revision swings of up to 4 points as jitter:
ome:
controller:
coordination:
trafficWeightDeadbandPercent: 5Upgrade with your values file, as in Step 1, and check the rendered entry — with jq, since the entry also holds defaultRatioTolerancePercent, the ratio-tolerance default that Pace a prefill-decode roll describes:
kubectl get configmap inferenceservice-config -n ome -o jsonpath='{.data.coordination}' | jq '{trafficWeightDeadbandPercent}'{
"trafficWeightDeadbandPercent": 5
}The band isn't in the list that needs a restart: the manager reads it through its config cache on every pass, so even a kubectl edit takes effect within the cache's TTL. The entry's other field, defaultRatioTolerancePercent, is in the list: an edit reaches roll pacing through the same cache, but the admission webhook reads its copy once, at startup. The band gates only this pod-proportional writer. A component that a canary group drives gets its weights from the canary's recorded step, as Traffic weight in status describes, and the band never holds those back.
Retry a failed member read within a placement pass¶
When your InferenceServices set spec.placement, the control-plane cluster's manager reads back the service's derived copy on each candidate cluster on every placement pass. Multi-cluster placement is alpha, still in development and off by default: Controller manager flags lists the values that turn it on. By default, a failed read isn't repeated within the pass: the candidate's observation turns unknown until a later pass reads it again — ome_isvc_placement_candidate_observation_known drops to 0, as Watch placement in the controller's metrics describes — so a brief API server blip on one workload cluster costs that candidate a pass of freshness.
Three settings under ome.multicluster.config.placement.memberReadRetry, which the chart writes into the placement block of the multicluster entry of the inferenceservice-config ConfigMap, let the pass retry the read instead:
| Setting | Chart default | What it does |
|---|---|---|
maxAttempts |
0 |
The attempts one read of a member gets within a pass, the first included: 0 or 1 reads once, with no retry, and 3 re-reads a transient failure up to twice. A negative value is refused. |
initialBackoff |
"" |
The wait before the first re-read, such as "500ms"; it doubles with each further re-read. Required once maxAttempts exceeds 1, and refused otherwise. |
maxBackoff |
"" |
The cap on that wait. Required once maxAttempts exceeds 1 and refused otherwise, and it must not be shorter than initialBackoff. |
Only a failure that repeating may fix is read again: a timeout, a dropped, refused or reset connection, throttling (a 429), any server-side error (a 5xx), a member whose cached view on the control plane isn't available, and a first connection that the manager is still making after its start. Any other result returns at once: a derived copy that doesn't exist, or one that fails the identity and ownership checks, is a conclusive answer, not a blip. A canceled reconcile also ends the retries at once, even during a backoff wait.
Every attempt gets its own deadline — the per-cluster read deadline that ome.multicluster.config.placement.fanoutTimeout sets, 10 seconds when it's empty — so an attempt that times out doesn't spend the next attempt's budget. A pass can therefore spend up to maxAttempts times that deadline on one member, plus the backoff waits between attempts. Keep maxAttempts small: a pass reads every candidate cluster, each with this budget.
This example reads each member up to three times, waiting 500 milliseconds before the second attempt and 1 second before the third:
ome:
multicluster:
config:
placement:
memberReadRetry:
maxAttempts: 3
initialBackoff: "500ms"
maxBackoff: "2s"Upgrade with your values file, as in Step 1, and check the rendered block:
kubectl get configmap inferenceservice-config -n ome -o jsonpath='{.data.multicluster}' | jq '.placement.memberReadRetry'{
"maxAttempts": 3,
"initialBackoff": "500ms",
"maxBackoff": "2s"
}The multicluster entry is in the list that needs a restart: the manager reads it once, when it starts, so the upgrade's restart applies the change, and a kubectl edit to the ConfigMap needs one. At startup, a manager with multi-cluster on checks the block against the rules in the table, and a break stops it with invalid multi-cluster configuration — for example, invalid multi-cluster configuration: placement.memberReadRetry.maxAttempts: must exceed 1 when backoffs are set for backoffs set while maxAttempts keeps the default 0: see Troubleshooting. While a retry runs, the leader logs member read failed; retrying, with the cluster, the attempt and the wait, at verbosity 1 only.
Pace a placed service's status refresh¶
The control-plane cluster's manager mirrors what it last read from each candidate cluster into a placed InferenceService's status.placement, and the placement gauges follow that status. Multi-cluster placement is alpha and off by default, as Retry a failed member read within a placement pass says. What triggers the next read is ome.multicluster.config.workloadCluster.cacheEnabled, which picks one of two pacing models:
- With the cache off, the chart's default, the control plane reads the workload clusters live and holds no watch on them, so nothing on a member can wake it: a change there becomes visible when the next placement pass re-reads the members, and the mirrored status trails each member by up to the gap between passes.
- With the cache on, the control plane serves its member reads — the services' derived copies, and the members' ServingRuntimes and ClusterServingRuntimes — from per-cluster watches, and those watches feed events back: a member change re-reconciles its source after a short debounce, so freshness is event-driven and the cadences below only recover what the watches miss.
Four settings under ome.multicluster.config, which the chart writes into the same multicluster entry of the inferenceservice-config ConfigMap, set the model and its cadences:
| Setting | Chart default | What it does |
|---|---|---|
workloadCluster.cacheEnabled |
false |
Serves member InferenceService, ServingRuntime and ClusterServingRuntime reads from per-cluster watches, and turns the member event funnels on. false keeps the reads live, with no event source. |
placement.requeueInterval |
"" |
How soon a pass with work in flight re-checks: a candidate still admitting, a hold, a transient read error. Empty, such a pass re-checks every 30 seconds. With the cache off, a settled placement's re-read cadence also folds to this value, and statusSafetyRequeue is ignored. |
placement.statusBatchPeriod |
"" |
With the cache on, the debounce that folds a burst of member events for one service into a single pass. Empty falls back to 1 second. With the cache off there are no events to fold. |
placement.statusSafetyRequeue |
"" |
With the cache on, how long a settled placement waits before re-reading its members anyway, to recover a missed event — a watch gap, a full event buffer. Empty falls back to 10 minutes. It isn't the convergence latency: events drive freshness, so lowering it doesn't speed status up. |
So with the chart's defaults — the cache off and every duration empty — the status is pass-paced: a placement with work in flight is re-read every 30 seconds, which is the up-to-half-a-minute lag between a workload cluster and status.placement, and a settled placement can wait for the 10-minute backstop fallback before its next re-read. When you keep the cache off, set requeueInterval: a placement in flight and a settled one then both follow the one cadence you chose. A placement-relevant change to the source InferenceService or to a WorkloadCluster registration starts a pass at once either way: the cadences only bound changes on the member side, which the control plane can't see without the cache.
This example turns the cache on, folds each service's event bursts into at most one pass every 2 seconds, and tightens the missed-event backstop to 5 minutes:
ome:
multicluster:
config:
workloadCluster:
cacheEnabled: true
placement:
statusBatchPeriod: "2s"
statusSafetyRequeue: "5m"The cache isn't free: the control plane then keeps watches open on every connected workload cluster for the three kinds and holds their objects in memory — including runtimes and same-name services it doesn't own, which its ownership checks must still see.
Upgrade with your values file, as in Step 1, and check the rendered entry:
kubectl get configmap inferenceservice-config -n ome -o jsonpath='{.data.multicluster}' \
| jq '{cacheEnabled: .workloadCluster.cacheEnabled} + (.placement | {requeueInterval, statusBatchPeriod, statusSafetyRequeue})'{
"cacheEnabled": true,
"requeueInterval": "",
"statusBatchPeriod": "2s",
"statusSafetyRequeue": "5m"
}The multicluster entry is in the list that needs a restart: the manager reads it once, when it starts, so the upgrade's restart applies the change, and a kubectl edit to the ConfigMap needs one. At startup, a manager with multi-cluster on refuses a stated duration that doesn't parse or isn't positive — an empty value isn't an error, the fallback in the table applies — and stops with invalid multi-cluster configuration, whose rest names the value and the rule, such as invalid multi-cluster configuration: placement.statusSafetyRequeue: "10" is not a duration (use forms like "30s", "5m"): see Troubleshooting.
Opt in to capacity-based placement¶
An InferenceService whose spec.placement sets mode: SplitByCapacity divides its replicas across the matched workload clusters by measured accelerator capacity: what each member's hardware reports say it can hold of this service. The mode is pending until you configure where the control plane reads those reports. Without the configuration, the service never places, and its PlacementConverged condition holds at False with reason CapacityUnknown and the message capacity placement requires root name and positive freshness, stability, and refresh durations. Nothing on the InferenceService clears that hold: the opt-in is this control-plane setting. Multi-cluster placement is alpha and off by default, as Retry a failed member read within a placement pass says.
Two settings under ome.multicluster.config.placement, which the chart writes into the placement block of the multicluster entry of the inferenceservice-config ConfigMap, turn the mode on:
| Setting | Chart default | What it does |
|---|---|---|
memberOperatorNamespace |
"" |
The namespace OME runs in on the workload clusters — one value for the whole fleet, ome with the standard install. The control plane reads each member's inferenceservice-config ConfigMap and pinned runtime revisions there, to work out what one replica of the service demands on that member. Required for capacity placement. Other placement modes read it only when a member must resolve a pinned runtime or an operator-default replica floor, and hold that resolution while it's empty. |
capacity |
null |
The opt-in block. null keeps SplitByCapacity pending, with the hold above. Set, all four of its fields are required — the manager has no default for any of them. |
The four fields of capacity:
| Field | What it does |
|---|---|
rootName |
The name of the root AcceleratorQuota — root, the one name OME accepts for it. The control plane reads the fleet's per-cluster capacity reports from the root on its own cluster, and resolves each member's demand against the member's own local root of the same name. |
maxAge |
How old a member's capacity report may be and still count. A report maxAge old or older makes that member's capacity unknown, which holds the whole placement, so keep it well above the quota manager's report interval — about a minute by default: see Check that capacity reporting is alive. |
stabilityWindow |
How long a changed hardware picture must hold before an existing placement re-plans on it, so hardware that flaps doesn't move replicas back and forth. The first plan doesn't wait, and a manager restart starts a running wait again. |
refreshInterval |
How often a SplitByCapacity service re-checks capacity: every pass requeues within this interval, so even a converged placement re-reads the reports on this cadence. It must be shorter than maxAge. |
Setting capacity also changes what the chart installs on a control plane (ome.multicluster.enabled: true and ome.multicluster.role: control-plane): the ClusterRole and ClusterRoleBinding ome-placement-capacity-reader, which grant the manager's ServiceAccount read-only access — get, list and watch — to AcceleratorQuotas. The watch matters: a capacity change on the root re-reconciles every SplitByCapacity service at once, and the refreshInterval cadence only backstops it. On each workload cluster, the credentials in the WorkloadCluster's kubeconfig must be able to read the member-side inputs — the local quota root, the Kueue ResourceFlavors, RuntimeClasses, runtimes and models, and the operator ConfigMap and pinned runtime revisions in memberOperatorNamespace. The ClusterRole ome-multicluster-access, which the workload cluster's ome.multiclusterAccess.enabled: true renders, grants exactly that.
This example opts the fleet in, with the member operators in ome:
ome:
multicluster:
config:
placement:
memberOperatorNamespace: "ome"
capacity:
rootName: "root"
maxAge: "5m"
stabilityWindow: "1m"
refreshInterval: "10s"Upgrade with your values file, as in Step 1, and check the rendered block:
kubectl get configmap inferenceservice-config -n ome -o jsonpath='{.data.multicluster}' \
| jq '.placement | {memberOperatorNamespace, capacity}'{
"memberOperatorNamespace": "ome",
"capacity": {
"rootName": "root",
"maxAge": "5m",
"stabilityWindow": "1m",
"refreshInterval": "10s"
}
}The multicluster entry is in the list that needs a restart: the manager reads it once, when it starts, so the upgrade's restart applies the change, and a kubectl edit to the ConfigMap needs one. At startup, a manager with multi-cluster on checks the block and stops with invalid multi-cluster configuration when it breaks a rule — see Troubleshooting:
placement.memberOperatorNamespace is required for capacity placement:capacityis set while the namespace is empty. The namespace is a sibling of the block, not a field inside it — amemberOperatorNamespacenested incapacitycounts for nothing.placement.capacity: rootName is required: the block is set with an empty or blankrootName.placement.capacity.maxAge: must be an explicit positive duration, and the same forstabilityWindowandrefreshInterval: the field is missing, zero, negative, or isn't a duration such as"5m".placement.capacity.refreshInterval: must be shorter than maxAge: an interval equal tomaxAgefails too — a re-check that comes no sooner than the reports expire would always read stale ones.
With the block in place, a SplitByCapacity service places only once every matched member's capacity is known, and PlacementConverged says what's missing:
- Reason
CapacityUnknown: the pass couldn't establish every matched member's capacity, and the message names the first problem — a root the control plane can't read (read fleet capacity: ...), a root that isn't a live parent-less Cohort (fleet capacity root is not an identified live root), a member whose report row is missing or pastmaxAge(cluster "cluster-a" capacity unknown: report for nvidia.com/gpu/a100 is missing a fresh observation time), or a member whose demand doesn't resolve (cluster "cluster-a" demand: ...), such as a wrongmemberOperatorNamespace. The service'sPlacementCapacityFreshcondition turnsFalsewith the same message. A partial answer never places: one unknown member holds the whole service, and the last accepted plan, when there is one, keeps serving as it stands. - Reason
CapacityStabilizing, withhardware change is waiting for the configured stability window: the reports describe different hardware than the current plan was built on. The placement keeps serving and re-plans once the new picture has held forstabilityWindow.
The plan the mode produces lands in status.placement like any split placement, and the placement gauges follow it.
Notice a lost workload cluster sooner¶
When multi-cluster is on, the control-plane cluster's manager probes every registered WorkloadCluster for reachability — one /version request to the member's API server with the registration's kubeconfig — and writes the result into the WorkloadCluster's Ready condition, which kubectl ome cluster status reads. Multi-cluster placement is alpha and off by default, as Retry a failed member read within a placement pass says. Every reconcile pass probes; when nothing else wakes the controller — a change to the WorkloadCluster, or to the kubeconfig Secret it names — the health interval paces the next probe. Two settings under ome.multicluster.config.workloadCluster, which the chart writes into the workloadCluster block of the multicluster entry of the inferenceservice-config ConfigMap, set the cadence and the tolerance:
| Setting | Chart default | What it does |
|---|---|---|
healthInterval |
"" |
The re-probe cadence for an otherwise-idle WorkloadCluster. Empty falls back to 1 minute. It also bounds one probe request while workloadCluster.perCallTimeout is empty, so a probe that hangs fails before the next one is due. |
connectionGrace |
"" |
How long a cluster that holds a live connection tolerates failing probes before the manager flips Ready to False and disconnects it. Empty falls back to 2 minutes. |
The grace window keeps a momentary blip from tearing down a live connection. It covers only the failures that repeating might fix — a failed probe, or a transient error reading the kubeconfig Secret from the control plane's own API server — and only while the cluster still holds its connection. From the first failed probe, Ready stays True with reason ProbeFailedRetrying and a message that starts with transient probe failure, holding connection within grace period:, the connection stays up, and placement keeps using the cluster; re-probes come at the shorter of the grace and the health interval. The first probe to run once the window has passed flips Ready to False with reason ConnectionFailed and drops the connection. A probe that succeeds along the way ends the failure run, and the next one to fail starts a fresh window.
There's no grace without a connection. A WorkloadCluster that never connected, one already flipped, or one that is down when the manager starts turns ConnectionFailed on its first failed probe. The configuration reasons — SecretNotFound, BadKubeConfig and ClusterProfileUnsupported — never wait either: repeating can't fix them, so they're written at once. kubectl ome cluster status lists all the reasons.
So with the chart's defaults — probes every minute, a 2-minute grace — a workload cluster whose API server goes down is noticed like this: up to a minute until the first failed probe, then about 2 minutes of Ready: True with ProbeFailedRetrying, probed each minute, then the flip to Ready: False and the disconnect — about 3 minutes after the outage at worst. To notice a lost cluster sooner, lower both values:
ome:
multicluster:
config:
workloadCluster:
healthInterval: "15s"
connectionGrace: "30s"Upgrade with your values file, as in Step 1, and check the rendered block:
kubectl get configmap inferenceservice-config -n ome -o jsonpath='{.data.multicluster}' \
| jq '.workloadCluster | {healthInterval, connectionGrace}'{
"healthInterval": "15s",
"connectionGrace": "30s"
}The multicluster entry is in the list that needs a restart: the manager reads it once, when it starts, so the upgrade's restart applies the change, and a kubectl edit to the ConfigMap needs one. At startup, a manager with multi-cluster on refuses a stated value that isn't a positive duration and stops with invalid multi-cluster configuration, whose rest names the value and the rule, such as invalid multi-cluster configuration: workloadCluster.connectionGrace: "0s" must be positive: see Troubleshooting.
You can't make the first failed probe disconnect at once: the grace has no off switch. An empty connectionGrace means the 2-minute default, and a zero or negative duration stops the manager, as above. The closest is a grace shorter than the health interval, such as "1s" — the grace paces the re-probe then, so the first failed probe still writes ProbeFailedRetrying, and the re-probe a second later flips and disconnects.
Recognize other accelerator resources¶
The acceleratorResources entry of the inferenceservice-config ConfigMap lists the extended resource names that OME counts as accelerators when it reads a runner container's requests and limits. The count sets the PARALLELISM_SIZE environment variable in the engine's and the decoder's runner: the accelerators in each pod times the pods in each replica. The chart writes the entry from ome.controller.acceleratorResources, whose default lists only nvidia.com/gpu.
A resource that the list leaves out counts as no accelerators: with the default list, a runner that requests only amd.com/gpu or google.com/tpu gets no PARALLELISM_SIZE, so an argument such as --tp-size=$(PARALLELISM_SIZE), as in Serve a multi-node model, reaches the model server as that text, unexpanded. To serve on another vendor's accelerators, add their resource name — the exact name, no patterns:
ome:
controller:
acceleratorResources:
- nvidia.com/gpu
- amd.com/gpuWhen a runner requests more than one listed resource, OME counts the first name in the list's order that the runner's resources carry, reading its limit before its request. The variable replaces any value you set in the runner, and Serving runtimes covers when OME leaves it unset. The manager itself has no default list: with the value empty, the chart leaves the entry out of the ConfigMap, and the manager falls back to recognizing only nvidia.com/gpu — an empty list doesn't turn recognition off, and a cluster whose values never set the list keeps NVIDIA-only recognition.
Upgrade with your values file, as in Step 1, and check the rendered entry:
kubectl get configmap inferenceservice-config -n ome -o jsonpath='{.data.acceleratorResources}{"\n"}'["nvidia.com/gpu","amd.com/gpu"]The entry isn't in the list that needs a restart: the manager reads it through its config cache, so even a kubectl edit takes effect within the cache's TTL, and reaches each component when its InferenceService next reconciles. The upgrade's restart reconciles them all at once.
Don't confuse the list with ome.controller.quotaAcceleratorResources, which sets the --accelerator-resources flag: that one scopes quota admission, and a name added there changes no pod template.
Add environment variables and files to the manager pod¶
Three values under ome.controller add environment variables and files to the manager pod, such as proxy settings or a private CA bundle. All three default to empty lists, which leave the rendered Deployment unchanged:
extraEnv: environment variables for themanagercontainer, written like a container'senv, sovalueFromworks too. The chart appends them after thePOD_NAMESPACEandSECRET_NAMEvariables that it sets itself.extraVolumes: volumes for the pod, written like a Pod'svolumes, appended after the chart's webhook certificate volume.extraVolumeMounts: their mounts in themanagercontainer, written like a container'svolumeMounts.
Because they're values, an upgrade with your values file keeps them, where the next upgrade can undo a kubectl patch to the Deployment.
This example sends the manager's outbound requests through a corporate proxy and trusts a private CA. First create a ConfigMap from your bundle file, ca-bundle.crt here:
kubectl create configmap corp-ca-bundle -n ome --from-file=ca-bundle.crtconfigmap/corp-ca-bundle createdThen add the values:
ome:
controller:
extraEnv:
- name: HTTPS_PROXY
value: "http://proxy.example.com:3128"
- name: NO_PROXY
value: "10.0.0.0/8,.svc,.cluster.local"
- name: SSL_CERT_FILE
value: /etc/corp-ca/ca-bundle.crt
extraVolumes:
- name: corp-ca
configMap:
name: corp-ca-bundle
extraVolumeMounts:
- name: corp-ca
mountPath: /etc/corp-ca
readOnly: trueThe proxy variables take Go's standard form: the manager sends requests through the proxy in HTTPS_PROXY, except to the hosts, domains and CIDR ranges that NO_PROXY lists. SSL_CERT_FILE names the file the manager reads root certificates from, in place of the image's default bundle, so put every certificate authority it must trust in the bundle, not only the private one. SSL_CERT_FILE doesn't change the connection to the Kubernetes API server, which uses the cluster's CA from the pod's ServiceAccount.
Upgrade with your values file, as in Step 1, and wait for the rollout. Then print the names of the manager container's environment variables:
kubectl get deployment ome-controller-manager -n ome \
-o jsonpath='{range .spec.template.spec.containers[?(@.name=="manager")].env[*]}{.name}{"\n"}{end}'POD_NAMESPACE
SECRET_NAME
HTTPS_PROXY
NO_PROXY
SSL_CERT_FILEThe chart's two variables come first, and your extraEnv entries follow them. The volumes work the same way: the pod has cert, the webhook certificate volume, then your extraVolumes, and the manager container mounts the certificate, then your extraVolumeMounts.
Tune runtime-revision garbage collection¶
OME keeps the versions of a runtime's spec as ControllerRevisions in the manager's namespace, so that InferenceServices can pin a version. For each runtime name, across namespaces, it keeps the 10 newest revisions and the revisions that InferenceServices use. It marks the others with the annotation ome.io/gc-eligible-since, and deletes them 24 hours later. See Garbage collection.
--runtime-revision-retention and --runtime-revision-grace-period change the 10 and the 24 hours. Set them with a patch, as the example in Without a Helm value does. Write days in hours: 72h for three days. List the revisions, their runtimes and when they were marked:
kubectl get controllerrevisions -n ome -l ome.io/runtime-of \
-o custom-columns='NAME:.metadata.name,RUNTIME:.metadata.labels.ome\.io/runtime-of,MARKED:.metadata.annotations.ome\.io/gc-eligible-since'MARKED is <none> for a revision that OME keeps, and otherwise the time that OME marked it.
Turn on RolloutPolicy and AutoscalerPolicyUnreleased: coming in v1.3¶
Both features are off by default. To turn one on, set ome.rolloutPolicy.enabled or ome.autoscalerPolicy.enabled to true in both charts, and upgrade ome-crd first, then ome-resources. Then restart the manager, which looks for the CRDs only when it starts. Until then, the InferenceService webhook rejects InferenceServices that reference that kind of policy, with AutoscalerPolicyFeatureDisabled or RolloutPolicyRefUnsupported in the error. Rollout policy and Autoscaler policy give the commands and the checks.
Troubleshooting¶
The manager rollout doesn't finish¶
kubectl rollout status keeps waiting when the new pods exit at startup. The Deployment keeps the old pods, so the current leader keeps running. A bad entry in the inferenceservice-config ConfigMap can break the leader too, once its config cache expires: with a bad deploy entry, InferenceService reconciles fail. Look for the startup errors:
kubectl logs -n ome -l control-plane=ome-controller-manager --tail=-1 | grep -E \
-e 'Invalid leader election timing|invalid --multicluster-role|invalid multi-cluster configuration' \
-e 'flag provided but not defined|invalid (boolean )?value ".*" for (flag )?-' \
-e 'Failed to initialize [a-zA-Z -]+ configuration'| Message | Cause and fix |
|---|---|
Invalid leader election timing |
The lease values break a rule in Lease timing. The error gives the values and the rule. |
invalid --multicluster-role |
Set ome.multicluster.role to control-plane, or leave it empty. |
invalid multi-cluster configuration |
The multicluster entry of the inferenceservice-config ConfigMap breaks a rule, and the rest of the line says which. For placement.memberReadRetry, see Retry a failed member read within a placement pass; for a refused duration, such as the status pacing settings, see Pace a placed service's status refresh; for placement.capacity and placement.memberOperatorNamespace, see Opt in to capacity-based placement; for workloadCluster.healthInterval and workloadCluster.connectionGrace, see Notice a lost workload cluster sooner. |
flag provided but not defined, invalid value or invalid boolean value |
A patched argument is misspelled, isn't in your OME version, or has a bad value, such as 3d for a duration. |
Failed to initialize deployment configuration, or the same for another entry |
That entry of the inferenceservice-config ConfigMap is invalid, and the rest of the line says why. For replicas in the deploy entry, see Set replica defaults. For Failed to initialize event recorder configuration, the eventRecorder entry breaks a rule in Tune the per-object event budget. For Failed to initialize lifecycle scale configuration, a scale setting in the lifecycle entry breaks a rule in Pace OMENative scale-ups and scale-downs. |
Fix the value and upgrade again, as in Step 1. Correct a patched argument with kubectl edit deployment ome-controller-manager -n ome, which prints deployment.apps/ome-controller-manager edited when you save a change.
Next steps¶
- Controller manager flags: the manager's flags, with their defaults and Helm values.
- Set up alerting: turn on the chart's alerts for when the control plane stops reconciling or the admission webhook fails.
- Collect metrics: tune the Prometheus that the chart deploys, which also scrapes the manager's metrics.
- Run the model agent: configure the node agent that downloads models and reads their metadata.
- Set accelerator quotas: limit the accelerators that InferenceServices can use.