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
make tcp optional
Chris Lu60686a0bb7fe
diff --git a/weed/command/server.go b/weed/command/server.goindex 64321b4d71..a398024121 100644--- a/weed/command/server.go+++ b/weed/command/server.go@@ -111,6 +111,7 @@ func init() {serverOptions.v.preStopSeconds = cmdServer.Flag.Int("volume.preStopSeconds", 10, "number of seconds between stop send heartbeats and stop volume server")serverOptions.v.pprof = cmdServer.Flag.Bool("volume.pprof", false, "enable pprof http handlers. precludes --memprofile and --cpuprofile")serverOptions.v.idxFolder = cmdServer.Flag.String("volume.dir.idx", "", "directory to store .idx files")+ serverOptions.v.enableTcp = cmdServer.Flag.Bool("volume.tcp", false, "<exprimental> enable tcp port")s3Options.port = cmdServer.Flag.Int("s3.port", 8333, "s3 server http listen port")s3Options.domainName = cmdServer.Flag.String("s3.domainName", "", "suffix of the host name in comma separated list, {bucket}.{domainName}")diff --git a/weed/command/volume.go b/weed/command/volume.goindex cf162a732d..f49ece9dc8 100644--- a/weed/command/volume.go+++ b/weed/command/volume.go@@ -62,6 +62,7 @@ type VolumeServerOptions struct {preStopSeconds *intmetricsHttpPort *int// pulseSeconds *int+ enableTcp *bool}func init() {@@ -88,6 +89,7 @@ func init() {v.pprof = cmdVolume.Flag.Bool("pprof", false, "enable pprof http handlers. precludes --memprofile and --cpuprofile")v.metricsHttpPort = cmdVolume.Flag.Int("metricsPort", 0, "Prometheus metrics listen port")v.idxFolder = cmdVolume.Flag.String("dir.idx", "", "directory to store .idx files")+ v.enableTcp = cmdVolume.Flag.Bool("tcp", false, "<exprimental> enable tcp port")}var cmdVolume = &Command{@@ -252,7 +254,9 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v}// starting tcp server- go v.startTcpService(volumeServer)+ if *v.enableTcp {+ go v.startTcpService(volumeServer)+ }// starting the cluster http serverclusterHttpServer := v.startClusterHttpService(volumeMux)