Files
ilkerandClaude Opus 5 9ad16290bf hpcod: oversubscription is a policy you can change, not a line in a file
It was enabled - 168 cores offered from 28, 655 GiB from 504 - but only
because I edited sites.yaml on the server and restarted the service. So
changing it needed a shell, an editor and a restart, which means it needed
whoever had those rather than whoever had the judgement. It is a judgement
about how much of the hardware to promise, it moves with load, and it
belongs where the person making it can reach it.

It is now a row per site, set from the Sites page by an administrator, and
it takes effect on the next discovery sweep rather than the next restart.

The ratio is applied after discovery instead of inside the provider, which
is what makes that possible - and because it recomputes from the physical
core and memory counts rather than from whatever Cores already held,
applying it twice gives the same answer as applying it once. Without that
the provider's own default would compound with it.

The file stays as the default. A site with no row shows what the catalogue
gave it, read back from the numbers rather than claimed, and says so: "from
the site catalogue - nobody has set this" against "set by ilker". One
authority at a time, and the page says which.

The rules the config loader already enforced are enforced here too, in the
database rather than in the handler: a policy that reads as off cannot
still multiply, and turning it off resets the ratios instead of leaving
numbers behind that would take effect again for whoever turns it back on.
Memory is capped at 8x where CPU is capped at 64x, because oversubscribed
cores make jobs slow and oversubscribed memory makes them die.

Also fixed a test that was crying wolf: the public-page leak check matched
bare substrings, so adding a "label" rule to the stylesheet looked like the
tenant name "lab" appearing on the front door. It matches word boundaries
now - a test that raises false alarms gets weakened until it stops catching
anything.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 12:54:24 +02:00
..