@indigoai-us/hq-cloud 6.16.3 → 6.16.4
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/dist/bin/sync-runner-events.test.js +22 -12
- package/dist/bin/sync-runner-events.test.js.map +1 -1
- package/dist/bin/sync-runner-heap-telemetry.d.ts +238 -84
- package/dist/bin/sync-runner-heap-telemetry.d.ts.map +1 -1
- package/dist/bin/sync-runner-heap-telemetry.js +385 -131
- package/dist/bin/sync-runner-heap-telemetry.js.map +1 -1
- package/dist/bin/sync-runner-heap-telemetry.test.js +539 -204
- package/dist/bin/sync-runner-heap-telemetry.test.js.map +1 -1
- package/dist/bin/sync-runner-watch-loop.d.ts.map +1 -1
- package/dist/bin/sync-runner-watch-loop.js +65 -15
- package/dist/bin/sync-runner-watch-loop.js.map +1 -1
- package/dist/bin/sync-runner-watch-loop.test.js +47 -9
- package/dist/bin/sync-runner-watch-loop.test.js.map +1 -1
- package/dist/bin/sync-runner.d.ts +32 -14
- package/dist/bin/sync-runner.d.ts.map +1 -1
- package/dist/bin/sync-runner.js.map +1 -1
- package/package.json +1 -1
|
@@ -103,7 +103,7 @@ describe("routeEvents", () => {
|
|
|
103
103
|
externalBytes: 800_000_000,
|
|
104
104
|
uptimeMs: 3_470_000,
|
|
105
105
|
topSites: [
|
|
106
|
-
{ site: "
|
|
106
|
+
{ site: "publishedDigestGenerations", count: 12000, growth: 12000 },
|
|
107
107
|
{ site: "knownKinds", count: 8000, growth: 3000 },
|
|
108
108
|
],
|
|
109
109
|
}, streams);
|
|
@@ -112,7 +112,7 @@ describe("routeEvents", () => {
|
|
|
112
112
|
const event = JSON.parse(stdout[0]);
|
|
113
113
|
expect(event).toMatchObject({ type: "heap-pressure", usedFraction: 0.75 });
|
|
114
114
|
expect(event.topSites[0]).toMatchObject({
|
|
115
|
-
site: "
|
|
115
|
+
site: "publishedDigestGenerations",
|
|
116
116
|
growth: 12000,
|
|
117
117
|
});
|
|
118
118
|
});
|
|
@@ -123,18 +123,27 @@ describe("routeEvents", () => {
|
|
|
123
123
|
const { stdout, stderr, streams } = makeStreams();
|
|
124
124
|
routeEvents({
|
|
125
125
|
type: "heap-recycle",
|
|
126
|
-
|
|
126
|
+
trigger: "live",
|
|
127
|
+
usedHeapBytes: 1_450_000_000,
|
|
128
|
+
liveHeapBytes: 1_450_000_000,
|
|
127
129
|
heapLimitBytes: 2_000_000_000,
|
|
128
|
-
usedFraction: 0.
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
usedFraction: 0.725,
|
|
131
|
+
liveFraction: 0.725,
|
|
132
|
+
recycleLiveFraction: 0.6,
|
|
133
|
+
emergencyFraction: 0.9,
|
|
134
|
+
sustainWindowMs: 120_000,
|
|
135
|
+
observedSustainMs: 130_000,
|
|
136
|
+
minUptimeMs: 2_100_000,
|
|
133
137
|
rssBytes: 2_600_000_000,
|
|
134
138
|
externalBytes: 800_000_000,
|
|
135
|
-
|
|
139
|
+
arrayBuffersBytes: 12_000_000,
|
|
140
|
+
rssGrowthBytes: 2_400_000_000,
|
|
141
|
+
externalGrowthBytes: 700_000_000,
|
|
142
|
+
arrayBuffersGrowthBytes: 10_000_000,
|
|
143
|
+
censusTotal: 20000,
|
|
144
|
+
uptimeMs: 2_270_000,
|
|
136
145
|
topSites: [
|
|
137
|
-
{ site: "
|
|
146
|
+
{ site: "publishedDigestGenerations", count: 12000, growth: 12000 },
|
|
138
147
|
{ site: "knownKinds", count: 8000, growth: 3000 },
|
|
139
148
|
],
|
|
140
149
|
}, streams);
|
|
@@ -143,8 +152,9 @@ describe("routeEvents", () => {
|
|
|
143
152
|
const event = JSON.parse(stdout[0]);
|
|
144
153
|
expect(event).toMatchObject({
|
|
145
154
|
type: "heap-recycle",
|
|
146
|
-
|
|
147
|
-
|
|
155
|
+
trigger: "live",
|
|
156
|
+
recycleLiveFraction: 0.6,
|
|
157
|
+
observedSustainMs: 130_000,
|
|
148
158
|
});
|
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CAAC,CAAC;IAEH,EAAE,CAAC,oEAAoE,EAAE,GAAG,EAAE;QAC5E,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,WAAW,EAAE,CAAC;QAClD,MAAM,IAAI,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAC;QAE1C,IAAI,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC,CAAC;QAE3D,MAAM,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QAC/B,MAAM,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -7,25 +7,38 @@
|
|
|
7
7
|
* runner shipped no memory telemetry at all, so nothing in the abort evidence
|
|
8
8
|
* could name which structure held the memory. This module closes that gap: it
|
|
9
9
|
* samples the process heap on a bounded cadence, attributes live entry counts
|
|
10
|
-
* to a fixed set of long-lived structures (the "census"), and —
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* to a fixed set of long-lived structures (the "census"), and — before V8
|
|
11
|
+
* aborts — recycles the process so the desktop supervisor respawns a fresh one.
|
|
12
|
+
*
|
|
13
|
+
* The governor keys on the POST-GC LIVE HEAP, not the instantaneous
|
|
14
|
+
* `used_heap_size`. Between major collections `used_heap_size` is live-set plus
|
|
15
|
+
* not-yet-collected garbage, so it sawtooths by a large fraction of the ceiling
|
|
16
|
+
* from minute to minute; a rule that watches it can sit at a sub-threshold
|
|
17
|
+
* sample forever while the true live set climbs to the abort point (the
|
|
18
|
+
* 2026-09-01 regression: a full production day produced ZERO recycle verdicts
|
|
19
|
+
* against 1462 samples while the runner kept aborting). The monotonic quantity
|
|
20
|
+
* is the live set that survives a major GC — exactly what V8 uses for its own
|
|
21
|
+
* OOM verdict — so the primary signal is read on each observed MAJOR GC. A
|
|
22
|
+
* single instantaneous backstop remains for the case where the live signal is
|
|
23
|
+
* unavailable and the heap is already minutes from aborting.
|
|
13
24
|
*
|
|
14
25
|
* The whole module is numeric-only and allocation-light by construction:
|
|
15
26
|
*
|
|
16
27
|
* - Every emitted value is a number, and every census site is a FIXED
|
|
17
|
-
* identifier token, never a path/filename/company/message.
|
|
18
|
-
*
|
|
28
|
+
* identifier token, never a path/filename/company/message. Property keys are
|
|
29
|
+
* additionally shaped to survive the vault's ingest contract: they contain
|
|
30
|
+
* none of its denied key substrings and end in `_count`/`_bytes`/`_ms`, so
|
|
31
|
+
* the census attribution is actually stored rather than silently dropped.
|
|
19
32
|
* - The controller retains only the FIRST sample (the growth baseline) and
|
|
20
33
|
* the LATEST sample. It never accumulates history — a memory diagnostic
|
|
21
34
|
* that leaks would regress the very defect it measures.
|
|
22
|
-
* - All readers, timers, and emit callbacks are injected, so
|
|
23
|
-
* driven deterministically by tests with no real allocation,
|
|
24
|
-
* growth, no wall-clock timing, and no network.
|
|
35
|
+
* - All readers, timers, the GC observer, and emit callbacks are injected, so
|
|
36
|
+
* the module is driven deterministically by tests with no real allocation,
|
|
37
|
+
* no real heap growth, no wall-clock timing, and no network.
|
|
25
38
|
*
|
|
26
39
|
* Diagnostics must never affect sync: a throwing reader, a faulty census
|
|
27
|
-
* entry, or a rejecting emit callback degrades to
|
|
28
|
-
* watch cycle.
|
|
40
|
+
* entry, an unavailable GC entry API, or a rejecting emit callback degrades to
|
|
41
|
+
* silence and never disturbs a watch cycle.
|
|
29
42
|
*/
|
|
30
43
|
/** The subset of `v8.getHeapStatistics()` this module reads. */
|
|
31
44
|
export interface HeapStatisticsReading {
|
|
@@ -93,9 +106,12 @@ export declare function sampleRunnerHeap(deps: {
|
|
|
93
106
|
}): RunnerHeapSample;
|
|
94
107
|
/**
|
|
95
108
|
* Flatten a sample into numeric telemetry properties. Raw heap figures carry a
|
|
96
|
-
* `heap_`/`rss_`/`external_` prefix; each census site becomes
|
|
97
|
-
* Every value is a number
|
|
98
|
-
*
|
|
109
|
+
* `heap_`/`rss_`/`external_` prefix; each census site becomes
|
|
110
|
+
* `census_<token>_count`. Every value is a number AND every key ends in
|
|
111
|
+
* `_count`/`_bytes`/`_ms` and contains none of the vault ingest contract's
|
|
112
|
+
* denied substrings, so the record is both accepted by the local sanitizer and
|
|
113
|
+
* actually STORED by ingest (unlike the pre-fix `census_<token>` spelling,
|
|
114
|
+
* which ingest silently dropped, so the attribution never reached the store).
|
|
99
115
|
*/
|
|
100
116
|
export declare function heapSampleCloudProperties(sample: RunnerHeapSample): Record<string, number>;
|
|
101
117
|
export interface HeapPressureSite {
|
|
@@ -119,33 +135,58 @@ export interface HeapPressureRecord {
|
|
|
119
135
|
export declare function heapPressureCloudProperties(record: HeapPressureRecord): Record<string, number>;
|
|
120
136
|
/** A compact, numeric-only stderr line that survives when the vault is down. */
|
|
121
137
|
export declare function heapPressureStderrLine(record: HeapPressureRecord): string;
|
|
138
|
+
/** Which signal produced a recycle verdict. */
|
|
139
|
+
export type HeapRecycleTrigger = "live" | "emergency";
|
|
122
140
|
/**
|
|
123
141
|
* The governor verdict, emitted at most once per session. Where a pressure
|
|
124
142
|
* record is a diagnostic breadcrumb, a recycle is ACTED ON: the watch loop
|
|
125
143
|
* stops admitting new passes, lets the in-flight pass finish, and exits so the
|
|
126
144
|
* desktop supervisor respawns a fresh runner BEFORE V8 aborts the current one.
|
|
127
145
|
*
|
|
128
|
-
* It fires
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
146
|
+
* It fires on one of two triggers:
|
|
147
|
+
* - `"live"` — the primary path. Read on an observed MAJOR GC, the post-GC
|
|
148
|
+
* live fraction has held at or above `recycleLiveFraction` (default 0.60)
|
|
149
|
+
* across at least two observations spanning `sustainWindowMs` (default
|
|
150
|
+
* 120 s), AND the process has outlived `minUptimeMs` (default 35 min, above
|
|
151
|
+
* hq-desktop-app's 30-minute HEALTHY_RUN_WINDOW so a recycle clears the
|
|
152
|
+
* crash streak rather than pacing respawn backoff).
|
|
153
|
+
* - `"emergency"` — an instantaneous `used_heap_size` sample at or above
|
|
154
|
+
* `emergencyFraction` (default 0.90). At that reading V8 is minutes from
|
|
155
|
+
* aborting, so this path bypasses the sustain window AND the uptime floor:
|
|
156
|
+
* a clean exit-1 before the floor is still strictly better than a SIGABRT,
|
|
157
|
+
* which counts the same crash episode and files a Sentry capture.
|
|
134
158
|
*/
|
|
135
159
|
export interface HeapRecycleRecord {
|
|
160
|
+
trigger: HeapRecycleTrigger;
|
|
161
|
+
/** Instantaneous `used_heap_size` at the verdict. */
|
|
136
162
|
usedHeapBytes: number;
|
|
163
|
+
/** The governing heap figure: the post-GC live set for `"live"`, else used. */
|
|
164
|
+
liveHeapBytes: number;
|
|
137
165
|
heapLimitBytes: number;
|
|
166
|
+
/** `usedHeapBytes / heapLimitBytes`. */
|
|
138
167
|
usedFraction: number;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
168
|
+
/** The governing fraction: `liveHeapBytes / heapLimitBytes`. */
|
|
169
|
+
liveFraction: number;
|
|
170
|
+
/** Configured post-GC live floor a `"live"` recycle requires. */
|
|
171
|
+
recycleLiveFraction: number;
|
|
172
|
+
/** Configured instantaneous fraction the `"emergency"` backstop requires. */
|
|
173
|
+
emergencyFraction: number;
|
|
174
|
+
/** Configured minimum span between the two qualifying live observations. */
|
|
175
|
+
sustainWindowMs: number;
|
|
176
|
+
/** Actual span observed across the sustain window (0 for `"emergency"`). */
|
|
177
|
+
observedSustainMs: number;
|
|
178
|
+
/** Configured uptime floor (ms) the `"live"` recycle could not fire before. */
|
|
145
179
|
minUptimeMs: number;
|
|
180
|
+
uptimeMs: number;
|
|
146
181
|
rssBytes: number;
|
|
147
182
|
externalBytes: number;
|
|
148
|
-
|
|
183
|
+
arrayBuffersBytes: number;
|
|
184
|
+
/** RSS/external/arrayBuffers growth since the session's first sample, so the
|
|
185
|
+
* next occurrence distinguishes V8 object retention from native retention. */
|
|
186
|
+
rssGrowthBytes: number;
|
|
187
|
+
externalGrowthBytes: number;
|
|
188
|
+
arrayBuffersGrowthBytes: number;
|
|
189
|
+
censusTotal: number;
|
|
149
190
|
/** Census sites ranked by growth since the session's first sample. */
|
|
150
191
|
topSites: HeapPressureSite[];
|
|
151
192
|
}
|
|
@@ -176,34 +217,49 @@ export interface RunnerHeapTelemetryOptions {
|
|
|
176
217
|
*/
|
|
177
218
|
recycleEnabled?: boolean;
|
|
178
219
|
/**
|
|
179
|
-
*
|
|
180
|
-
* 0.
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
|
|
220
|
+
* Post-GC live fraction of `heap_size_limit` at or above which the PRIMARY
|
|
221
|
+
* recycle arms. Default 0.60. Derived from the recorded aborting session: its
|
|
222
|
+
* post-GC live floor was <= 0.51 at 36.7 min and V8 aborted at 0.90 of the
|
|
223
|
+
* reported limit at 55.3 min, so 0.60 trips roughly 16 minutes ahead of the
|
|
224
|
+
* abort while every healthy runner in the same day's telemetry sampled below
|
|
225
|
+
* 0.06. Taken against V8's reported `heap_size_limit`, so it self-calibrates
|
|
226
|
+
* to whatever `--max-old-space-size` the desktop supplied.
|
|
227
|
+
*/
|
|
228
|
+
recycleLiveFraction?: number;
|
|
229
|
+
/**
|
|
230
|
+
* Minimum span (ms) the live fraction must hold at or above the floor, across
|
|
231
|
+
* at least two major-GC observations, before the primary recycle arms.
|
|
232
|
+
* Default 120 s, so a single post-GC reading taken mid-allocation cannot trip
|
|
233
|
+
* it.
|
|
187
234
|
*/
|
|
188
|
-
|
|
235
|
+
recycleSustainWindowMs?: number;
|
|
189
236
|
/**
|
|
190
|
-
*
|
|
191
|
-
*
|
|
237
|
+
* Instantaneous `used_heap_size` fraction at or above which the EMERGENCY
|
|
238
|
+
* backstop recycles on a single sample, bypassing the sustain window and the
|
|
239
|
+
* uptime floor. Default 0.90 — at that reading V8 is minutes from aborting
|
|
240
|
+
* and the anti-spike guard is actively harmful.
|
|
192
241
|
*/
|
|
193
|
-
|
|
242
|
+
recycleEmergencyFraction?: number;
|
|
194
243
|
/**
|
|
195
|
-
* Process-uptime floor (ms) below which a recycle can never
|
|
196
|
-
* high the heap climbs. Default
|
|
197
|
-
* HEALTHY_RUN_WINDOW — so
|
|
198
|
-
*
|
|
244
|
+
* Process-uptime floor (ms) below which a PRIMARY (live) recycle can never
|
|
245
|
+
* fire, however high the heap climbs. Default 35 min — strictly above
|
|
246
|
+
* hq-desktop-app's 30-minute HEALTHY_RUN_WINDOW — so an ordinary recycle
|
|
247
|
+
* always clears the crash streak via should_reset_after_recovery instead of
|
|
248
|
+
* pacing respawn backoff. The emergency backstop deliberately ignores it.
|
|
199
249
|
*/
|
|
200
250
|
recycleMinUptimeMs?: number;
|
|
201
251
|
}
|
|
202
252
|
/**
|
|
203
|
-
* Owns the sampling state machine
|
|
204
|
-
*
|
|
205
|
-
*
|
|
206
|
-
*
|
|
253
|
+
* Owns the sampling state machine. It keeps the baseline and latest sample, the
|
|
254
|
+
* pressure escalation, and the two recycle paths:
|
|
255
|
+
* - {@link observeMajorGc}, the PRIMARY path, driven by the GC observer: each
|
|
256
|
+
* (throttled) call reads the post-GC live heap and tracks the sustain
|
|
257
|
+
* window that a live recycle requires.
|
|
258
|
+
* - {@link evaluate} and the emergency arm of {@link sample}, the instantaneous
|
|
259
|
+
* BACKSTOP: they recycle on a single sample at/above the emergency fraction
|
|
260
|
+
* even if the GC signal never arrives or the sampler timer is starved.
|
|
261
|
+
* Every fraction is derived from the injected `heap_size_limit`, so the governor
|
|
262
|
+
* self-calibrates to whatever `--max-old-space-size` the desktop supplied.
|
|
207
263
|
*/
|
|
208
264
|
export declare class RunnerHeapTelemetry {
|
|
209
265
|
private readonly readers;
|
|
@@ -212,37 +268,71 @@ export declare class RunnerHeapTelemetry {
|
|
|
212
268
|
private readonly threshold;
|
|
213
269
|
private readonly topSiteCount;
|
|
214
270
|
private readonly recycleEnabled;
|
|
215
|
-
private readonly
|
|
216
|
-
private readonly
|
|
271
|
+
private readonly recycleLiveFraction;
|
|
272
|
+
private readonly recycleSustainWindowMs;
|
|
273
|
+
private readonly recycleEmergencyFraction;
|
|
217
274
|
private readonly recycleMinUptimeMs;
|
|
218
275
|
private baseline;
|
|
219
276
|
private latest;
|
|
220
277
|
private pressureSignalled;
|
|
221
|
-
private recycleSustainedCount;
|
|
222
278
|
private recycleSignalled;
|
|
279
|
+
/** Uptime (ms) of the first live observation at/above the floor in the
|
|
280
|
+
* current consecutive run; null when the last live reading dipped below it. */
|
|
281
|
+
private liveAnchorUptimeMs;
|
|
223
282
|
constructor(options: RunnerHeapTelemetryOptions);
|
|
224
283
|
/**
|
|
225
284
|
* Capture the growth baseline when sampling starts, before the first interval,
|
|
226
|
-
* WITHOUT emitting or arming
|
|
227
|
-
*
|
|
228
|
-
*
|
|
229
|
-
*
|
|
285
|
+
* WITHOUT emitting or arming any signal. Without this, a runner that is already
|
|
286
|
+
* above the threshold at its first scheduled sample would make that same high
|
|
287
|
+
* sample its own baseline, so a crossing record would report zero growth for
|
|
288
|
+
* every site and lose the attribution.
|
|
230
289
|
*/
|
|
231
290
|
primeBaseline(): RunnerHeapSample;
|
|
291
|
+
/**
|
|
292
|
+
* The interval sampler tick. Emits a sample and (at most once per rising
|
|
293
|
+
* crossing) a pressure record. Its recycle output is the EMERGENCY backstop
|
|
294
|
+
* only — the instantaneous sawtooth is deliberately NOT the primary verdict.
|
|
295
|
+
*/
|
|
232
296
|
sample(): {
|
|
233
297
|
sample: RunnerHeapSample;
|
|
234
298
|
pressure: HeapPressureRecord | null;
|
|
235
299
|
recycle: HeapRecycleRecord | null;
|
|
236
300
|
};
|
|
237
301
|
/**
|
|
238
|
-
* The governor
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
*
|
|
243
|
-
*
|
|
302
|
+
* The PRIMARY governor path, driven by an observed MAJOR GC. The caller
|
|
303
|
+
* ({@link nodeMajorGcObserver}) only invokes this for a GC whose reading it
|
|
304
|
+
* could capture PROMPTLY — a callback delayed by a blocked event loop is
|
|
305
|
+
* skipped upstream, because `getHeapStatistics()` read late would be an
|
|
306
|
+
* instantaneous sawtooth value (live set plus everything allocated since the
|
|
307
|
+
* GC), not the post-GC live floor.
|
|
308
|
+
*
|
|
309
|
+
* The anchor is maintained on EVERY observed major GC via a cheap
|
|
310
|
+
* `getHeapStatistics()` read (no throttle), so a post-GC reading that dips
|
|
311
|
+
* below the floor ALWAYS invalidates the sustain run — a throttle that skipped
|
|
312
|
+
* such a reading would let a stale anchor fake a continuous run. The fuller
|
|
313
|
+
* sample (census snapshot + memory deltas) is taken only at the verdict, so a
|
|
314
|
+
* GC storm never costs more than the O(1) statistics read here.
|
|
315
|
+
*/
|
|
316
|
+
observeMajorGc(): HeapRecycleRecord | null;
|
|
317
|
+
/**
|
|
318
|
+
* The loop-top BACKSTOP against timer starvation (the observed 11-minute
|
|
319
|
+
* sampler hole). Reads the instantaneous heap and runs the emergency check
|
|
320
|
+
* only — an instantaneous reading can never confirm the post-GC live floor,
|
|
321
|
+
* so it must not feed the primary path's sustain window. Cheap: an O(1)
|
|
322
|
+
* statistics read, sampling the census only if it actually fires.
|
|
244
323
|
*/
|
|
245
|
-
|
|
324
|
+
evaluate(): HeapRecycleRecord | null;
|
|
325
|
+
private buildSample;
|
|
326
|
+
/** The instantaneous emergency backstop: a single sample at/above the
|
|
327
|
+
* emergency fraction, bypassing the sustain window and the uptime floor. */
|
|
328
|
+
private detectEmergency;
|
|
329
|
+
/**
|
|
330
|
+
* Produce a verdict from a freshly-taken sample. Called only once the cheap
|
|
331
|
+
* per-GC (or loop-top) path has decided a recycle is due, so the census
|
|
332
|
+
* snapshot and memory deltas are computed exactly once per session.
|
|
333
|
+
*/
|
|
334
|
+
private produceRecycleFromCurrent;
|
|
335
|
+
private produceRecycle;
|
|
246
336
|
private detectPressure;
|
|
247
337
|
private topSitesByGrowth;
|
|
248
338
|
/** Test accessor: the retained growth baseline. */
|
|
@@ -258,41 +348,101 @@ export interface IntervalScheduler {
|
|
|
258
348
|
export interface IntervalHandle {
|
|
259
349
|
unref?: () => void;
|
|
260
350
|
}
|
|
351
|
+
/**
|
|
352
|
+
* Major-GC observer seam. Production wires {@link nodeMajorGcObserver}; tests
|
|
353
|
+
* inject a manual observer they fire by hand. `start` registers a callback
|
|
354
|
+
* invoked once per observed MAJOR GC; `stop` disconnects it. Both are wrapped
|
|
355
|
+
* so an unavailable or mis-shaped GC entry API degrades to silence and can
|
|
356
|
+
* never throw into the watch loop.
|
|
357
|
+
*/
|
|
358
|
+
export interface GcObserver {
|
|
359
|
+
start(onMajorGc: () => void): void;
|
|
360
|
+
stop(): void;
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* The maximum age (ms) of a major-GC PerformanceEntry, at the moment its
|
|
364
|
+
* observer callback runs, for the post-GC heap read to be trustworthy. GC
|
|
365
|
+
* entries are delivered ASYNCHRONOUSLY, so when the event loop was blocked the
|
|
366
|
+
* callback fires long after the collection and a `getHeapStatistics()` read then
|
|
367
|
+
* reflects the live set PLUS everything allocated since — an instantaneous
|
|
368
|
+
* sawtooth value, not the post-GC live floor. A reading older than this is
|
|
369
|
+
* skipped rather than fed to the sustain window, so only promptly-captured
|
|
370
|
+
* (genuinely post-GC) readings can arm a live recycle.
|
|
371
|
+
*/
|
|
372
|
+
export declare const MAX_FRESH_GC_READING_MS = 250;
|
|
373
|
+
/**
|
|
374
|
+
* Whether a major-GC reading taken at `nowMs` is fresh enough to treat as a
|
|
375
|
+
* post-GC live-heap snapshot, given the entry's end time (`entry.startTime +
|
|
376
|
+
* entry.duration`). Exported for deterministic testing of the staleness gate.
|
|
377
|
+
*/
|
|
378
|
+
export declare function isFreshGcReading(gcEndMs: number, nowMs: number, maxAgeMs?: number): boolean;
|
|
379
|
+
/**
|
|
380
|
+
* Production major-GC observer over `perf_hooks`. Everything is wrapped so a
|
|
381
|
+
* runtime without the GC PerformanceEntry API, or one whose entries omit
|
|
382
|
+
* `detail.kind`, degrades to a silent no-op rather than throwing into the
|
|
383
|
+
* runner — in that degraded case the instantaneous emergency backstop and the
|
|
384
|
+
* pressure diagnostics remain active, so the governor is never worse than base.
|
|
385
|
+
*
|
|
386
|
+
* It only invokes the callback for a major GC whose reading it can capture
|
|
387
|
+
* PROMPTLY ({@link isFreshGcReading}): a callback delayed by a blocked event
|
|
388
|
+
* loop would read an inflated instantaneous heap rather than the post-GC live
|
|
389
|
+
* floor, so it is skipped.
|
|
390
|
+
*/
|
|
391
|
+
export declare function nodeMajorGcObserver(): GcObserver;
|
|
261
392
|
export interface RunnerHeapSamplingOptions extends RunnerHeapTelemetryOptions {
|
|
262
393
|
intervalMs: number;
|
|
263
394
|
onSample: (sample: RunnerHeapSample) => void;
|
|
264
395
|
onPressure: (record: HeapPressureRecord) => void;
|
|
265
396
|
/**
|
|
266
|
-
* Called at most once, when the governor decides the process should recycle
|
|
267
|
-
*
|
|
268
|
-
*
|
|
397
|
+
* Called at most once, when the governor decides the process should recycle
|
|
398
|
+
* (from any of the three paths: the interval-sample emergency check, the
|
|
399
|
+
* GC-observer live check, or the loop-top {@link RunnerHeapSamplingHandle.evaluate}
|
|
400
|
+
* backstop). Optional so the diagnostics-only wiring (and every existing
|
|
401
|
+
* caller) needs no change; a faulty callback is swallowed exactly like the
|
|
402
|
+
* others.
|
|
269
403
|
*/
|
|
270
404
|
onRecycle?: (record: HeapRecycleRecord) => void;
|
|
271
405
|
scheduler?: IntervalScheduler;
|
|
406
|
+
/**
|
|
407
|
+
* Major-GC observer that drives the primary live-heap path. Optional: when
|
|
408
|
+
* absent, only the instantaneous emergency backstop and pressure diagnostics
|
|
409
|
+
* run. Production wires {@link nodeMajorGcObserver}; tests inject a manual one.
|
|
410
|
+
*/
|
|
411
|
+
gcObserver?: GcObserver;
|
|
272
412
|
log?: (message: string) => void;
|
|
273
413
|
}
|
|
274
414
|
export interface RunnerHeapSamplingHandle {
|
|
275
415
|
stop: () => void;
|
|
416
|
+
/**
|
|
417
|
+
* The loop-top backstop: run one throttled instantaneous emergency check and
|
|
418
|
+
* fire `onRecycle` if it trips. Cheap and safe to call every watch-loop
|
|
419
|
+
* iteration; a fault degrades to silence.
|
|
420
|
+
*/
|
|
421
|
+
evaluate: () => void;
|
|
276
422
|
readonly telemetry: RunnerHeapTelemetry;
|
|
277
423
|
}
|
|
278
424
|
/**
|
|
279
|
-
* Start periodic sampling
|
|
280
|
-
*
|
|
281
|
-
*
|
|
282
|
-
*
|
|
425
|
+
* Start periodic sampling and, when a GC observer is supplied, the primary
|
|
426
|
+
* live-heap path. The interval timer is `unref`'d so it can never hold the
|
|
427
|
+
* process open, and `stop()` clears it and disconnects the GC observer on every
|
|
428
|
+
* shutdown path. Each tick, GC callback, and emit — and the loop-top
|
|
429
|
+
* `evaluate()` — is wrapped so a fault degrades to silence and never affects the
|
|
430
|
+
* watch cycle.
|
|
283
431
|
*/
|
|
284
432
|
export declare function startRunnerHeapSampling(options: RunnerHeapSamplingOptions): RunnerHeapSamplingHandle;
|
|
285
433
|
/** Env knob names, exported so the runner and its tests agree on the strings. */
|
|
286
434
|
export declare const HEAP_SAMPLE_INTERVAL_ENV = "HQ_SYNC_RUNNER_HEAP_SAMPLE_MS";
|
|
287
435
|
export declare const HEAP_PRESSURE_FRACTION_ENV = "HQ_SYNC_RUNNER_HEAP_PRESSURE_FRACTION";
|
|
288
436
|
export declare const HEAP_RECYCLE_ENABLED_ENV = "HQ_SYNC_RUNNER_HEAP_RECYCLE_ENABLED";
|
|
289
|
-
export declare const
|
|
290
|
-
export declare const
|
|
437
|
+
export declare const HEAP_RECYCLE_LIVE_FRACTION_ENV = "HQ_SYNC_RUNNER_HEAP_RECYCLE_LIVE_FRACTION";
|
|
438
|
+
export declare const HEAP_RECYCLE_SUSTAIN_WINDOW_MS_ENV = "HQ_SYNC_RUNNER_HEAP_RECYCLE_SUSTAIN_WINDOW_MS";
|
|
439
|
+
export declare const HEAP_RECYCLE_EMERGENCY_FRACTION_ENV = "HQ_SYNC_RUNNER_HEAP_RECYCLE_EMERGENCY_FRACTION";
|
|
291
440
|
export declare const HEAP_RECYCLE_MIN_UPTIME_MS_ENV = "HQ_SYNC_RUNNER_HEAP_RECYCLE_MIN_UPTIME_MS";
|
|
292
441
|
export declare const DEFAULT_HEAP_SAMPLE_INTERVAL_MS = 60000;
|
|
293
442
|
export declare const DEFAULT_HEAP_PRESSURE_FRACTION = 0.75;
|
|
294
|
-
export declare const
|
|
295
|
-
export declare const
|
|
443
|
+
export declare const DEFAULT_HEAP_RECYCLE_LIVE_FRACTION = 0.6;
|
|
444
|
+
export declare const DEFAULT_HEAP_RECYCLE_SUSTAIN_WINDOW_MS = 120000;
|
|
445
|
+
export declare const DEFAULT_HEAP_RECYCLE_EMERGENCY_FRACTION = 0.9;
|
|
296
446
|
export declare const DEFAULT_HEAP_RECYCLE_MIN_UPTIME_MS: number;
|
|
297
447
|
/**
|
|
298
448
|
* Parse the sampling-interval env knob (whole milliseconds). Rejects the ENTIRE
|
|
@@ -315,23 +465,27 @@ export declare function resolveHeapPressureFraction(raw: string | undefined): nu
|
|
|
315
465
|
*/
|
|
316
466
|
export declare function resolveHeapRecycleEnabled(raw: string | undefined): boolean;
|
|
317
467
|
/**
|
|
318
|
-
* Parse the
|
|
319
|
-
* or out-of-range input. Rejects the entire string (e.g. "0.
|
|
320
|
-
* rather than accepting a numeric prefix.
|
|
468
|
+
* Parse the primary live-fraction knob; falls back to the default (0.60) on
|
|
469
|
+
* garbage or out-of-range input. Rejects the entire string (e.g. "0.6x" falls
|
|
470
|
+
* back) rather than accepting a numeric prefix.
|
|
471
|
+
*/
|
|
472
|
+
export declare function resolveHeapRecycleLiveFraction(raw: string | undefined): number;
|
|
473
|
+
/**
|
|
474
|
+
* Parse the emergency-fraction knob; falls back to the default (0.90) on garbage
|
|
475
|
+
* or out-of-range input. Rejects the entire string rather than a numeric prefix.
|
|
321
476
|
*/
|
|
322
|
-
export declare function
|
|
477
|
+
export declare function resolveHeapRecycleEmergencyFraction(raw: string | undefined): number;
|
|
323
478
|
/**
|
|
324
|
-
* Parse the
|
|
325
|
-
*
|
|
326
|
-
*
|
|
327
|
-
*
|
|
479
|
+
* Parse the sustain-window knob (whole milliseconds, >= 0). 0 is a VALID value
|
|
480
|
+
* here — it removes the window so two qualifying observations at the same uptime
|
|
481
|
+
* suffice, which the deterministic tests rely on — so only a non-integer or
|
|
482
|
+
* negative value falls back to the 120-second default.
|
|
328
483
|
*/
|
|
329
|
-
export declare function
|
|
484
|
+
export declare function resolveHeapRecycleSustainWindowMs(raw: string | undefined): number;
|
|
330
485
|
/**
|
|
331
|
-
* Parse the minimum-uptime-floor knob (whole milliseconds, >= 0).
|
|
332
|
-
*
|
|
333
|
-
*
|
|
334
|
-
* falls back to the 30-minute default.
|
|
486
|
+
* Parse the minimum-uptime-floor knob (whole milliseconds, >= 0). 0 is a VALID
|
|
487
|
+
* value here — it disables the floor, which the deterministic tests rely on — so
|
|
488
|
+
* only a non-integer or negative value falls back to the 35-minute default.
|
|
335
489
|
*/
|
|
336
490
|
export declare function resolveHeapRecycleMinUptimeMs(raw: string | undefined): number;
|
|
337
491
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-runner-heap-telemetry.d.ts","sourceRoot":"","sources":["../../src/bin/sync-runner-heap-telemetry.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"sync-runner-heap-telemetry.d.ts","sourceRoot":"","sources":["../../src/bin/sync-runner-heap-telemetry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAIH,gEAAgE;AAChE,MAAM,WAAW,qBAAqB;IACpC,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,yDAAyD;IACzD,eAA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