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§
- Limits
Request 🔒 POST /api/v1/agent/container/limits:Agents set_container_limits. With neithermemory_mbnorcpusit 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 (
Noneleaves one as it is), puts them on the container now and says so in the pane.byis 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.