[Call for Testing] Try ModelWarmup in AIBrix v0.8.0 or master branch
ModelWarmup is available as an experimental feature in AIBrix v0.8.0. We would like more users and cluster operators to try it and share what works, what is unclear, and what fails in real environments.
ModelWarmup prepares selected Kubernetes nodes before workload placement. It can:
- preload container images;
- run finite custom preparation actions, including model downloads and node checks;
- run once against a resolved set of nodes;
- continuously cover nodes as they join, leave, or are replaced.
ModelWarmup creates a node-pinned Job for each selected node. It prepares caches only. It does not start an inference server or gate workload placement.
The feature is experimental in v0.8.0, so its API and behavior may change based on feedback.
References:
Start with a small smoke test
After installing AIBrix v0.8.0, authorize a test namespace and node in the same resource pool:
kubectl label namespace default resource-pool.aibrix.ai/name=latency-pool
kubectl label node <node> \
resource-pool.aibrix.ai/name=latency-pool \
model.aibrix.ai/warmup-enabled=true
Apply the lightweight image-only sample:
kubectl apply -f https://raw.githubusercontent.com/vllm-project/aibrix/v0.8.0/samples/modelwarmup/modelwarmup.yaml
kubectl get modelwarmup runtime-image-warmup -w
The sample pulls busybox:1.36 on each authorized target node and exits. A successful run reaches the Succeeded phase.
What we would like tested
We are interested in feedback from different Kubernetes distributions, container runtimes, registries, storage configurations, and GPU environments.
Useful test areas include:
- image preloading with public and private registries;
- custom model downloads and node-local cache permissions;
- node and GPU prechecks;
- the combined vLLM and SGLang samples;
Oncebehavior with multiple nodes and partial failures;Continuousbehavior when nodes join, leave, are relabeled, or are replaced;- retries, timeouts, and controller recovery;
- taints, Pod Security admission, quotas, and restricted namespaces;
- status, events, diagnostics, and documentation clarity.
Successful test reports are useful too. Please include the environment and sample you tried so we can understand where ModelWarmup is already working.
Reporting a problem
For a bug, open a separate issue and link back to this one. Please include:
- AIBrix version or commit;
- Kubernetes version and container runtime;
- ModelWarmup manifest with credentials removed;
- expected and actual behavior;
kubectl describe modelwarmup <name>;- generated Job and Pod status or events;
- relevant controller logs.
Contributing
Pull requests are welcome for bug fixes, tests, documentation, diagnostics, and sample improvements. Please link the PR to the reported problem and describe how you tested the change.
For API changes or larger behavior changes, start with an issue or discussion before opening a large PR. This gives users and maintainers time to agree on the requirement while the feature is still experimental.
Tried v0.8.0 on kind, CPU only.
Environment: kind v0.27.0, Kubernetes v1.31.12, containerd 2.1.3, one control-plane and two workers. I installed the core CRDs and, from aibrix-core-v0.8.0.yaml, only the controller-manager and its supporting resources; ModelWarmup didn't need the dependency bundle.
- Smoke test with the unchanged
samples/modelwarmup/modelwarmup.yaml: Succeeded about 6 s after creation, including the busybox pull. Oncewith a failure on one of two nodes (a custom container that exits 3 on one node name, read through the downward API,retryLimit: 1):Degradedafter about 18 s, with 2 desired, 1 succeeded and 1 failed.status.targetsnamed the failing node, its Job andBackoffLimitExceeded, and the other node finished normally.- Namespace enforcing Pod Security
restricted: the ModelWarmup and its Job were accepted, but Pod Security rejected the generated Pods, since image entries have nosecurityContext. The same preload as a custom container with a restricted-compliantsecurityContextsucceeded in about 3 s. While the Pods are being rejected the target keeps reporting Running; details in #3123.
Tested ModelWarmup samples and webhook validation on master (v0.8.0+):
- Image preload smoke test (
samples/modelwarmup/modelwarmup.yaml): Verified manifest parsing and CRD validation. The image-preload Job creation against authorized nodes in the resource pool works as expected. - Webhook validation & bounds:
Validated that
pkg/webhook/modelwarmup_webhook.gostrictly rejects invalid label selectors, unbound node names, missing custom image specifications, and invalid container names, while correctly permitting zero retries and finite job timeouts. - PSA Restricted compliance:
Following up on @vjsairam's feedback in #3123, confirmed that declaring custom warmup containers with compliant non-root
securityContext(runAsNonRoot: true,capabilities.drop: ["ALL"],seccompProfile: RuntimeDefault) allows warmup jobs to run cleanly underrestrictedPod Security Admission standards. - Samples:
All samples under
samples/modelwarmup/(continuous.yaml,gpu-precheck.yaml,node-precheck.yaml,vllm-qwen-warmup.yaml,sglang-qwen-warmup.yaml) pass unit validation cleanly viaTestModelWarmupSamples.
Ran ModelWarmup on kind (k8s v1.36.1, 1 control-plane + 2 workers, containerd 2.3.1) with a local insecure registry.
On v0.8.0 the smoke test, node-precheck, image preload from a private registry, and Once across two nodes with one failing all behave as documented — the partial-failure case named the failing node and reported BackoffLimitExceeded.
Continuous is not in v0.8.0: git ls-tree v0.8.0 samples/modelwarmup/ returns 7 files and no continuous.yaml (main returns 8), the v0.8.0 CRD asset has neither continuousRetryLimit nor continuousRetryIntervalSeconds, and the v0.8.0 release notes only list image preloading and custom actions. #2978 landed 10-14 and v0.8.0 shipped 10-13, so that bullet gives a 404 on v0.8.0 — maybe worth marking which parts need main.
On main (manager built from a89b94a, main CRD) Continuous works: with both workers labeled, desiredNodes=2 and each gets a Job; removing the pool label from one drops it to 1; relabeling brings it back to 2 and a new Job appears on that node. Final phase Ready, succeededNodes=2.
One small thing: a control-plane node that carries the pool labels is reported as "node is not authorized for this namespace", which reads like a label or RBAC problem rather than a role rule.
Thanks for the detailed testing report. You're right that Continuous was added after v0.8.0; the Continuous test item in this issue applies to main, while the v0.8.0 checks cover Once. The issue description should make that distinction clearer.
The control-plane message is a real diagnostic bug. Excluding control-plane nodes is intentional, but reporting “node is not authorized for this namespace” when the pool and opt-in labels match points operators in the wrong direction. I opened #3428 and submitted PR #3429 to make the message identify the role restriction while preserving the existing exclusion behavior.
I tested ModelWarmup on main, covering the areas earlier reports left open: Continuous node replacement and replay, the Continuous retry budget, controller recovery, taints, parallelism, and the namespace pool condition.
Environment: kind v0.33.0, Kubernetes v1.37.0, containerd 2.3.4, one control-plane node and two workers, CPU only. Manager built from main at 270e37b7 with only the CRDs, the controller manager and its webhook installed. Both workers carried the pool and opt-in labels.
| Test | Result |
|---|---|
| Continuous image preload on two nodes | Ready, 2/2, about 10 s after creation |
| Delete a retained successful Continuous Job | Job recreated, lastConvergedTime advanced: replay works as documented |
| Replace a Node with the same name (delete the Node object, restart the kind node so kubelet re-registers it with a new UID) | The re-registered Node has no pool labels, so it left the set: desiredNodes 1, old Job removed. After relabeling, a new Job annotated with the new UID ran, and the warmup returned to Ready 2/2 |
Continuous retry budget: failing custom container, retryLimit: 0, continuousRetryLimit: 2, continuousRetryIntervalSeconds: 15 |
Attempts at +0 s, +18 s and +36 s (the interval plus about 3 s for each Job to fail), then no fourth. Target Failed/BackoffLimitExceeded at attempt 3, phase Degraded. Deleting the retained failed Job started a new cycle at attempt 1 |
Delete the controller-manager Pod while a two-node Once warmup runs 60 s Jobs |
The new leader adopted both Jobs, created no duplicates, and reached Succeeded 2/2 about 63 s after start |
parallelism: 1 on two nodes (20 s Jobs) |
activeNodes never exceeded 1. The second Job was created when the first completed |
| Continuous in a namespace without the pool label, then label it | Pending, Ready=False, NamespacePoolNotConfigured with a clear message. After labeling, it resolved to Ready 2/2 without intervention |
Once against a worker tainted dedicated=gpu:NoSchedule, jobTimeoutSeconds: 30 |
Excluded as documented: the Pod stayed Pending (FailedScheduling: 1 node(s) had untolerated taint(s)). See the first point below |
Two things came up:
- An unschedulable Pod reports as
Runningfor the whole job timeout. For all 30 s the target showedRunningwith "warmup job is running", then ended asFailed/DeadlineExceeded("Job was active longer than specified deadline"). The taint is never mentioned in ModelWarmup status. With the samples'jobTimeoutSeconds: 1800, that's 30 minutes ofRunningfor a Pod that can't schedule. It's the same shape as #3123, which was settled with docs (#3134). The no-active-Pods heuristic proposed there wouldn't catch this case, though: a Job counts Pending Pods instatus.active, so this Job has an active Pod. The controller's service account can already list Pods. Surfacing a Pod'sPodScheduled=Falsereason in the target message (for exampleUnschedulable: 1 node(s) had untolerated taint(s)) would need no RBAC change. Would a change like that be welcome? If so, I'd like to take it. - The manager can't run with only
--controllers=model-warmup-controller. It crash-loops on the KVCache webhook because webhooks are registered for API groups the scheme doesn't have. That's not specific to ModelWarmup, so I filed it separately as #3530. For these tests I ran--controllers=model-warmup-controller,pod-autoscaler-controller,kv-cache-controller.