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
rename to localWrite and replicatedWrite
Konstantin Lebedev0a5d3c3cf655
diff --git a/weed/topology/store_replicate.go b/weed/topology/store_replicate.goindex 578cf758da..1a26becbb2 100644--- a/weed/topology/store_replicate.go+++ b/weed/topology/store_replicate.go@@ -46,7 +46,7 @@ func ReplicatedWrite(masterFn operation.GetMasterFn, grpcDialOption grpc.DialOptif s.GetVolume(volumeId) != nil {start := time.Now()isUnchanged, err = s.WriteVolumeNeedle(volumeId, n, true, fsync)- stats.VolumeServerRequestHistogram.WithLabelValues("write").Observe(time.Since(start).Seconds())+ stats.VolumeServerRequestHistogram.WithLabelValues("localWrite").Observe(time.Since(start).Seconds())if err != nil {stats.VolumeServerRequestCounter.WithLabelValues(stats.ErrorWriteToLocalDisk).Inc()err = fmt.Errorf("failed to write to local disk: %v", err)@@ -102,7 +102,7 @@ func ReplicatedWrite(masterFn operation.GetMasterFn, grpcDialOption grpc.DialOpt_, err := operation.UploadData(n.Data, uploadOption)return err})- stats.VolumeServerRequestHistogram.WithLabelValues("replicate").Observe(time.Since(start).Seconds())+ stats.VolumeServerRequestHistogram.WithLabelValues("replicatedWrite").Observe(time.Since(start).Seconds())if err != nil {stats.VolumeServerRequestCounter.WithLabelValues(stats.ErrorWriteToReplicas).Inc()err = fmt.Errorf("failed to write to replicas for volume %d: %v", volumeId, err)