From f32dd72ec6af8ac7fbdce68f7913baa552fb0d2d Mon Sep 17 00:00:00 2001 From: Nicole Zhu <69952136+nicoleczhu@users.noreply.github.com> Date: Wed, 30 Jun 2021 00:02:23 +0700 Subject: [PATCH] feat(logging)!: increase DefaultEntryByteThreshold to 8Mb (#4247) Fixes: #3823 DefaultEntryByteThreshold = `1 << 20 // 1MiB` ===> `1 << 23 // 8MiB` since size of an entries.write request can be up to 10 MB. `DefaultBufferedByteLimit` is unchanged as that's more a cap on memory utilization. --- logging/logging.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logging/logging.go b/logging/logging.go index d478ac0f060..6f990f26a14 100644 --- a/logging/logging.go +++ b/logging/logging.go @@ -75,7 +75,7 @@ const ( DefaultEntryCountThreshold = 1000 // DefaultEntryByteThreshold is the default value for the EntryByteThreshold LoggerOption. - DefaultEntryByteThreshold = 1 << 20 // 1MiB + DefaultEntryByteThreshold = 1 << 23 // 8MiB // DefaultBufferedByteLimit is the default value for the BufferedByteLimit LoggerOption. DefaultBufferedByteLimit = 1 << 30 // 1GiB