feat: track failover supervisor status

This commit is contained in:
cyber-debug
2026-05-16 00:53:00 +03:00
parent 82b5741ab1
commit b0aee57aa5
5 changed files with 254 additions and 1 deletions

View File

@@ -127,3 +127,7 @@ failover:
Both peers must use compatible profile order and room settings. This first
failover layer rebuilds the session on the next profile; active smux streams
do not migrate, but new connections can recover on the next profile.
When `debug: true` is enabled, the CLI also emits a compact supervisor status
snapshot with the active profile, per-profile start/failure counters, and
bounded failover history size.

View File

@@ -305,13 +305,14 @@ Implemented:
- `failover.max_cycles`.
- Profile start/end logs.
- Planned session rotation with `lifecycle.max_session_duration`.
- Shared supervisor status snapshots with bounded failover history.
Still valuable:
- Health scoring per profile.
- Control-stream coordination before switching.
- Stream draining and migration instead of dropping active smux streams.
- Shared status output for the active profile and failover history.
- User-facing status endpoint/export for the active profile and failover history.
Likely files: