Snapshot dated 29 November 2026. This document records completed work, the evidence behind it and the next research steps. Project scope and setup instructions are in the README and Minikube guide.
KubeAI is a working research prototype with real-model routing and local GPU measurements. The goal is to meet latency and reliability targets as demand changes while using GPU resources and energy efficiently. The current stage measures routing and prepares a controlled study of replica capacity on one GPU. Physical GPU scale-out and automatic replica management are later stages.
| Workstream | Completed work | Verification boundary |
|---|---|---|
| Routing | Round robin, Capacity and KubeAI; model/health filtering, local reservations, cooldown and config reload | Unit/integration checks, emulator experiments and local vLLM campaigns |
| Observation | vLLM queue/running/KV polling; Prometheus exposition; optional single-device memory exporter | Current shared-GPU config does not connect physical memory to routing |
| Benchmark engine | Seeded arrival traces, closed-loop workers, streaming TTFT, per-request CSV, input/source hashes and manifests | Runtime/serving conditions still need operator control |
| Dashboard controls | Endpoint drafts/probes, versioned persistence, local/cloud URLs and one background benchmark job at a time | Model deployment and GPU allocation remain external |
| Saved analysis | Matching-context groups, explicit incomplete-provenance comparisons, per-replica request breakdown and missing-data handling | Exploratory groups are not independently attested deployments |
| Visual comparison | Six charts with policy means/per-run dots; detailed tables remain available; outcome counts stay visible | Data/unit checks completed; browser appearance reviewed through the local UI |
| GPU energy | Board-power samples, boundary-aware integration, per-UUID totals, coverage and normalized energy | Gross local GPU estimates, not system-wide or per-replica energy |
| Placement | First-fit/best-fit recommendation and optional Pod manifest generation | Synthetic inventory checks; no automatic cluster writes or live reservations |
| Deployment | Docker/Compose profiles and live Minikube deployment with two vLLM Pods, EndpointSlice discovery, persistent model cache and Prometheus | One physical GPU with NVIDIA time-slicing and a manually configured replica count |
| Checks | 128 unit/integration tests and JavaScript syntax check passed | Socket tests use temporary CPU emulators; NVIDIA access is mocked |
| Scientific communication | Poster framing/text aligned with the research question and target architecture | Final publication figures and architecture artwork remain to be prepared |
The latest dashboard chart work also checked 18 policy means and 54 individual values against the nine-run hardware dataset. Millisecond/energy units, missing-versus-zero behavior and HTML/JavaScript element references were checked. The chart work did not launch GPU inference.
The implemented routing score uses local/observed load, configured service-time estimates, KV-cache pressure and optional physical memory pressure. It selects the lowest score among fresh, healthy, compatible replicas.
See policy.py, placement.py and the shared-GPU configuration.
results/hardware-*/. Those pilots are separate from the newer closed-loop campaign below.Earlier single-server and shared-GPU pilots differ in topology and/or measurement path. They do not isolate the effect of adding a second replica. Emulator, direct-server, routed and different-workload results must remain separate.
The kubeai-lab profile runs the KubeAI router, vLLM and Prometheus. The router discovers two healthy Qwen/Qwen3-0.6B vLLM Pods through EndpointSlices, which use two time-sliced slots on one RTX 4070 Laptop GPU. Each instance uses the pinned model revision, a 2,048-token context and a 0.40 GPU memory budget. The model cache persists across Pod restarts. First setup and restart
The cluster dashboard is on port 18080. The benchmark dashboard on port 18081 runs on the host and sends requests through 18080. Its endpoint and policy label describe the host relay. Cluster routing happens after that hop, and cluster metrics track the Pod that served each request. The GPU samples measure the physical board shared by the Pods.
On 29 November, three runs went through both routers to one vLLM Pod on the RTX 4070. Each used four closed-loop workers, a 30-second issuance target, seed 42 and two warm-up requests. The single instance used a 0.75 GPU memory budget. Model revision and serving-image fields are unknown in the saved run manifests.
| Host dashboard policy label | Completed | Requests/s | P95 (ms) | TTFT P95 (ms) | Mean GPU W | J/completed request |
|---|---|---|---|---|---|---|
| KubeAI | 722 | 23.76 | 404.6 | 35.9 | 72.35 | 3.05 |
| Capacity | 725 | 23.88 | 404.6 | 35.9 | 72.06 | 3.02 |
| Round robin | 718 | 23.79 | 405.9 | 37.5 | 72.63 | 3.05 |
All 2,165 requests completed with zero errors or drops. 1,937 completions reached the output-token limit. All three runs had full power-sample coverage under the integration rule. With a single backend, treat these as baseline repetitions for this measurement path. The host policy control does not change the cluster policy. KubeAI run · Capacity run · Round robin run
The earlier run 20261129T161520-kubeai-77836867 reached two emulator Pods while the GPU rollout was pending. Its manually selected hardware label and idle-board power readings are excluded from the hardware evidence. The two-vLLM topology has been verified live. The planned 1 × 0.40 versus 2 × 0.40 fixed-arrival comparison is pending. The recorded runs above used 1 × 0.75 and closed-loop traffic. Run artifacts under results/ are local to the machine that produced them.
| Item | Value |
|---|---|
| Model identifier | Qwen/Qwen3-0.6B |
| Hardware | One NVIDIA GeForce RTX 4070 Laptop GPU, 8,188 MiB |
| Serving topology | Two local vLLM replicas sharing that physical device |
| Working-session serving profile | 2,048-token context and 0.40 VRAM budget per replica; the budgets do not isolate compute |
| Workload mode | Closed-loop, 6 workers, 30-second request-issuance target; final drain is included |
| Inputs | Same saved varied-input pool, seed 42; output budgets of 8/16/32/64 tokens |
| Warm-up | 2 requests per requested model through the router, excluded from measurement |
| Streaming | Enabled |
| GPU sampling | Enabled, 1-second polling wait; complete integration coverage in every run |
| Model/image provenance | unknown in all nine manifests |
| Classification | Exploratory comparison |
The serving flags above describe the setup used in the working session. Image/model provenance was not independently captured in these run manifests. Reference pins in the setup guide must not be substituted retrospectively for the missing declarations.
Policy order was rotated:
| Round | Order |
|---|---|
| 1 | Round robin → Capacity → KubeAI |
| 2 | Capacity → KubeAI → Round robin |
| 3 | KubeAI → Round robin → Capacity |
The input pool was identical; the number of offered/completed requests was not fixed because this was a closed-loop throughput experiment.
Values below are means of per-run measurements, including a mean of each run’s P95 rather than a pooled request percentile.
| Policy | Runs | Completed req/s | P95 (ms) | TTFT P95 (ms) | Mean GPU power (W) | J/completed request | J/1000 output tokens |
|---|---|---|---|---|---|---|---|
| Round robin | 3 | 18.23 | 814.3 | 42.5 | 71.25 | 3.91 | 158.76 |
| Capacity | 3 | 18.26 | 813.6 | 37.7 | 71.18 | 3.90 | 158.29 |
| KubeAI | 3 | 24.76 | 738.2 | 40.6 | 72.87 | 2.95 | 120.51 |
gpu_energy.status = estimated and 100% integration-window coverage under the recorded gap rule.Relative to Round robin, KubeAI’s observed mean throughput was about 35.8% higher, mean per-run P95 9.3% lower, and mean J/completed request 24.6% lower. Capacity had the lowest TTFT P95.
Mean total energy per run was approximately 2,176 J for Round robin, 2,167 J for Capacity and 2,209 J for KubeAI. KubeAI used about 1.5% more total energy than Round robin while completing more work. The observation supports better energy efficiency per unit of delivered work in this configuration, not reduced total watts/joules or fewer GPUs.
Run identifiers and manifest wall-clock timestamps use UTC. Each link opens a raw summary; its directory also contains the manifest, request CSV, exact inputs and raw telemetry.
| Round | Policy | Saved summary |
|---|---|---|
| 1 | Round robin | 20261115T015931-round_robin-4c8f1f6f |
| 1 | Capacity | 20261115T020008-capacity-e8ddbf8b |
| 1 | KubeAI | 20261115T020043-kubeai-92036471 |
| 2 | Capacity | 20261115T020848-capacity-4f1421a2 |
| 2 | KubeAI | 20261115T021242-kubeai-0e1a55ed |
| 2 | Round robin | 20261115T021626-round_robin-b4d9f42d |
| 3 | KubeAI | 20261115T022742-kubeai-0b8f089d |
| 3 | Round robin | 20261115T022911-round_robin-ca73db43 |
| 3 | Capacity | 20261115T023048-capacity-cacc49d7 |
Recorded benchmark-source SHA256:
c61092d3281e7679f5701f3cc6b083a404fe562f26a45d5df7faedd233a66bcd
Recorded input-pool SHA256, stored as trace_sha256 even for closed-loop runs:
651093ad6a2acf247b753b1217cf2a828e55a921d9bfd4bc68a52db55f6ef873
The viewer’s current grouping ID begins 6d82d7fc. Later source/UI changes can create a new benchmark-source hash and separate future runs. Historical artifacts are not rewritten to force grouping.
Raw results/ directories are local and ignored by version control by default. A fresh checkout may lack these linked artifacts; retain/export the complete run directories with the report for reproducibility.
This campaign covers one model, one input seed/pool, one concurrency/duration profile and one shared physical GPU. Three repeats show observed variation, not statistical significance across workloads or a causal explanation of which score term helped.
Additional limits:
1 × 0.40 and 2 × 0.40 with one cluster routing policy. Add 1 × 0.80 if stable to compare a single instance with two at a comparable nominal total budget. Report the highest tested load each configuration can sustain while meeting the service targets, alongside its energy per unit of work. Then replay a rising workload and start the second Pod manually to measure the transition on the shared GPU.0.40 each. Compare Round robin, Capacity and KubeAI on the same traces, with repeated runs and rotated policy order. Send traffic directly through the forwarded cluster router and retain per-Pod request data. An external inference router and variants of the KubeAI score can then provide stronger baselines and help isolate the contribution of each signal.Derive goodput as successful requests meeting the chosen per-request latency targets divided by the measured run duration. Use scheduled latency and scheduled TTFT for fixed-arrival traces so client dispatch delay counts toward the deadline. The current benchmark saves these timings in requests.csv. Report completed requests/s, P95 latency, TTFT P95, failures, drops and truncation alongside goodput. Report board joules and energy per completed request or per 1,000 output tokens, with the power-coverage percentage. Keep billed cloud cost separate from measured device energy. Minikube capacity procedure
The project concept, current scope and setup are now consolidated in README.md. The stale root duplicate has been retired. The Kubernetes instructions remain in GUIDE.md, and the earlier technical report is retained as a dated historical snapshot. Original benchmark inputs/results and all hardware run artifacts are preserved.