Overview
Sandbox and Fleet resource usage doesn't always match the numbers you requested. This is expected behavior, not a bug. This article covers why CPU usage and guest vCPU counts look higher than requested, how Fleet computers get sized, how JuiceFS trash retention works, and how idle timeout and delete-after-stop behave for different computer types.
CPU bursting and guest vCPU count
Each sandbox runs in its own cgroup with a CPU cap set to 2x the requested cpu_millicores, while a CPU weight guarantees the requested amount whenever the host is under contention. This lets a sandbox burst above its request when spare host capacity is available. After about 10 minutes of sustained high usage, burst credits taper the cap back toward the original request.
The guest also reports a higher vCPU count than requested: it's ceil(2 x request). So a request of 500m CPU can show as using a full core, and a vcpus: 2 request boots with 4 vCPUs visible inside the guest.
Host capacity planning and scheduling are based only on the committed request, never on the burst ceiling or the guest's visible vCPU count. Plan capacity on the requested value, not on what you observe inside the sandbox.
Fleet computer sizing
Fleet doesn't pass CPU, memory, or disk settings when it creates a computer. There's no Helm value or per-agent setting for default Fleet computer sizing. Instead, a computer inherits its CPU and memory from the sandbox snapshot it was created from:
By default, a snapshot carries 1 vCPU / 4 GiB regardless of the sandbox it came from.
If the snapshot was captured with
include: ["resources"], the computer inherits the CPU/memory of the originating sandbox instead.Disk size always comes from the snapshot's filesystem capacity.
To size Fleet computers, capture a snapshot from a sandbox with the desired size using include: ["resources"], then set that snapshot on the computer environment or agent. For disk, pick a snapshot with the filesystem capacity you want. An existing computer can also be resized directly with a PATCH request.
JuiceFS trash retention (TrashDays)
Sandbox filesystem volumes use JuiceFS, which keeps deleted files in a trash for a configurable number of days before permanent removal. This isn't a LangSmith or Helm setting: the Helm-driven JuiceFS format step doesn't pass a trash-days value, so the upstream JuiceFS default of 1 day applies.
You can change it after install directly against the metadata store:
juicefs config <META-URL> --trash-days NRaising the value increases Redis memory usage, since each trashed inode keeps its metadata until the retention period expires. Setting it to 0 disables the recovery window entirely. Keep the 1-day default unless Redis memory pressure requires a change.
Idle timeout and delete-after-stop
Lifecycle behavior depends on how the computer was created:
Computer-environment-backed computers (created via
/fleet/computer-environments) each carry their ownidle_ttl_secondsanddelete_after_stop_seconds. If unset, platform defaults apply: idle stop is 10 minutes (not configurable), and delete-after-stop is 14 days. Set these per environment through the/fleet/computer-environmentsAPI; delete-after-stop can be set up to 30 days, and 0 disables it.Legacy agent-scoped computers use a fixed 15-minute idle timeout with no global or Helm override. It's configured per agent in Agent Builder's Computer lifecycle settings.
Shared computers behave differently by backend: on the legacy agent-scoped backend they're created with delete-after-stop disabled and no TTL option, by design, so they live as long as the agent does. On computer-environment-backed agents, shared computers are not exempt: they inherit the environment's delete-after-stop setting (or the 14-day default).
To change the platform-wide default delete-after-stop (used whenever a computer or environment doesn't set its own), set SANDBOX_DEFAULT_DELETE_AFTER_STOP_SECONDS (in seconds; 0 disables auto-delete) via platformBackend.deployment.extraEnv in the LangSmith Helm chart.