From 4e0289b341ac294b1b1f1f867731185d94589392 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 3 Jun 2021 12:34:11 +0200 Subject: [PATCH 1/2] :sparkles: Reduce the deletion window of file_changes. --- backend/src/app/main.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/app/main.clj b/backend/src/app/main.clj index 0cca40056..af6c77a45 100644 --- a/backend/src/app/main.clj +++ b/backend/src/app/main.clj @@ -254,7 +254,7 @@ :app.tasks.file-xlog-gc/handler {:pool (ig/ref :app.db/pool) :metrics (ig/ref :app.metrics/metrics) - :max-age cf/deletion-delay} + :max-age (dt/duration {:hours 48})} :app.tasks.telemetry/handler {:pool (ig/ref :app.db/pool) From 1b495ebad137d8bddeb34be3a3082b73c352c5aa Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 3 Jun 2021 12:40:22 +0200 Subject: [PATCH 2/2] :sparkles: Minor improvements on loki reporter. --- backend/src/app/loggers/loki.clj | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/backend/src/app/loggers/loki.clj b/backend/src/app/loggers/loki.clj index 1bafb7c4f..7344bad1f 100644 --- a/backend/src/app/loggers/loki.clj +++ b/backend/src/app/loggers/loki.clj @@ -31,7 +31,7 @@ [_ {:keys [receiver uri] :as cfg}] (when uri (l/info :msg "intializing loki reporter" :uri uri) - (let [input (a/chan (a/sliding-buffer 1024))] + (let [input (a/chan (a/dropping-buffer 512))] (receiver :sub input) (a/go-loop [] (let [msg (a/