Commit 32c7d40
committed
chore(infra): add Node heap caps to api worker deployments
bg, worker-job, temporal, and private ran Node with no
--max-old-space-size, so V8 used its default heap sizing (derived from
the node's total RAM, not the pod limit) and could grow past the cgroup
limit and OOM with no early-GC backstop. Cap each at 90% of its limit
via the shared nodeOptions helper, matching api/ws. personalized-digest
left uncapped intentionally so it can absorb load spikes.1 parent 516c142 commit 32c7d40
1 file changed
Lines changed: 17 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
| 236 | + | |
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
241 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
242 | 246 | | |
243 | 247 | | |
244 | 248 | | |
245 | 249 | | |
246 | 250 | | |
| 251 | + | |
| 252 | + | |
247 | 253 | | |
248 | 254 | | |
249 | 255 | | |
| |||
463 | 469 | | |
464 | 470 | | |
465 | 471 | | |
466 | | - | |
| 472 | + | |
467 | 473 | | |
468 | 474 | | |
469 | 475 | | |
| |||
485 | 491 | | |
486 | 492 | | |
487 | 493 | | |
488 | | - | |
| 494 | + | |
489 | 495 | | |
490 | 496 | | |
491 | 497 | | |
| |||
501 | 507 | | |
502 | 508 | | |
503 | 509 | | |
504 | | - | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
505 | 515 | | |
506 | 516 | | |
507 | 517 | | |
508 | 518 | | |
509 | 519 | | |
510 | 520 | | |
511 | 521 | | |
512 | | - | |
| 522 | + | |
513 | 523 | | |
514 | 524 | | |
515 | 525 | | |
| |||
557 | 567 | | |
558 | 568 | | |
559 | 569 | | |
560 | | - | |
| 570 | + | |
561 | 571 | | |
562 | 572 | | |
563 | 573 | | |
| |||
0 commit comments