Repository navigation
Open
Labels
BacklogNot started: the work waits in the backlogclass:INVInnovation: a new feature, design, idea or methodstatus:openNo fix yettaskA unit of work with no user story
Description
Part of #28
Related: #16
Why
What is missing. docs/01 line 773 requires a load test at 5,000 namespaces per instance. Line 182 sets the budgets: a page answers in under 300 ms p95 and a suggestion in under 150 ms p95. No issue, wave or test carries this. Only the system figures and four database KPIs are built (docs/08), so this cannot finish until the other KPIs exist.
The owner's decision, 2026-11-05. Load testing is how the KPI components are proven to work. One month of KPI data is a later check on real use, not the proof that they function.
Acceptance criteria
- Under generated traffic, each built KPI changes, and its value agrees with what the test generated: known request counts, approvals, failures and timings. A KPI that does not move or does not agree fails the test, shown by the load test script, not written yet
-
/metricsandGET /admin/kpireport the same figures, since they share one definition (core/kpi.py), shown by the load test script, not written yet - A figure that cannot be measured reads unavailable, never 0, including while its dependency is down, shown by the load test script, not written yet
- The budgets at
docs/01line 182 hold at 5,000 namespaces. A failed budget gets its own issue, shown by the load test script, not written yet - The KPI thresholds and alerts fire when the load crosses them, and clear afterwards, shown by the load test script, not written yet
- Each of the 24 KPIs is listed as proven under load, or not built with the reason, shown by the saved report of the run, not written yet
- A mutant with a broken KPI collector fails the first criterion, shown by the mutant run of the load test script, not written yet
Limits
- Keycloak and LDAP on CRC are shared, and no load test may send traffic to them. Use a test issuer on kind, or tokens fetched once before the run.
- Run on kind on Podman first. Any CRC run has to stay within the guards in
build-tracker.md: recordkeycloak-0's restart count, and stop if request headroom falls under 2 GiB. - The 5,000 namespaces are seeded data, not real namespaces on a cluster.
- The tool is chosen in this issue's design step, from two independent designs.
Tasks
- Build the remaining KPIs first (Wave 8).
- Choose the load tool in the design step.
- Write the script and its mutant.
- Run it on kind, and save one report for each run with the cluster named.
Definition of done
- Mockup approved, or the work has no screen and no API shape
- Draft pull request open
- Build: tests fail before the change and pass after it
- Review ruled
- Merged with its proof
- Released on the default branch
Class
INV. The load test is a new test method.
Source
How to prove it. A script in the repo, a saved report per run with the cluster named, and a mutant showing check 1 fails when a KPI's collector is broken.
Metadata
Metadata
Assignees
Labels
BacklogNot started: the work waits in the backlogclass:INVInnovation: a new feature, design, idea or methodstatus:openNo fix yettaskA unit of work with no user story
Activity