stack/docker/dependencies
BilalG1 a22d5a49c1
Reduce Jaeger memory usage in local dev (#1357)
## Summary

Jaeger's `all-in-one` image uses an unbounded in-memory span store by
default, so on long-running local dev sessions it quietly grows until
the Docker VM is under memory pressure. This caps it in two ways:

- `MEMORY_MAX_TRACES=50000` — tells Jaeger to evict old traces once the
in-memory ring buffer hits 50k. Plenty for local debugging without
retaining every trace forever.
- `mem_limit: 1g` — hard Docker memory cap as a backstop so a runaway
collector can't starve the rest of the compose stack (Postgres,
ClickHouse, Svix, etc.).

Only touches `docker/dependencies/docker.compose.yaml` — no app code, no
prod config.

## Test plan

- [ ] `docker compose -f docker/dependencies/docker.compose.yaml up
jaeger` starts cleanly
- [ ] Jaeger UI reachable at `localhost:8107`
- [ ] OTLP endpoint on `localhost:8131` still ingests spans from the
API/dashboard
- [ ] `docker stats` shows the jaeger container capped at ~1GB under
load
- [ ] Old traces get evicted once trace count exceeds 50k (verify via UI
search)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

## Release Notes

* **Chores**
* Configured memory constraints and trace buffering optimization for the
tracing service to improve resource management and system stability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-04-22 17:27:29 -07:00
..
freestyle-mock [Refactor] [Fix] Email Rendering Pipeline Refactor, Error Handling, and Bug Fixes (#1140) 2026-02-02 17:35:51 -08:00
wal-info Defaults now apply when dotting into them 2026-01-26 15:13:57 -08:00
docker.compose.yaml Reduce Jaeger memory usage in local dev (#1357) 2026-04-22 17:27:29 -07:00