From 7fe60caf829bf8749018a208cb2fee7c998b5045 Mon Sep 17 00:00:00 2001 From: charlie-jangala <129748315+charlie-jangala@users.noreply.github.com> Date: Fri, 19 Jan 2024 10:34:54 +0000 Subject: [PATCH] NOISSUE - Limit Max Traces kept in-memory by Jaeger all-in-one (#259) Signed-off-by: Charlie Evans --- docker/.env | 1 + docker/docker-compose.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/docker/.env b/docker/.env index 81761fd3b9..8cc0e95df7 100644 --- a/docker/.env +++ b/docker/.env @@ -63,6 +63,7 @@ MG_JAEGER_FRONTEND=16686 MG_JAEGER_OLTP_HTTP=4318 MG_JAEGER_URL=http://jaeger:4318 MG_JAEGER_TRACE_RATIO=1.0 +MG_JAEGER_MEMORY_MAX_TRACES=5000 ## Call home MG_SEND_TELEMETRY=true diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index f23eaaa89c..417c72b3ff 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -462,6 +462,7 @@ services: container_name: magistrala-jaeger environment: COLLECTOR_OTLP_ENABLED: ${MG_JAEGER_COLLECTOR_OTLP_ENABLED} + command: --memory.max-traces ${MG_JAEGER_MEMORY_MAX_TRACES} ports: - ${MG_JAEGER_FRONTEND}:${MG_JAEGER_FRONTEND} - ${MG_JAEGER_OLTP_HTTP}:${MG_JAEGER_OLTP_HTTP}