# GCP 的 Agent 工作区：计算按需唤醒，文件持久保存

> 一句话点评 · Google Cloud

---

LLMS 索引： [llms.txt](/zh/llms.txt)

---

> When configured to leverage Filestore, GKE storage management happens behind the scenes: Every time GKE launches a sandbox for a new agent task, Filestore automatically allocates and attaches a dedicated, isolated file workspace to that environment in milliseconds.
>
> — [Google Cloud · Filestore agent volumes](https://cloud.google.com/blog/products/storage-data-transfer/filestore-agent-volumes)

GCP 提供存算解耦的设计架构：

Runtime（计算环境）： 由 [GKE 上的 Agent Substrate](https://cloud.google.com/blog/products/containers-kubernetes/agent-substrate-available-on-gke?utm_source=gemini) 或 GKE Agent Sandbox 提供。它们负责分配隔离的 CPU 和内存，为 Agent 提供安全执行动态代码、安装第三方软件包所需的计算沙箱。

Storage（存储工作区）： 由 [Google Cloud Filestore](https://cloud.google.com/filestore?utm_source=gemini) 提供的代理卷充当持久化的文件系统。

这两者在底层是自动协同工作的。当 GKE 为新的 Agent 任务启动一个计算沙箱（Runtime）时，系统会在几毫秒内自动将一个独立的 Filestore 代理卷挂载到该沙箱上。一旦 Agent 处于空闲状态，系统可以主动暂停 GKE 沙箱以节省高昂的计算成本，而 Agent 的工作状态和文件会安全地保存在 Filestore 中，直到新任务到达时再瞬间恢复计算资源。这对企业来说还是很有用的。
