SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
filer: widen metadata-subscription readahead buffers (#11237)
Chris Lu723f473f02bb
diff --git a/weed/filer/filer_notify.go b/weed/filer/filer_notify.goindex 730a462260..e75bc632b3 100644--- a/weed/filer/filer_notify.go+++ b/weed/filer/filer_notify.go@@ -375,7 +375,7 @@ func (f *Filer) ReadPersistedLogBuffer(ctx context.Context, startPosition log_bu// Readahead: run the visitor in a background goroutine so volume server I/O// for the next log file overlaps with event processing and gRPC delivery.- const readaheadSize = 1024+ const readaheadSize = 8192type entryOrErr struct {entry *filer_pb.LogEntryerr errordiff --git a/weed/pb/filer_pb_direct_read.go b/weed/pb/filer_pb_direct_read.goindex ab9b58f302..f536b93a14 100644--- a/weed/pb/filer_pb_direct_read.go+++ b/weed/pb/filer_pb_direct_read.go@@ -19,7 +19,7 @@ import (type LogFileReaderFn func(chunks []*filer_pb.FileChunk) (io.ReadCloser, error)// logEntryChannelSize bounds decoded entries in flight per filer stream.-const logEntryChannelSize = 512+const logEntryChannelSize = 4096// maxLogEntrySize guards the per-entry allocation against a corrupt size// prefix, mirroring the filer package's unexported constant.