fix(prod): size memory caps from measured use #662

Sammanfogat
supernaut sammanfogade 1 incheckning från fix/memory-caps in i main 2026-10-11 12:44:56 +00:00
Ägare

Refs #569

Size memory caps from measured use on the 8 GB services host, with Keycloak live.

  • forgejo: MemoryHigh 1280M, MemoryMax 1536M. The git page cache hit the old 896M MemoryHigh 3189 times. Anon memory is 165 MB.
  • reconcile-trigger: 160M / 192M. Its peak went over its MemoryHigh.
  • keycloak: cap stays 1G. New keycloak_heap_percent: 60 sets the heap to about 614 MB instead of 718 MB. Live heap data is about 77 MB.
  • postgres, web, caddy, runner-controller, reconciler: unchanged, with 1.7x to 8x headroom.
  • Runbook: new "Memory caps" table with peaks and reasons.

Applying restarts forgejo, bitborg-reconcile-trigger and keycloak. Keycloak means about 2 minutes without sign-in.

Not covered: Keycloak has under a day of metric history, and Forgejo and Postgres have none. The figures are live MemoryPeak and cgroup stats. Re-measure after a Renovate run, then close.

Checked: scripts/test-alert-rules.py, ansible-playbook --syntax-check site.yml, pre-push hooks. Nothing applied.

Refs #569 Size memory caps from measured use on the 8 GB services host, with Keycloak live. - forgejo: MemoryHigh 1280M, MemoryMax 1536M. The git page cache hit the old 896M MemoryHigh 3189 times. Anon memory is 165 MB. - reconcile-trigger: 160M / 192M. Its peak went over its MemoryHigh. - keycloak: cap stays 1G. New `keycloak_heap_percent: 60` sets the heap to about 614 MB instead of 718 MB. Live heap data is about 77 MB. - postgres, web, caddy, runner-controller, reconciler: unchanged, with 1.7x to 8x headroom. - Runbook: new "Memory caps" table with peaks and reasons. Applying restarts forgejo, bitborg-reconcile-trigger and keycloak. Keycloak means about 2 minutes without sign-in. Not covered: Keycloak has under a day of metric history, and Forgejo and Postgres have none. The figures are live MemoryPeak and cgroup stats. Re-measure after a Renovate run, then close. Checked: `scripts/test-alert-rules.py`, `ansible-playbook --syntax-check site.yml`, pre-push hooks. Nothing applied.
supernaut lade till 1 incheckning 2026-10-11 12:38:56 +00:00
fix(prod): size memory caps from measured use
Alla kontroller lyckades
ci / ci (pull_request) Successful in 1m56s
156913b209
Forgejo cache hit MemoryHigh 3189 times, so raise it to 1280M/1536M.
Raise the reconcile shim to 160M/192M. Cap the Keycloak heap at 60% of
the unit cap. Record the figures in the runbook.
supernaut tvångsskickade fix/memory-caps från 156913b209
Alla kontroller lyckades
ci / ci (pull_request) Successful in 1m56s
till e20669fa3f
Alla kontroller lyckades
ci / ci (pull_request) Successful in 1m45s
2026-10-11 12:42:34 +00:00
Jämför
supernaut schemalade den här ändringsförfrågan för automatisk sammanfogning när alla kontroller lyckas 2026-10-11 12:42:38 +00:00
supernaut sammanfogade incheckning e8d7307519 till main 2026-10-11 12:44:56 +00:00
supernaut tog bort grenen fix/memory-caps 2026-10-11 12:44:56 +00:00
supernaut refererade denna ändringsförfrågan från en incheckning 2026-10-11 12:44:57 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra!662
Ingen beskrivning angiven.