跳到正文
Vercel Blog· Tom Lienard·· 8 天前AI 評分61

Vercel Sandbox Drives 進入公開測試版

Drives for Vercel Sandbox are now in public beta

AI 導讀

Vercel 公開測試版推出了 Drives 功能,允許在 Sandbox 中掛載持久化儲存目錄。

  • Drives 可跨沙箱例項共享,支援讀寫掛載和只讀快照,最大容量可配置至 16 TiB。
  • 每個 Sandbox 可掛載四個 Drives,Hobby 計劃包含 15 GB 儲存、30 GB 讀寫配額。
  • 價格按儲存、讀寫計費,Hobby 計劃免費提供。
正文

Drives for Vercel Sandbox are now available in public beta on Hobby, Pro, and Enterprise.

A Drive is persistent storage that you mount as a directory in a Vercel Sandbox. It isn’t tied to a single sandbox, so you can reuse the same Drive across runs and different sandbox instances.

Use Drives to preserve an agent's workspace or on-disk memory, or to reuse datasets, models, and dependency trees.

Create and mount a Drive

Create or retrieve a Drive and mount it at a path when starting a sandbox. Read and write files through the sandbox filesystem at that path.

Anything stored under /data remains on the Drive after the sandbox stops.

Share Drive data across sandboxes

A Drive supports one read-write mount at a time. After the Drive has been written to, multiple sandboxes can read from it concurrently by mounting point-in-time, read-only snapshots.

Each snapshot reflects the Drive at the moment it's mounted. Later writes aren’t included; mount a new snapshot to access them.

Limits and pricing

Each sandbox can mount up to four Drives at separate paths. Drives default to a maximum size of 1 TiB (1 GiB on Hobby) and can be configured up to 16 TiB, with higher limits available by request.

Drives are available in every Sandbox region. Each Drive stays in the region where it was created. Sandboxes that mount it must run in that region and can’t use failover regions.

Drive pricing is based on storage, reads, and writes, with rates varying by region. In iad1, storage costs $0.05 per GB-month, reads $0.0015 per GB, and writes $0.004 per GB. Hobby includes 15 GB of Drive storage and 30 GB each of reads and writes per month. See Sandbox pricing for regional rates and plan details.

Learn more in the Drives documentation.

Read more

來源:Vercel Blog · vercel.com