---
title: "Agents are sessions, not requests: size GKE node pools for AI agent sessions"
description: "Coding agent sessions on GKE stay open all day but work only part of it; a study of GitHub Copilot traces found agents wait for the user about 80% of the time. Traditional approaches like one Pod per session or scale-to-zero waste compute or lose process state. Agent Substrate and AX separate the stateful session from the compute sandbox, enabling idle sandboxes to be snapshotted to object storage and restored on any warm worker. With a 2-minute idle timeout and 2 prompts per hour, parking saves about 40% of the node bill compared to one Pod per session. The savings diminish as prompt frequency rises, and around 4.5 prompts per hour one Pod per session becomes the cheaper option."
---

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

[Google](https://yomu.fyi/company/google) · Drake Williams, Ivan Nardini · Nov 16, 2026

**Type:** Tutorial

## Summary

Coding agent sessions on GKE stay open all day but work only part of it; a study of GitHub Copilot traces found agents wait for the user about 80% of the time. Traditional approaches like one Pod per session or scale-to-zero waste compute or lose process state. Agent Substrate and AX separate the stateful session from the compute sandbox, enabling idle sandboxes to be snapshotted to object storage and restored on any warm worker. With a 2-minute idle timeout and 2 prompts per hour, parking saves about 40% of the node bill compared to one Pod per session. The savings diminish as prompt frequency rises, and around 4.5 prompts per hour one Pod per session becomes the cheaper option.

## Context

Coding agent sessions on GKE stay open all day but work only part of it; a study of GitHub Copilot agent traces found agents wait for the user about 80% of the time. Traditional approaches (one Pod per session or scale-to-zero) waste compute or lose process state. Agent Substrate and AX separate the stateful session from the compute sandbox, enabling parking.

## Approach / What changed

Park idle agent sandboxes to object storage via Agent Substrate’s SuspendActor, freeing the worker Pod for other actors, and restore on the next prompt from any warm worker.

## Takeaways

- Agent sessions wait for the user about 80% of the time; a typical turn (prompt to full response) averages 396.3 seconds of agent work.
- Parking idle sandboxes via Agent Substrate’s SuspendActor frees the worker Pod; the session stays open and the sandbox is restored from object storage on the next prompt.
- Parking saves about 40% of the node bill at 2 prompts per hour, but the saving drops to 4% at 4 prompts per hour; around 4.5 prompts per hour one Pod per session becomes cheaper.

## FAQ

### Who triggers the suspend of an idle actor?

Agent Substrate does not suspend an idle actor by itself (issue #424). Your agent harness or the service in front of it must call the suspend API after an idle timeout. Until then, an idle actor keeps its worker.

### How much does parking save on GKE node costs?

With a 2-minute idle timeout and 2 prompts per hour, parking saves about 40% of the node bill compared to one Pod per session. At 4 prompts per hour the saving drops to 4%, and around 4.5 prompts per hour one Pod per session becomes cheaper.

### What happens when the warm pool is full?

When idle actors hold every worker, a request for another actor waits up to 5 seconds by default, then fails with HTTP 503. Sizing the warm pool for the 99th percentile of concurrent workers plus 15% headroom keeps the pool full about once in 3,500 turns at 2 prompts per hour.

**Tags:** [Agent Substrate](https://yomu.fyi/topic/agent-substrate), [AI Agents](https://yomu.fyi/topic/ai-agents), [Cost Optimization](https://yomu.fyi/topic/cost-optimization), [GKE](https://yomu.fyi/topic/gke), [Kubernetes](https://yomu.fyi/topic/kubernetes)

- Source: [Google](https://developers.googleblog.com/agents-are-sessions-not-requests-size-gke-node-pools-for-ai-agent-sessions)
- Source URL: https://developers.googleblog.com/agents-are-sessions-not-requests-size-gke-node-pools-for-ai-agent-sessions
- Ingested by Yomu: 2026-11-16T18:00:16.775Z

[Read original post](https://developers.googleblog.com/agents-are-sessions-not-requests-size-gke-node-pools-for-ai-agent-sessions)
