Worker: chunk logs at 10kB instead of 1kB

Send logs in bigger chunks, otherwise a Blender render can cause too many
individual requests.
This commit is contained in:
Sybren A. Stüvel 2022-05-20 13:36:16 +02:00
parent 3e5f681321
commit c4cda79ec0

View File

@ -9,7 +9,7 @@ import (
) )
// When the buffer grows beyond this many bytes, flush. // When the buffer grows beyond this many bytes, flush.
const defaultLogChunkerBufferFlushSize = 1024 const defaultLogChunkerBufferFlushSize = 10240
// When the last flush was this long ago, flush. // When the last flush was this long ago, flush.
const defaultLogChunkerFlushMaxInterval = 30 * time.Second const defaultLogChunkerFlushMaxInterval = 30 * time.Second