Skip to content

Memory Auto Scaling

Runta can automatically adjust your agent’s memory as demand changes—scaling up for spikes and back down when demand falls, without requiring you to recreate the runtime.

The following examples start with 1024 MiB and allow the runtime to grow to 8192 MiB.

If you omit the maximum, Runta uses the initial memory as the limit and automatic growth is disabled.

Terminal window
runta run \
--name memory-demo \
--cpus 2 \
--memory 1024 \
--memory-max 8192

Leave enough headroom for bursty workloads without setting an unnecessarily large ceiling. For example, a compiler or agent may usually fit in 1–2 GiB but briefly need 8 GiB while installing dependencies or building a project.

If the workload always needs a fixed allocation, omit the maximum or set it to the same value as the initial memory.