Repository navigation
0.1.0-alpha.26
Pre-release
Pre-release
·
367 commits
to develop
since this release
Added
- The node budget's
memoryandcpudefault to the daemon's own cgroup's limits,memory.maxless the headroom and the quota ofcpu.max, read at each decision, when[daemon.budget]leaves them out, as in a container or under a systemd unit withMemoryMax=orCPUQuota=;muructl daemon statussays which came from the cgroup. A worker of a group with ahard_limitcounts at it in the budget. (#384) - Under
muructl servein a container with a memory limit, a memory guard replaces the largest worker, one at a time, when less than the headroom (10% ofmemory.max, at least 128MB) is left, reported asworker.recycledwith the reasoncontainer_memory, and holds off with a warning when replacing workers would not help. The limits are read at every memory check, sodocker updateor an in-place pod resize applies without a restart; the start lines give the limits read and warn when the workers are more than the CPUs, when a preload would not fit once each worker holds a copy of it, when hard limits add up to more than the limit, and when request bodies are spooled to memory, whose quota is then the headroom; andmuructl status,/statusand their JSON show the limits, what is used and left, and what the guard is doing. (#621) muructl probe live,readyandstartupask the daemon as well asmuructl serve, over its admin socket, with--appand--min-ready, exiting 1 with the reason on standard error; the daemon answers the same as/livez,/readyzand/startupzon its metrics address. An application with no serving release does not hold readiness back. The daemon reads its own cgroup's limits and, with amemory.max, its memory guard replaces the largest worker of any release, or scales its group in when its policy allows, andmuructl statusshows the limits. The daemon guide's "In a container" section covers a container that is kept: volumes, logs, stopping, probes, the admin socket, memory limits and a Compose service. (#622)muructl serveapplies a project's scaling policy,[tool.muru.scaling]or a group'sscalingtable, as the daemon does, with a scale-out admitted only when one more worker fits under the container'smemory.maxless the headroom, a worker counting at its group'shard_limitwhen one is set. Short of memory, the memory guard scales a group with a policy in by its largest worker rather than replacing it, never belowmin_workers.muructl scale statusworks inside the container, with the application optional;scale pinandunpinsay they are not offered there, and a--min-readyabove a group'smin_workersis refused at start. (#623)- On Linux each worker raises its own
oom_score_adjto 500 as it starts, so the kernel's out-of-memory killer picks a worker, which its host replaces, before a host, the edge, the daemon or another service;status --processes --jsongives each process'soom_score_adj. The systemd unit setsOOMPolicy=continue, since systemd's default stops the whole service when the kernel kills one worker, and carriesMemoryMax=andCPUQuota=as commented-out lines; the systemd guide's new limits section says what a limit on the unit does. (#624)
Changed
- After a daemon restart,
muructl status --processes, its JSON and the dashboard mark a re-adopted host and leave its log relay unmarked when both have the same OS parent, rather than saying it twice and widening the WHAT column; the relay'sos_parent_pidstill gives it. (#611) - In the second after a scale-in,
muructl status --processesand the dashboard mark a host's or group's REQ/S with*when its figures count a worker that has exited and is no longer listed, with a line under the table saying so, and--jsongives the count asdeparted. (#613) muructl status --processes, its--jsonand the dashboard's Processes section give the time a retained release is kept until in UTC with the zone,retained until 07:40 UTC, asmuructl release listdoes, rather than in the daemon's local time without one. (#618)- A worker replaced for memory stops before its replacement starts when less is left under the cgroup's memory limit than the worker's own size, whether or not a hard limit is set. The Kubernetes guide's Deployment sets
resizePolicy: NotRequiredfor CPU and memory and its worker count withMURU_SERVE_PROCESSES. (#621)
Removed
muructl serveno longer sizes anything from the container's limits:--processes autois gone and--processesdefaults to 1, as undermuructl run, and a worker has a hard memory limit only when one is set, rather than a share ofmemory.maxworked out at start. (#621)
Fixed
just vm-upstarts themuruLima instance when it exists and is stopped, and creates it frompackaging/dev/lima.yamlonly when there is none. (#615)muructl eventsgives each event's time as the local clock, as other terminal clocks are, rather than a UTC clock with no zone, and the dashboard shows a release's creation, a rollout's last change, maintenance and a WebSocket's opening in the viewer's local time, with the full UTC time on hover, rather than a UTC clock. (#625)
Documentation
- The Kubernetes and containers guides say that
muructl debug stacksandmuructl debug profilework in a locked-down pod, with every capability dropped, no privilege escalation and theRuntimeDefaultseccomp profile, with noSYS_PTRACEadded. (#111) - The containers guide says that
/readyzand--min-readycount the workers ready in each worker group that is not optional, rather than in every mount, and has a section on named worker groups and mounts undermuructl serve. (#620)