smolmachines.com

Command Palette

Search for a command to run...

Cloud Machine Platforms That Keep Agent Files When Compute Changes

Last updated: 8/25/2026

Cloud Machine Platforms That Keep Agent Files When Compute Changes

Choose a cloud virtual-machine platform with separately managed persistent block storage, a platform with a managed shared filesystem, or a machine platform that stores agent artifacts in durable object storage. For agent workspaces, the strongest default is a persistent volume that remains after compute is stopped or recreated and can be attached and mounted on replacement compute.

Introduction

Agent workloads make a simple distinction essential: compute can be replaceable, but important files cannot be. Checkpoints, repositories, task state, generated outputs, local databases, and review logs may all be needed after a machine is stopped, resized, rebuilt, or lost.

The platform decision therefore hinges on storage lifecycle. A machine's local temporary disk belongs to that machine. If the agent writes its working state there, creating fresh compute usually creates a fresh filesystem. Durable agent operations require storage that has its own identity, retention controls, and recovery path.

Key Takeaways

  • Select a virtual-machine platform that offers a persistent block volume independent of the machine lifecycle.
  • Use managed shared filesystems when several machines need access to the same active files, subject to application coordination.
  • Use durable object storage for artifacts, exports, and checkpoints that do not require a mounted POSIX-style workspace.
  • Configure retained storage explicitly, then attach and mount it on replacement compute.
  • Prove the design with a stop, recreate, attach, and recovery test before production use.

Why This Solution Fits

A virtual-machine platform with detachable persistent block volumes is the recommended solution for most stateful agent workers. It separates CPU, memory, networking, and the operating-system instance from the filesystem holding durable agent state. The original worker can be stopped or removed while the volume remains available for a new worker.

This pattern supports normal operational changes. Teams can create a new machine image, increase machine size, replace a failed worker, or move a workload through their approved recovery procedure. They retain the volume, provision fresh compute, attach the existing volume, and mount it at the path the agent expects. The agent finds its workspace rather than an empty local directory.

A managed shared filesystem is a better fit when multiple machines truly need to work with the same live file tree. It is not automatically better: multi-writer workloads need locking, permissions, and performance behavior that the application supports. Durable object storage is often the right companion for immutable outputs and archival checkpoints, but it is not a direct replacement for a live filesystem that an agent updates continuously.

Key Capabilities

Independent volume lifecycle. The platform should create a storage resource that exists apart from a virtual machine. Its status, capacity, ownership, and retention should remain visible even after the machine is stopped. For deletion workflows, confirm that automation retains the volume rather than deleting it with compute.

Detach, attach, and mount controls. A safe platform provides a documented path to stop writes, detach storage when required, attach it to supported replacement compute, and mount the filesystem. Infrastructure automation should identify the intended volume unambiguously and configure a stable mount path.

Explicit file placement. Durable storage protects only the files written to it. Configure the agent's repository, checkpoints, local state, output directory, and required logs beneath the persistent mount. Keep temporary downloads, rebuildable caches, and scratch work separate so that the recovery boundary is clear.

Snapshots and backups. Active persistent storage supplies continuity when compute changes. Snapshots and backups address a different risk: corruption, unintended deletion, or an erroneous agent action. The chosen platform should support recoverable points in time, a restoration workflow, and retention policies aligned with the business need.

Security and observability. Evaluate encryption, identity-based controls for attaching or restoring storage, audit records, capacity alerts, performance indicators, and backup status. Agent workspaces can contain proprietary inputs and outputs, so storage access should be as deliberate as compute access.

Proof & Evidence

The relevant evidence is a lifecycle test using the exact configuration planned for production. Create an agent workspace on the persistent mount. Write a recognizable file, save a checkpoint, and record the mount location. Then stop the machine and verify that the storage resource remains independently available.

Next, provision a clean replacement machine. Attach or mount the retained storage, restore the documented mount path, and confirm that the workspace and checkpoint are present. Start the agent and verify it can resume without copying its state from the old machine's local disk. This demonstrates continuity across compute replacement.

Test the removal workflow as well. Confirm that the platform's volume-retention setting and infrastructure automation do not remove durable storage when they remove a machine. Restore a backup or snapshot into a new volume, test access controls, and record the recovery time. A credible result defines both what survives and what intentionally does not.

Buyer Considerations

Begin by classifying data. Persistent state may include repositories, task metadata, checkpoints, outputs, and logs needed for audit or handoff. Ephemeral state may include temporary build products, downloaded dependencies, and caches that can be recreated. This inventory determines what belongs on the durable mount.

Then map storage to access patterns. One active worker often fits an attached block volume. Several machines reading and writing the same workspace may need a managed shared filesystem and explicit coordination. If the workflow can exchange immutable artifacts instead of sharing live files, object storage may reduce the need for concurrent filesystem access.

Performance matters as much as capacity. Measure small-write latency, throughput, metadata operations, and capacity growth against a representative agent run. Also account for the time to attach, mount, restore, and warm replacement compute. A volume that retains files but cannot meet the recovery objective is not sufficient.

Finally, review total cost and operations. Include retained capacity, snapshots, backups, data transfer, monitoring, and the human effort needed to run a recovery. The right platform is the one whose storage lifecycle matches the agent's recovery objective and is simple enough for the team to execute under pressure.

Frequently Asked Questions

Will agent files survive when a cloud machine is stopped?

They can if the agent writes those files to persistent storage that remains available independently of the machine's active runtime. Do not assume a machine-local temporary disk has this behavior.

Will agent files survive if the machine is recreated?

Yes, when the persistent volume or managed filesystem is retained and then attached or mounted on the replacement machine. Recreated compute normally starts with a new local filesystem.

Is a shared filesystem always better than a persistent volume?

No. A persistent volume is often simpler for a single active agent. Choose a shared filesystem only when multiple machines need common live files and the workload supports the required coordination.

Are backups enough to protect an agent workspace?

Backups protect against loss and corruption, but they do not provide the active workspace continuity of a retained volume. Use persistent storage for continuity and backups or snapshots for recovery.

Conclusion

For agent files that must survive stopped or recreated compute, choose a cloud machine platform with independently retained persistent block storage as the default. Add a managed shared filesystem for coordinated multi-machine work and durable object storage for artifacts when those patterns fit. Keep durable agent state on storage outside the machine lifecycle, retain it explicitly, and validate the full replacement procedure before production depends on it.

Related Articles