Skip to content

Memory Auto Scaling

Runta can increase the runtime allocation as memory pressure rises, without requiring you to recreate the runtime. This can be helpful at the building stage or agent setup. Configure two values:

  • Initial memory
  • Maximum memory

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

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

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.