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
fix: restore TimeToFirstByte metric for S3 GetObject operations (issue #7869) (#7870)
Chris Lu26acebdef1ff
diff --git a/weed/s3api/s3api_object_handlers.go b/weed/s3api/s3api_object_handlers.goindex 9b14951288..054a262644 100644--- a/weed/s3api/s3api_object_handlers.go+++ b/weed/s3api/s3api_object_handlers.go@@ -1028,6 +1028,9 @@ func (s3a *S3ApiServer) streamFromVolumeServers(w http.ResponseWriter, r *http.Rw.WriteHeader(http.StatusOK)}+ // Track time to first byte metric+ TimeToFirstByte(r.Method, t0, r)+// Stream directly to response with counting wrappertStreamExec := time.Now()glog.V(4).Infof("streamFromVolumeServers: starting streamFn, offset=%d, size=%d", offset, size)@@ -1236,8 +1239,13 @@ func (s3a *S3ApiServer) streamFromVolumeServersWithSSE(w http.ResponseWriter, r// Now write status code (headers are all set)if isRangeRequest {w.WriteHeader(http.StatusPartialContent)+ } else {+ w.WriteHeader(http.StatusOK)}+ // Track time to first byte metric+ TimeToFirstByte(r.Method, t0, r)+// Full Range Optimization: Use ViewFromChunks to only fetch/decrypt needed chunkstDecryptSetup := time.Now()