@camstack/server 1.2.178 → 1.2.179
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/main.js +6 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -241,7 +241,12 @@ async function bootstrap() {
|
|
|
241
241
|
// heartbeat then behaves exactly as it did before.
|
|
242
242
|
const heapReclaimer = (0, system_1.createV8Reclaimer)();
|
|
243
243
|
const heapReclaim = heapReclaimer === undefined ? undefined : { reclaim: heapReclaimer };
|
|
244
|
-
|
|
244
|
+
// ...and the budget the heartbeat alarms on. hub-main has no manifest to declare one in, and
|
|
245
|
+
// the entrypoint that would be the obvious alternative is the least deployable surface here —
|
|
246
|
+
// the image never carries this repo's backend. So the number lives in `@camstack/server`,
|
|
247
|
+
// which is what `applyServerUpdate` replaces, for exactly the reason the heartbeat itself is
|
|
248
|
+
// started from this file. See `hubMainRssBudget` for why 4096, and why it is expected to fire.
|
|
249
|
+
(0, system_1.startHeapWatch)('hub-main', undefined, undefined, heapReclaim, undefined, undefined, true, (0, system_1.hubMainRssBudget)());
|
|
245
250
|
// Clean up orphaned processes from previous crashes before starting
|
|
246
251
|
cleanupOrphanProcesses();
|
|
247
252
|
// SPA fallback — set later when admin UI is resolved, used by addon route catch-all
|