Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/nix/script-tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas eaca3c4eb3 agents: always write the memory cap, infinity for none
The cap file was removed for a cap of `infinity` or a RAM percentage,
so the boot check warned on every start of such an agent, for a
legitimate config. The file is now written on every start:

- a size: its byte count, as before;
- `infinity`: the literal `infinity`. The generators set no JSC heap
  ceiling and no subagent MemoryHigh=, and the boot check is quiet;
- a percentage: resolved on the host the way systemd resolves
  MemoryMax=N% for the container@ unit. That is permyriad (at most two
  decimals, at most 100%) of sysconf(_SC_PHYS_PAGES) *
  sysconf(_SC_PAGESIZE), rounded down to a page;
- a value systemd ignores (zero, over 100%, more than two decimals,
  unparseable) leaves the unit uncapped, so it is `infinity`.

The file is missing only when hive-c0re can't tell the cap: the
limits file and the kept drop-in are both unreadable, or a percentage
meets an unknown host memory size. The boot check now warns only for
a missing file or a first line that is neither a byte count nor
`infinity`.

Part of #5081 (slice S0-2).
2026-10-12 10:59:12 +02:00
..
agent-bao-fetch.nix agents: re-pull the agent's own bao mTLS leaf on a timer 2026-10-11 10:00:43 +02:00
agent-bao-fetch.sh agents: swap the agent's bao leaf in with one rename 2026-10-11 10:00:43 +02:00
agent-hive-facts.nix agents: login shells read the hive facts too; test the readers 2026-10-12 10:52:21 +02:00
agent-hive-facts.sh agents: login shells read the hive facts too; test the readers 2026-10-12 10:52:21 +02:00
agent-memory-cap.nix agents: hand over the kept drop-in's cap, warn at boot without one 2026-10-12 10:59:12 +02:00
agent-memory-cap.sh agents: always write the memory cap, infinity for none 2026-10-12 10:59:12 +02:00
nats-render-config.nix swarm-nats: take the callout issuer and user keys from the store 2026-10-06 14:53:33 +02:00
nats-render-config.sh swarm-nats: take the callout issuer and user keys from the store 2026-10-06 14:53:33 +02:00