Skip to content

chore(sensitive): re-derive memory limits from a month of RSS; Home Assistant to 1536m - #1604

Merged
Gerrrt merged 1 commit into
mainfrom
chore/sensitive-memory-rederive
Nov 21, 2026
Merged

Gerrrt merged 1 commit into
mainfrom
chore/sensitive-memory-rederive

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

What changed

Home Assistant's memory limit on trinity goes from 1g to 1536m. Every other limit in stacks/sensitive stays the same. The measured month is now written beside each limit in compose.yaml, and in the stack README, the build runbook and the changelog.

Why

The stack README asked for the limits to be re-derived from container_memory_rss once trinity had run a month. These are the peak and median over 2026-10-22 to 11-21, Prometheus's whole 30-day retention, in MiB:

Service Median Peak Limit Limit ÷ peak
home-assistant 536 816 1024 → 1536 1.25× → 1.9×
immich-server 821 2046 3072 1.5×
adguard 414 954 1536 1.6×
stirling-pdf 757 868 3072 3.5× (load test 1454)
immich-machine-learning 196 708 4096 5.8×
paperless 688 692 3072 4.4× (backlog test 1716)
immich-db 7 344 2048 6× (RSS omits shared buffers)
mealie 230 235 1024 4.4×
linkding 103 127 512 4.0×
actual 46 95 1024 10.8×
step-ca 14 96 256 2.7×
vaultwarden 12 74 256 3.5×
ring-mqtt 64 66 256 3.9×
memos 12 47 128 2.7×
everything else under 35 4× or more

Home Assistant was the only service above two-thirds of its limit, and #114's floor is 1.5× the peak. Nothing was cut. Lowering a limit buys little on a 32 GB host, and the high ones are backed by load tests or by memory that RSS doesn't count.

Blast radius

trinity only. Home Assistant is recreated when converge applies this. Nothing else moves.

  • No change to network segmentation or firewall rules
  • No new port published to a VLAN that could not already reach the service
  • No credential added outside secrets/*.sops.yaml

Verification

  • python3 scripts/check_docs.py: docs OK.

  • ./scripts/lint.sh: passed, but 4 checks were skipped and NOT run (yamllint, ansible-lint and ruff have no pipx on trinity, per ADR-0123), so CI's --require-all run is the real result.

  • make validate was not run on trinity, for lack of disk space; CI runs it.

  • make validate passes

  • Deployed to the lab and confirmed working

  • Docs updated (docs/, service README, or docs/roadmap.md)

🤖 Generated with Claude Code

…ssistant to 1536m

Peak and median container_memory_rss over 2026-10-22 -> 11-21 (the
TSDB's whole retention). Home Assistant peaked at 816 MiB of its 1g and
goes to 1536m; every other limit stands, with its numbers recorded
beside it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 21, 2026 23:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the Home Assistant memory-limit increase and accompanying documentation updates.

No open issues 🎉

What changed in this PR

Re-derives the sensitive stack’s memory limits from a month of RSS measurements on trinity, increasing Home Assistant’s allowance while retaining all other service limits.

Changes:

  • Raises Home Assistant’s mem_limit and memswap_limit from 1g to 1536m, preserving its no-swap configuration.
  • Documents measured memory usage and the rationale for retaining existing limits.
  • Updates the build runbook and records the sizing pass in the changelog.
File Description
stacks/​sensitive/​README.md Summarizes the monthly measurements and Home Assistant increase.
stacks/​sensitive/​compose.yaml Raises Home Assistant’s limits and updates memory-sizing comments.
docs/​runbooks/​build-the-sensitive-tier-host.md Points future sizing checks to the documented monthly review.
docs/​changelog.md Records the measurements and resulting limit decision.

Review effort: Balanced

@Gerrrt
Gerrrt merged commit 4e05e14 into main Nov 21, 2026
10 of 11 checks passed
@Gerrrt
Gerrrt deleted the chore/sensitive-memory-rederive branch November 21, 2026 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants