Cost habits: the machine is costing as it runs
This article was written with the assistance of AI, and the content has been reviewed by the Sandscale team. After giving each agent a machine, the thing most easily overlooked is: as long as the machine is running, the clock is ticking. Let me be clear: Sandscale's sandbox, workspace, and build machines are all deducted from the vCPU duration of the plan. The entire duration that a machine is running counts, regardless of whether the agent is working or waiting for your reply. Therefore, you must set aside the idea that "the agent is waiting for approval, so it shouldn't count." Below are several habits our team has regarding "which type of machine to start, how large to make it, and how many to start." 1. Make effective use of one-time sandboxes instead of workspaces. Running a test once or trying out a dependency does not require persistent disks. When the sandbox stops, the disk goes with it; shut it down once finished: sandscale sandbox terminate --id SANDBOX_ID. workspaces are reserved for agents that need to work continuously for several days and need to preserve repositories and sessions. 2. Select specifications based on the task.
We haven't written up this one. Dev.to has the full story — the link below goes straight to it.
Source: dev.to