Skip to content
IJK

Agent Substrate: Mapping Many Agents onto a Small Worker Pool

By IJK ·

How NVIDIA's post says Agent Substrate maps idle agents onto a small pool of Kubernetes worker pods, and what it changed for a full pool.

How actors map onto workers

Agent Substrate uses Kubernetes for running a pool of ready pods. [1]

It creates a separate control plane that maps a large set of actors (agents and their environments) onto that smaller pool of workers. [2]

When an actor goes idle, it is snapshotted out of its sandbox (gVisor or a microVM) and its worker is freed. [3]

When the actor is called again, it is restored into whichever worker is free, with its memory and filesystem state intact. [4]

goes idlecalled againActor runningon a workerSnapshotmemory and filesystemWorker freedRestoreonto whichever worker is free
What happens to an actor's state when it goes idle and is called again?

What stays ordinary Kubernetes

Waking an actor doesn’t require a new trip through the API server, scheduler or kubelet. [5]

Agent Substrate restores the actor onto an existing worker instead. [6]

The worker pods are still ordinary Kubernetes Pods, so cluster scheduling, quotas and placement policies still apply as we describe later. [7]

When the pool is full

Agent Substrate used to return an error immediately, even though another actor would usually free a worker a moment later. [8]

Request parking in the Agent Substrate router (#221) holds the request and retries the resume until a worker frees up, with a bounded wait and a cap on how many requests can wait at once. [9]

The ext_proc filter hard-coded MessageTimeout=5s, so Envoy abandoned a parked request (HTTP 500) long before the router's park budget elapsed. [10]

Sources

  1. The NVIDIA source says: Agent Substrate uses Kubernetes for running a pool of ready pods. Agent Substrate: Advancing Kubernetes for Agents at Scale
  2. The NVIDIA source says: It creates a separate control plane that maps a large set of actors (agents and their environments) onto that smaller pool of workers. Agent Substrate: Advancing Kubernetes for Agents at Scale
  3. The NVIDIA source says: When an actor goes idle, it is snapshotted out of its sandbox (gVisor or a microVM) and its worker is freed. Agent Substrate: Advancing Kubernetes for Agents at Scale
  4. The NVIDIA source says: When the actor is called again, it is restored into whichever worker is free, with its memory and filesystem state intact. Agent Substrate: Advancing Kubernetes for Agents at Scale
  5. The NVIDIA source says: Waking an actor doesn’t require a new trip through the API server, scheduler or kubelet. Agent Substrate: Advancing Kubernetes for Agents at Scale
  6. The NVIDIA source says: Agent Substrate restores the actor onto an existing worker instead. Agent Substrate: Advancing Kubernetes for Agents at Scale
  7. The NVIDIA source says: The worker pods are still ordinary Kubernetes Pods, so cluster scheduling, quotas and placement policies still apply as we describe later. Agent Substrate: Advancing Kubernetes for Agents at Scale
  8. The NVIDIA source says: Agent Substrate used to return an error immediately, even though another actor would usually free a worker a moment later. Agent Substrate: Advancing Kubernetes for Agents at Scale
  9. The NVIDIA source says: Request parking in the Agent Substrate router (#221) holds the request and retries the resume until a worker frees up, with a bounded wait and a cap on how many requests can wait at once. Agent Substrate: Advancing Kubernetes for Agents at Scale
  10. The NVIDIA source says: The ext_proc filter hard-coded MessageTimeout=5s, so Envoy abandoned a parked request (HTTP 500) long before the router's park budget elapsed. Agent Substrate: Advancing Kubernetes for Agents at Scale

Editorial (AI-assisted; automatically checked, not human-reviewed). Each statement is linked to its source; check the source before relying on a detail.

  • kubernetes
  • agents
  • sandbox
  • nvidia