Wasm Sandboxes Test How Many AI Agents One Kubernetes Server Can Hold

Nov 13, 2026 754 views

Here's the number that stands out: 1.42 million sandboxed environments running on a single 64-core server. Cosmonic demonstrated that configuration at KubeCon + CloudNativeCon North America 2026, running wasmCloud on a Kubernetes cluster to host AI agents. My read is that density, more than raw capability, is what makes this worth a look. Capability gets the headlines, but density decides whether a platform team can afford to run agents at all.

If you run a platform team, you've probably watched new workloads arrive with their own infrastructure requests attached. Density is the answer to that pattern. Treat this demo as a cost story first and a technology story second.

Why density matters for agents

CTO Bailey Hayes presented the approach as an alternative way to deploy agents. Teams could run them in WebAssembly sandboxes that scale on existing Kubernetes instances instead of provisioning heavier infrastructure for each one. That's a meaningful difference. Many agent deployments lean on whatever isolation unit the team already knows, and that unit often carries more overhead than the agent needs. Swap in a smaller one and the math changes on every agent you add.

Wasm fits agents with a narrow job. Hayes noted that an AI coding agent may need a larger sandbox built on a micro virtual machine. Most enterprise agents, though, will focus on a tight set of tasks, and that's where a lightweight sandbox earns its keep.

Here's the thing: the tradeoff isn't really Wasm versus virtual machines. It's matching the sandbox to the job. A coding agent that compiles code, runs tests, and touches a filesystem asks far more of its environment than an agent that queries a ticketing system. I'd be skeptical of any vendor claiming one sandbox type fits every agent. The fair reading of Hayes's comments is that Wasm covers a subset of workloads, and that subset may be the bulk of what enterprises actually deploy.

Isolation matters just as much. Without a sandbox, an agent can reach services and applications it should never touch. An agent with broad network reach can be steered into actions nobody planned for, and that's a problem no amount of density solves. Isolation is the part people skip past (and this is the part most people overlook), because cheap sandboxes make it tempting to stop thinking about boundaries once the agent is running.

Wasm Cloud's open-source play

Cosmonic is pitching wasmCloud as a way to run agents on Kubernetes. The platform includes a Kubernetes Operator that makes it possible to deploy Wasm components. The project is proceeding as open source under the Cloud Native Computing Foundation (CNCF), and Hayes believes AI agents could become a "killer application" for it.

Open source under a foundation matters because it changes who can inspect, fork, and vet the work. That's a reasonable pitch, and it's also the pitch nearly every infrastructure vendor makes. The real test is how many outside teams run it in production. An announcement can't answer that, and the source doesn't offer adoption figures, so the claim stays aspirational for now.

Where the bottlenecks sit

Running agents on Kubernetes already exposes performance problems. Teams are hitting issues ranging from how efficiently agents consume infrastructure to how the Kubernetes control plane holds up under load, as efforts to re-engineer Kubernetes for the agentic AI era make clear. Those are two different problems that get lumped together. One is about resource efficiency per agent. The other is about how the cluster's management layer copes with volume.

Idle agents are the waste problem. Today, each active agent gets its own pod, and that pod locks up memory and CPU even when the agent sits doing nothing. Multiply that by millions of agents and the control plane ends up tracking millions of persistent objects it was never built to manage. Agent-driven API calls also climb steeply, which puts pressure on the control plane from another direction. Expensive. Quietly so. If you're sizing a cluster for agents, idle time is the number to watch, not peak load.

Security adds another layer. Agents running on servers that host Kubernetes clusters need additional primitives to stay contained, and those aren't mature yet. Kubernetes wasn't designed around agents that take open-ended actions, so the containment tools teams reach for were built for more predictable services. That gap is where I'd expect security teams to show the most caution in the near term.

Google's Agent Substrate and the snapshot idea

Google has contributed an open-source Agent Substrate framework to the CNCF. It runs long-running agent workloads at scale on Kubernetes more efficiently by separating stateful agent sessions and identities from active compute. Idle agents get snapshotted and stored, then restored in under 500 milliseconds when needed. That frees the memory and CPU an idle pod would otherwise hold, which is where the cost savings come from.

The idea is simple to state and harder to build. The session survives, but the process doesn't have to. Restoring in under half a second is fast enough that a user waiting on an agent probably won't notice much of a pause. The source doesn't say how restores behave under heavy concurrency, though, and that's the scenario that would actually stress the design.

The timing problem

The control-plane improvements won't reach a Kubernetes distribution until next year. Vendors aren't waiting. Solo.io is offering an enterprise edition of Agent Substrate that IT teams can deploy themselves. That's the gap in a sentence. Teams that need agent density now can't wait for upstream changes, and a packaged vendor edition is the obvious shortcut.

Whether that shortcut is worth it depends on how much support burden your team wants to own. A vendor edition trades waiting for a dependency, and dependencies have their own timelines. Read the support terms as closely as the feature list.

That leaves IT teams with a real choice. They can wait for Kubernetes to be tuned for agents, or adopt an alternative framework that runs agents more efficiently on current distributions. Agents are coming to Kubernetes either way. The teams that get ahead will be the ones measuring sustained concurrency and idle-state costs, not sandbox counts alone. Sandbox counts are a flattering metric, and vendors love them. Sustained concurrency and idle cost tell you what the bill looks like a few quarters from now, which is the number that matters.

What this means for you

What this means for you depends on where you sit. If you run a platform, the question is whether you've measured your cluster's idle footprint at all. Most teams haven't, and that's the first thing to fix before any framework decision.

If you build agents, the question is different. Which of your agents genuinely need a full environment, and which only need a narrow sandbox? Answering that honestly will do more for your costs than any single product choice.

Here's my honest take. The density figure is eye-catching, and it should be. But one demo on one server shows what's possible under controlled conditions, not what holds up across a messy production fleet. Hold the claim to the same standard you'd hold any benchmark, and ask for the workload mix behind it before you repeat the number in a planning meeting.

Source: Mike Vizard · cloudnativenow.com

Comments

Sign in to comment.
No comments yet. Be the first to comment.

Related Articles

Cosmonic Pushes Sandbox Density Limit Using Wasm on Kuber...