Skip to main content

Module container_limits

Module container_limits 

Source
Expand description

A container agent’s CPU and memory limits: Agents set_container_limits (POST /api/v1/agent/container/limits), and the window’s agent.getContainerLimits / agent.setContainerLimits, which share view and set. docs/specs/SPEC_CONTAINER_AGENT_RESOURCE_LIMITS_2026_10_29.md §3, §4.

A change is stored (db_agent_container_limits), put on the running container with docker update at once, and shown in the agent’s pane with who made it. A container agent can read limits but not change them, its own included (the operator’s decision of 2026-10-29): it asks a host agent or the operator.

Structs§

LimitsRequest 🔒
POST /api/v1/agent/container/limits: Agents set_container_limits. With neither memory_mb nor cpus it only reads.

Functions§

container_agent 🔒
The container agent named (an id or slug): its uid and definition.
handle_container_limits 🔒
mb_of 🔒
note_in_pane 🔒
One pane row saying the limits changed, so a change is visible whoever makes it.
refuse 🔒
run 🔒
set 🔒
Stores the limits given (None leaves one as it is), puts them on the container now and says so in the pane. by is who is shown as having made the change.
view 🔒
The limits stored for uid, what is in force, and what the daemon has.

Type Aliases§

Refusal 🔒
A refusal: the status it travels with, and what to tell the caller.