stack/docker
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
..
backend Fix Docker build scripts 2026-04-18 23:50:50 -07:00
dependencies Reduce Jaeger memory usage in local dev (#1357) 2026-04-22 17:27:29 -07:00
dev-postgres-replica External db sync (#1036) 2026-02-05 12:04:31 -08:00
dev-postgres-with-extensions Payments bulldozer txn rework (#1315) 2026-04-17 22:11:21 +00:00
local-emulator Fast-start local emulator via RAM snapshot + live secret rotation (#1340) 2026-04-20 14:24:49 -07:00
mock-oauth-server Local emulator (#422) 2025-02-13 18:57:02 +01:00
server Fast-start local emulator via RAM snapshot + live secret rotation (#1340) 2026-04-20 14:24:49 -07:00