Repository navigation
Commit 7533eb7
committed
feat(server): count supervisor session redirects and off-ring admissions
Consistent-hash placement only logged its redirects, so operators had
no way to see how often replicas redirect supervisors or whether
supervisors end up where the ring places them.
The gateway now counts each SessionRedirect it sends, labeled by the
step that sent it: connect when it answers a connecting supervisor, or
shutdown once a stopping replica has queued a handoff on an open
session. It also counts redirected supervisors it admits although its
own ring names another owner, once the session's acceptance is durable,
so a cancelled connect cannot lose the count.
Under supervisor_topology: gateway the shared supervisor's host moves
pool sessions itself, so a redirected hello there is the designed
state, not ring disagreement. Those gateways export no off-ring series
at all and never read the ring on the connect path. Both counters
start at zero and carry no sandbox or replica IDs. The gateway metrics
page, the HA guide, and the debug skill document what the counters
cannot see under the shared topology.
Signed-off-by: Emilien Macchi <emacchi@redhat.com>1 parent 8ff5b60 commit 7533eb7
7 files changed
Lines changed: 844 additions & 153 deletions
File tree
- crates/openshell-server/src
- compute
- grpc
- docs/observability
- skills/debug-openshell-cluster
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1101 | 1101 | | |
1102 | 1102 | | |
1103 | 1103 | | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
1104 | 1112 | | |
1105 | 1113 | | |
1106 | 1114 | | |
| |||
0 commit comments