maxpool 1.24.18 → 1.24.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/restart-controller.js +11 -8
package/package.json
CHANGED
|
@@ -87,17 +87,20 @@ export class RestartController {
|
|
|
87
87
|
// Without the `pending` guard a second call (e.g. auto-apply firing while a manual
|
|
88
88
|
// restart is draining) would orphan the first _drainTimer and re-log.
|
|
89
89
|
if (this.restarting || this.pending) return;
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
// Seamless handoff → do not pre-drain AND do not pause admission. The old worker
|
|
91
|
+
// keeps serving everything it already holds after the baton passes — including
|
|
92
|
+
// requests WAITING in its queue. Pausing admission made the routing oracle report
|
|
93
|
+
// "no route will ever recover", so every queued waiter gave up at once: the
|
|
94
|
+
// v1.24.18 auto-update dropped 24 sessions that had waited 3-13 min (2026-10-11).
|
|
95
|
+
if (this.isSeamless()) {
|
|
96
|
+
if (this.upstreamRequests.size > 0) {
|
|
97
|
+
this.log(`[Maxpool] Restarting now — ${this.upstreamRequests.size} in-flight request(s) finish on the current version; new requests go to the updated one.`);
|
|
98
|
+
}
|
|
92
99
|
this._restart();
|
|
93
100
|
return;
|
|
94
101
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
// requests finish on the OLD worker after the baton passes; holding admission
|
|
98
|
-
// here would only 503 the rest of the fleet for nothing.
|
|
99
|
-
if (this.isSeamless()) {
|
|
100
|
-
this.log(`[Maxpool] Restarting now — ${this.upstreamRequests.size} in-flight request(s) finish on the current version; new requests go to the updated one.`);
|
|
102
|
+
this.pauseAdmission();
|
|
103
|
+
if (this.upstreamRequests.size === 0) {
|
|
101
104
|
this._restart();
|
|
102
105
|
return;
|
|
103
106
|
}
|