From c1c73b0a5ddea90d58dcb3c2cfc7cbffd37a524e Mon Sep 17 00:00:00 2001 From: pingqiu Date: Sun, 8 Feb 2026 11:34:47 -0800 Subject: [PATCH] feat(server): wire -volume.uds.listen flag into weed server command Allows `weed server -volume.uds.listen=/tmp/sra-volume.sock` for all-in-one deployments instead of requiring separate weed volume process. Co-Authored-By: Claude Opus 4.6 --- weed/command/server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weed/command/server.go b/weed/command/server.go index 5d480070b..52a30b3d1 100644 --- a/weed/command/server.go +++ b/weed/command/server.go @@ -152,6 +152,8 @@ func init() { serverOptions.v.inflightUploadDataTimeout = cmdServer.Flag.Duration("volume.inflightUploadDataTimeout", 60*time.Second, "inflight upload data wait timeout of volume servers") serverOptions.v.inflightDownloadDataTimeout = cmdServer.Flag.Duration("volume.inflightDownloadDataTimeout", 60*time.Second, "inflight download data wait timeout of volume servers") + serverOptions.v.udsListen = cmdServer.Flag.String("volume.uds.listen", "", "Unix domain socket path for RDMA sidecar locate API (e.g., /tmp/sra-volume.sock)") + serverOptions.v.hasSlowRead = cmdServer.Flag.Bool("volume.hasSlowRead", true, " if true, this prevents slow reads from blocking other requests, but large file read P99 latency will increase.") serverOptions.v.readBufferSizeMB = cmdServer.Flag.Int("volume.readBufferSizeMB", 4, " larger values can optimize query performance but will increase some memory usage,Use with hasSlowRead normally")