maxpool 1.24.98 → 1.24.99
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/account-manager.js +21 -3
package/package.json
CHANGED
package/src/account-manager.js
CHANGED
|
@@ -1253,7 +1253,19 @@ export class AccountManager {
|
|
|
1253
1253
|
// A pinned refusal (busy / unavailable / throttled cloud row) never reached the
|
|
1254
1254
|
// client: one BOUNCED load event, no failure counters, no streak, no error text.
|
|
1255
1255
|
if (outcome.bounced) {
|
|
1256
|
-
|
|
1256
|
+
// ONE bounced request per row, however many queue releases it refuses on: a
|
|
1257
|
+
// request held in the queue re-asks the same full row every release, and counting
|
|
1258
|
+
// each refusal read "bounced 69%" when far fewer requests were ever refused
|
|
1259
|
+
// (2026-11-16). The event is still recorded (lease accounting); repeats are flagged
|
|
1260
|
+
// and left out of every bounced/refused count.
|
|
1261
|
+
const ri = lease.requestInfo;
|
|
1262
|
+
let repeat = false;
|
|
1263
|
+
if (ri) {
|
|
1264
|
+
ri._bouncedOn ||= new Set();
|
|
1265
|
+
repeat = ri._bouncedOn.has(account.name);
|
|
1266
|
+
ri._bouncedOn.add(account.name);
|
|
1267
|
+
}
|
|
1268
|
+
this._recordLoadEvent(account, lease, { ...outcome, success: false, bounced: true, repeatBounce: repeat });
|
|
1257
1269
|
return;
|
|
1258
1270
|
}
|
|
1259
1271
|
|
|
@@ -1320,6 +1332,7 @@ export class AccountManager {
|
|
|
1320
1332
|
status: outcome.status || null,
|
|
1321
1333
|
// Efficiency telemetry (2026-11-15) — optional, read by _efficiencySummary only.
|
|
1322
1334
|
bounced: Boolean(outcome.bounced),
|
|
1335
|
+
repeatBounce: Boolean(outcome.repeatBounce),
|
|
1323
1336
|
usage: outcome.usage || null,
|
|
1324
1337
|
moved: Boolean(outcome.moved),
|
|
1325
1338
|
newConversation: Boolean(outcome.newConversation),
|
|
@@ -1370,6 +1383,7 @@ export class AccountManager {
|
|
|
1370
1383
|
for (const e of account.loadEvents || []) {
|
|
1371
1384
|
if (e.at < since || e.countTokens) continue;
|
|
1372
1385
|
if (e.bounced) {
|
|
1386
|
+
if (e.repeatBounce) continue;
|
|
1373
1387
|
out.bounced++;
|
|
1374
1388
|
if (e.refusal && e.refusal !== 'busy') out.refused++;
|
|
1375
1389
|
continue;
|
|
@@ -1475,7 +1489,7 @@ export class AccountManager {
|
|
|
1475
1489
|
const all = (account.loadEvents || []).filter(e => e.at >= since);
|
|
1476
1490
|
// A BOUNCE (pinned refusal, 2026-11-15) never served anything: out of every
|
|
1477
1491
|
// denominator — requests, weight (spread share), avgMs — and out of `failed`.
|
|
1478
|
-
const bounced = all.filter(e => e.bounced).length;
|
|
1492
|
+
const bounced = all.filter(e => e.bounced && !e.repeatBounce).length;
|
|
1479
1493
|
const events = all.filter(e => !e.bounced);
|
|
1480
1494
|
const requests = events.length;
|
|
1481
1495
|
// "failed" is what the operator reads as the ACCOUNT misbehaving; a link fault is
|
|
@@ -3010,7 +3024,11 @@ export class AccountManager {
|
|
|
3010
3024
|
// conversation leaves its last account (bounded by moves, not by requests).
|
|
3011
3025
|
const ckey = this._affinityKey(requestInfo);
|
|
3012
3026
|
const lastName = ckey ? this.conversationLastAccount.get(ckey) : null;
|
|
3013
|
-
|
|
3027
|
+
const moveKey = lastName ? `${lastName}>${best.name}` : null;
|
|
3028
|
+
if (lastName && lastName !== best.name && requestInfo?._movedLogged !== moveKey) {
|
|
3029
|
+
// One line per request per move: a queued request re-routes on every release and
|
|
3030
|
+
// used to log the same move each time (29× in 27 min for one request, 2026-11-16).
|
|
3031
|
+
requestInfo._movedLogged = moveKey;
|
|
3014
3032
|
// why= explains why the conversation LEFT its last account — measured against
|
|
3015
3033
|
// the loop's own pick, before any return-home switch.
|
|
3016
3034
|
let why = 'unknown';
|