carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1# The outer memory wall of the memory-pressure containment design
2# (2026-08-28 §2.2), moved here from carlos-edge.service by the isolated-exec
3# design (§4.3): exec-backed instances used to be the edge's children, so a
4# ceiling on the edge unit bounded the agent plus every awake instance at
5# once. They are sibling units now, so the ceiling lives one level up, on
6# a slice that holds the edge AND carlos-instances.slice, and bounds exactly
7# what it bounded before. Borrowing between agent and tenants and the OOM
8# candidate set (a tenant at OOMScoreAdjust=500 is picked before the agent)
9# are unchanged.
10#
11# Percentages so one file fits a t4g.micro and a t4g.medium; 80% leaves what
12# the box's other units (keymail, console, ssm, litestream, journald) use.
13[Unit]
14Description=carlos (edge, activator and every exec-backed instance)
15
16[Slice]
17MemoryHigh=70%
18MemoryMax=80%
19