Demo: start with 30 days behind it #51

Merged
jcoffey-dev merged 2 commits from feature/demo-history into main 2026-11-16 06:11:27 +00:00
2 Commits
Author SHA1 Message Date
jcoffey-dev 548532a61d Demo history: a week of controllers and VMs, a month of the rest
ci / check (pull_request) Successful in 4m45s
ci / postgres (pull_request) Successful in 8m1s
A month of every workload was 1.6 million rows and 280 MB, more than the
demo container's 256 MB tmpfs. The clusters themselves and their nodes,
the arrays, partitions and Vaults keep their 30 days; the thousands of
controllers and VMs get the last 7. 86 MB, written in 13 seconds.
2026-11-15 23:02:22 -07:00
jcoffey-dev e2c1b27cb3 Demo: start with 30 days behind it
ci / postgres (pull_request) Canceled after 0s
ci / check (pull_request) Successful in 9m26s
Every graph on the demo said "none kept yet" and the reports had
nothing to report: the container starts fresh each week. Now fleet run
-history <database> -state-key <file> first writes the last 30 days into
obs-beacond's database, from the same plan and clock the live demo runs
on:

- hosts' hours: what a host uses is now a function of its name and the
  clock (load.go): a working day in its site's time zone, quieter
  weekends, memory that creeps on some hosts until a weekly restart, and
  disks at a level of their own that fill slowly until a clean-up
  (fleet-0023's log volume warns now and then). No more every disk at
  33%, part of #40;
- the clusters' workloads, the arrays' I/O and space, the IBM i
  partitions' CPU, the Vaults' leases (on a daily curve now), the mail
  rounds;
- hosts', checks' and services' statuses, for the reports' availability;
- an incident each time a past problem came and went (pastProblems in
  scenario.go, with obs-beacond's keys and titles), notes on the stories
  saying what the cause was, and the incident numbers carrying on.

About 45 seconds for the full demo. state gains PutHostHours,
PutMailRounds and LogStatuses, to write many in one transaction.
docs/demo.md and docs/development.md describe it.

Closes #39.
2026-11-15 22:58:03 -07:00