From c4cda79ec0f3ddbb2a8fc4f118bfac3088589e75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 20 May 2022 13:36:16 +0200 Subject: [PATCH] Worker: chunk logs at 10kB instead of 1kB Send logs in bigger chunks, otherwise a Blender render can cause too many individual requests. --- internal/worker/log_chunker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/worker/log_chunker.go b/internal/worker/log_chunker.go index f6cadb78..d8434f99 100644 --- a/internal/worker/log_chunker.go +++ b/internal/worker/log_chunker.go @@ -9,7 +9,7 @@ import ( ) // When the buffer grows beyond this many bytes, flush. -const defaultLogChunkerBufferFlushSize = 1024 +const defaultLogChunkerBufferFlushSize = 10240 // When the last flush was this long ago, flush. const defaultLogChunkerFlushMaxInterval = 30 * time.Second