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]
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
- The NVIDIA source says: Agent Substrate uses Kubernetes for running a pool of ready pods. Agent Substrate: Advancing Kubernetes for Agents at Scale
- 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
- 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
- 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
- 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
- The NVIDIA source says: Agent Substrate restores the actor onto an existing worker instead. Agent Substrate: Advancing Kubernetes for Agents at Scale
- 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
- 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
- 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
- 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