aboutsummaryrefslogtreecommitdiff
path: root/weed/command/server.go
diff options
context:
space:
mode:
authorzhangsong <songz.qqmail@qq.com>2021-06-30 17:28:37 +0800
committerzhangsong <songz.qqmail@qq.com>2021-06-30 17:28:37 +0800
commit7566782c2e172408bbbfd32bb5c3b505bfd8d5e1 (patch)
tree14a84954ec03ccb430cafe8b21b959478ba32719 /weed/command/server.go
parente9eb15e56ae1a6df23df38e195c3d702e6f48e03 (diff)
downloadseaweedfs-7566782c2e172408bbbfd32bb5c3b505bfd8d5e1.tar.xz
seaweedfs-7566782c2e172408bbbfd32bb5c3b505bfd8d5e1.zip
add proxy mode to read non-local volumes
Diffstat (limited to 'weed/command/server.go')
-rw-r--r--weed/command/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/server.go b/weed/command/server.go
index d2bd6466e..a4050aa51 100644
--- a/weed/command/server.go
+++ b/weed/command/server.go
@@ -107,7 +107,7 @@ func init() {
serverOptions.v.indexType = cmdServer.Flag.String("volume.index", "memory", "Choose [memory|leveldb|leveldbMedium|leveldbLarge] mode for memory~performance balance.")
serverOptions.v.diskType = cmdServer.Flag.String("volume.disk", "", "[hdd|ssd|<tag>] hard drive or solid state drive or any tag")
serverOptions.v.fixJpgOrientation = cmdServer.Flag.Bool("volume.images.fix.orientation", false, "Adjust jpg orientation when uploading.")
- serverOptions.v.readRedirect = cmdServer.Flag.Bool("volume.read.redirect", true, "Redirect moved or non-local volumes.")
+ serverOptions.v.readMode = cmdServer.Flag.String("volume.readMode", "redirect", "[local|remote|redirect] how to deal with non-local volume: 'not found|read in remote node|redirect volume location'.")
serverOptions.v.compactionMBPerSecond = cmdServer.Flag.Int("volume.compactionMBps", 0, "limit compaction speed in mega bytes per second")
serverOptions.v.fileSizeLimitMB = cmdServer.Flag.Int("volume.fileSizeLimitMB", 256, "limit file size to avoid out of memory")
serverOptions.v.concurrentUploadLimitMB = cmdServer.Flag.Int("volume.concurrentUploadLimitMB", 64, "limit total concurrent upload size")