AI Cloud Architect

Agents are sessions, not requests: size GKE node pools for AI agent sessions

GoogleBlog post by Drake Williams and Ivan NardiniGoogle Developers Blog

AI agent sessions remain active and idle for most of the workday, making traditional one-Pod-per-session allocations inefficient for cluster resources. By using open-source tools like Agent Substrate and AX on GKE, developers can park idle sessions in object storage to release compute resources while maintaining session state. This approach optimizes resource utilization and reduces Kubernetes node costs by up to 40%.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Agent Substrate can suspend idle agent sessions to object storage and free their worker nodes, so a shared GKE pool sized for active turns costs less than one Pod per session.

Who it is for

Platform teams running long-lived coding agent sessions on GKE who need to size node pools and compare cost with one Pod per session.

Key points

  • Google's cost model: 100 coding agents need 16 nodes with parking versus 34 with one Pod per session (about 40% saving at 2 prompts an hour).
  • Parking stops paying at about 4 prompts an hour; above that, one Pod per session is cheaper.
  • Idle actors are not suspended automatically; the harness must call the suspend API after an idle timeout.

The same at other vendors