Sandcube::Capacity
Allocatable budgets exclude the OS, runtime overhead, images, builds and logs. Production requires explicit budgets; constructor defaults keep embedded tests simple.
Constructors
Class methods
from_env
SourceInstance methods
clone
Sourceconfigure(conn)
Sourcecopy_with(cpu _cpu = @cpu, memory_mb _memory_mb = @memory_mb, disk_mb _disk_mb = @disk_mb)
Sourcecpu
disk_mb
memory_mb
reserve(conn, id, cpu, memory, disk)
Called inside the host lock AND the intent transaction. Uncertain cleanup retains its reservation; a process crash cannot make capacity disappear.