diff options
| author | chrislu <chris.lu@gmail.com> | 2022-03-07 02:00:14 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-03-07 02:00:14 -0800 |
| commit | da3d330616663e1c843514bd7a7a2c1833bf42d1 (patch) | |
| tree | 8bb184b6a49b099876f1856f68c21db594ff62cc /weed/command/server.go | |
| parent | 0cb17b45b108340033de06d71cf2fc1b891c3be8 (diff) | |
| download | seaweedfs-da3d330616663e1c843514bd7a7a2c1833bf42d1.tar.xz seaweedfs-da3d330616663e1c843514bd7a7a2c1833bf42d1.zip | |
s3 and filer transport using unix domain socket instead of tcp
Diffstat (limited to 'weed/command/server.go')
| -rw-r--r-- | weed/command/server.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/command/server.go b/weed/command/server.go index 1c0927c76..45fb80b7a 100644 --- a/weed/command/server.go +++ b/weed/command/server.go @@ -112,6 +112,7 @@ func init() { filerOptions.cipher = cmdServer.Flag.Bool("filer.encryptVolumeData", false, "encrypt data on volume servers") filerOptions.saveToFilerLimit = cmdServer.Flag.Int("filer.saveToFilerLimit", 0, "Small files smaller than this limit can be cached in filer store.") filerOptions.concurrentUploadLimitMB = cmdServer.Flag.Int("filer.concurrentUploadLimitMB", 64, "limit total concurrent upload size") + filerOptions.localSocket = cmdServer.Flag.String("filer.localSocket", "", "default to /tmp/seaweedfs-filer-<port>.sock") serverOptions.v.port = cmdServer.Flag.Int("volume.port", 8080, "volume server http listen port") serverOptions.v.portGrpc = cmdServer.Flag.Int("volume.port.grpc", 0, "volume server grpc listen port") @@ -245,6 +246,7 @@ func runServer(cmd *Command, args []string) bool { if *isStartingS3 { go func() { time.Sleep(2 * time.Second) + s3Options.localFilerSocket = filerOptions.localSocket s3Options.startS3Server() }() } |
