Repository navigation
Commit c61376e
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. That covers rings that disagree and
failed redirect dials that fall back to the gateway address, plus
handoffs from a stopping replica that arrive before the receiver's
ring drops it. Both counters start at zero and carry no sandbox or
replica IDs. The gateway metrics page and the debug skill list them.
Signed-off-by: Emilien Macchi <emacchi@redhat.com>1 parent 55bf786 commit c61376e
5 files changed
Lines changed: 376 additions & 19 deletions
File tree
- crates/openshell-server/src
- grpc
- docs/observability
- skills/debug-openshell-cluster
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| |||
124 | 128 | | |
125 | 129 | | |
126 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
127 | 152 | | |
128 | 153 | | |
129 | 154 | | |
| |||
284 | 309 | | |
285 | 310 | | |
286 | 311 | | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
287 | 322 | | |
288 | 323 | | |
289 | 324 | | |
| |||
346 | 381 | | |
347 | 382 | | |
348 | 383 | | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
349 | 388 | | |
350 | 389 | | |
351 | 390 | | |
| |||
425 | 464 | | |
426 | 465 | | |
427 | 466 | | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
428 | 479 | | |
429 | 480 | | |
430 | 481 | | |
| |||
653 | 704 | | |
654 | 705 | | |
655 | 706 | | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
656 | 719 | | |
657 | 720 | | |
658 | 721 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1050 | 1050 | | |
1051 | 1051 | | |
1052 | 1052 | | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
1053 | 1076 | | |
1054 | 1077 | | |
1055 | 1078 | | |
1056 | 1079 | | |
1057 | | - | |
| 1080 | + | |
1058 | 1081 | | |
1059 | 1082 | | |
1060 | 1083 | | |
| |||
1080 | 1103 | | |
1081 | 1104 | | |
1082 | 1105 | | |
1083 | | - | |
1084 | | - | |
1085 | | - | |
1086 | | - | |
1087 | | - | |
1088 | | - | |
1089 | | - | |
1090 | | - | |
1091 | | - | |
| 1106 | + | |
1092 | 1107 | | |
1093 | 1108 | | |
1094 | 1109 | | |
| |||
1238 | 1253 | | |
1239 | 1254 | | |
1240 | 1255 | | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
1241 | 1276 | | |
1242 | 1277 | | |
1243 | 1278 | | |
| |||
0 commit comments