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
use memory chunks only for sequential writes
chrisluc24678153c92
diff --git a/weed/mount/page_writer/upload_pipeline.go b/weed/mount/page_writer/upload_pipeline.goindex f326445a36..e1aa43fe2a 100644--- a/weed/mount/page_writer/upload_pipeline.go+++ b/weed/mount/page_writer/upload_pipeline.go@@ -94,7 +94,8 @@ func (up *UploadPipeline) SaveDataAt(p []byte, off int64, isSequential bool, tsNup.moveToSealed(up.writableChunks[candidateChunkIndex], candidateChunkIndex)// fmt.Printf("flush chunk %d with %d bytes written\n", logicChunkIndex, oldestTs)}- if len(up.writableChunks) < up.writableChunkLimit &&+ if isSequential &&+ len(up.writableChunks) < up.writableChunkLimit &&atomic.LoadInt64(&memChunkCounter) < 4*int64(up.writableChunkLimit) {pageChunk = NewMemChunk(logicChunkIndex, up.ChunkSize)} else {