aboutsummaryrefslogtreecommitdiff
path: root/weed/command/server.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-12-04 22:39:43 -0800
committerChris Lu <chris.lu@gmail.com>2020-12-04 22:39:43 -0800
commit263eb29e9f6aa7aaa8b6da45244ce75f712f358e (patch)
treedb9078aa007ead36f00f055efc94cd86209198a7 /weed/command/server.go
parentd171d9f988130eb1517e6d7609dbedbae1fa58bc (diff)
downloadseaweedfs-263eb29e9f6aa7aaa8b6da45244ce75f712f358e.tar.xz
seaweedfs-263eb29e9f6aa7aaa8b6da45244ce75f712f358e.zip
filer: add option to cache small files to filer store
Diffstat (limited to 'weed/command/server.go')
-rw-r--r--weed/command/server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/command/server.go b/weed/command/server.go
index 0c6731eb2..7e63f8e8a 100644
--- a/weed/command/server.go
+++ b/weed/command/server.go
@@ -94,6 +94,7 @@ func init() {
filerOptions.dirListingLimit = cmdServer.Flag.Int("filer.dirListLimit", 1000, "limit sub dir listing size")
filerOptions.cipher = cmdServer.Flag.Bool("filer.encryptVolumeData", false, "encrypt data on volume servers")
filerOptions.peers = cmdServer.Flag.String("filer.peers", "", "all filers sharing the same filer store in comma separated ip:port list")
+ filerOptions.cacheToFilerLimit = cmdServer.Flag.Int("filer.cacheToFilerLimit", 0, "Small files smaller than this limit can be cached in filer store.")
serverOptions.v.port = cmdServer.Flag.Int("volume.port", 8080, "volume server http listen port")
serverOptions.v.publicPort = cmdServer.Flag.Int("volume.port.public", 0, "volume server public port")