Add M10.9a load measurement, governor and overload shedding
Foundation / checks (deploy) (push) Successful in 3m20s
Foundation / checks (ecs) (push) Successful in 1m59s
Foundation / checks (client) (push) Failing after 10m0s
Foundation / checks (network) (push) Successful in 13m9s
Foundation / checks (tsan) (push) Successful in 8m1s
Foundation / checks (checks) (push) Successful in 32m2s
Foundation / checks (postgres) (push) Failing after 26m39s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped

ADR-0097 (M10.9 load and abuse qualification; only evolution-dev
reference-worker runs qualify). evo-server measures each simulated tick's
work (host step plus the M10 bridge, with the session layer's share kept
separately) and feeds a portable LoadGovernor: grant logins are refused
at a 2 s p95 of 15 ms or any tick debt, replication is shed in up to
three levels at 20 ms or debt >= 2 (radius cap 7/7/5/3, far updates
x1/x2/x2/x4, no fresh baselines, own markers unaffected), and both relax
after 5 s of calm. Handoff tickets are still admitted. /metrics gains
evo_m10_* gauges when the listener is enabled.

Adds the missing ADR index entries for ADR-0094 to ADR-0096. Refreshes
the dev session window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-07 06:34:40 -04:00
co-authored by Claude Opus 5.5
parent 265163a9a6
commit b8cb9db297
22 changed files with 676 additions and 34 deletions
+18
View File
@@ -103,6 +103,24 @@ std::string render_metrics(const HostStatus& s, const OpsCounters& c) {
.append("\"} ")
.append(std::to_string(c.dropped[i]))
.append("\n");
if (c.m10_enabled) {
metric(out, "evo_m10_sessions", "gauge", "Open M10 sessions", c.m10_sessions);
metric(out, "evo_m10_refusing", "gauge", "1 while new logins are refused for load",
c.m10_load.refusing);
metric(out, "evo_m10_shed_level", "gauge", "Replication shed level (0-3)", c.m10_load.shed);
metric(out, "evo_m10_tick_work_p95_microseconds", "gauge",
"p95 per-tick region work over the last 40 ticks", c.m10_load.p95_us);
metric(out, "evo_m10_tick_work_p99_microseconds", "gauge",
"p99 per-tick region work over the last 40 ticks", c.m10_load.p99_us);
metric(out, "evo_m10_tick_work_max_microseconds", "gauge",
"Largest per-tick region work over the last 40 ticks", c.m10_load.max_us);
metric(out, "evo_m10_session_work_p95_microseconds", "gauge",
"p95 per-tick session-layer work over the last 40 ticks", c.m10_load.session_p95_us);
metric(out, "evo_m10_session_work_p99_microseconds", "gauge",
"p99 per-tick session-layer work over the last 40 ticks", c.m10_load.session_p99_us);
metric(out, "evo_m10_refused_logins_total", "counter", "Logins refused for load",
c.m10_refused_logins);
}
return out;
}
} // namespace evo::server