aboutsummaryrefslogtreecommitdiff
path: root/weed/util/log_buffer/log_buffer.go
diff options
context:
space:
mode:
authorBruce <half-life@jibudata.com>2024-10-31 23:40:05 +0800
committerGitHub <noreply@github.com>2024-10-31 08:40:05 -0700
commit0060a2cf9ca25f89a252538bf6ca5ac62e6aa65a (patch)
tree167b1596f2f66a9ba0f2a54800f196446da4ae84 /weed/util/log_buffer/log_buffer.go
parentc29c912bdccd60a4de11c382cdab1819197216e6 (diff)
downloadseaweedfs-0060a2cf9ca25f89a252538bf6ca5ac62e6aa65a.tar.xz
seaweedfs-0060a2cf9ca25f89a252538bf6ca5ac62e6aa65a.zip
Fix 6181/6182 (#6183)
* set larger buf size for LogBuffer * jump to next day when no more entry found * Update weed/filer/filer_notify_read.go --------- Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
Diffstat (limited to 'weed/util/log_buffer/log_buffer.go')
-rw-r--r--weed/util/log_buffer/log_buffer.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/util/log_buffer/log_buffer.go b/weed/util/log_buffer/log_buffer.go
index efe42176e..30498f92d 100644
--- a/weed/util/log_buffer/log_buffer.go
+++ b/weed/util/log_buffer/log_buffer.go
@@ -2,7 +2,6 @@ package log_buffer
import (
"bytes"
- "github.com/seaweedfs/seaweedfs/weed/pb/mq_pb"
"sync"
"sync/atomic"
"time"
@@ -11,11 +10,12 @@ import (
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
+ "github.com/seaweedfs/seaweedfs/weed/pb/mq_pb"
"github.com/seaweedfs/seaweedfs/weed/util"
)
-const BufferSize = 4 * 1024 * 1024
-const PreviousBufferCount = 3
+const BufferSize = 8 * 1024 * 1024
+const PreviousBufferCount = 32
type dataToFlush struct {
startTime time.Time