feat(synapse): update ingress to use traefik ingress class and bump version feat(syncthing-discovery): introduce syncthing discovery service with deployment and ingress feat(syncthing-relay): add syncthing relay server with deployment and ingress configuration fix(taiga): update liveness and readiness probes to use tcpSocket for health checks fix(taiga): change PVC access mode to ReadWriteMany for media and static storage feat(traefik): add icon and ignore rules for traefik service docs(ushahidi): add notes for Redis configuration and Laravel startup probe adjustments feat(ushahidi): implement dedicated Redis deployment for Ushahidi fix(vllm): update deployment strategy and readiness/liveness probes for improved stability fix(writefreely): pin writefreely image version to v0.15.1 for consistency docs(zulip): add notes for TLS-terminating reverse proxy configuration and expected behavior
21 lines
542 B
Markdown
21 lines
542 B
Markdown
# Node.js
|
||
|
||
## Memory limits
|
||
|
||
Node.js apps frequently OOM-crash at the default 512Mi limit. Set a higher limit and cap the V8 heap so it stays under it:
|
||
|
||
```yaml
|
||
resources:
|
||
limits:
|
||
memory: 1Gi
|
||
requests:
|
||
memory: 512Mi
|
||
env:
|
||
- name: NODE_OPTIONS
|
||
value: "--max-old-space-size=768"
|
||
```
|
||
|
||
`--max-old-space-size` is in MiB. Keep it 25–33% below the container limit so the process has headroom for non-heap memory (buffers, native modules, etc.).
|
||
|
||
**Applies to**: NocoDB, Outline, Gitea (web), and any Electron/Express/Next.js app.
|