From 232e3546590dfe2981984641694c1a662212c62e Mon Sep 17 00:00:00 2001
From: royalcat <k.adamovich20@gmail.com>
Date: Wed, 10 Apr 2024 00:04:54 +0300
Subject: [PATCH] tuning tempo

---
 tempo/config.yaml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tempo/config.yaml b/tempo/config.yaml
index 6ac22bb..7ab90d9 100644
--- a/tempo/config.yaml
+++ b/tempo/config.yaml
@@ -10,6 +10,9 @@ distributor:
         http:
         grpc:
 
+ingester:
+  max_block_bytes: 131072000 # 128mb
+
 metrics_generator:
   registry:
     external_labels:
@@ -22,15 +25,16 @@ metrics_generator:
 
 compactor:
   compaction:
-    block_retention: 168h # 7 days
+    block_retention: 672h # 28 days
     compacted_block_retention: 30m
-    retention_concurrency: 1
+    retention_concurrency: 2
 
 storage:
   trace:
     backend: s3
     wal:
       path: /tempo-data/wal # where to store the the wal locally
+      encoding: zstd
     s3:
       endpoint: s3.kmsign.ru
       bucket: tempo