diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-03-28 14:07:16 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-03-28 14:07:16 -0700 |
| commit | a75d50bbb81998731cc36b8299cbb3254421f27a (patch) | |
| tree | 9b3e734157e19cba67696490a983a6e2ed218383 /weed/command/mount.go | |
| parent | 826bc0b7e3b5eb0717c179987a32e3290e773527 (diff) | |
| download | seaweedfs-a75d50bbb81998731cc36b8299cbb3254421f27a.tar.xz seaweedfs-a75d50bbb81998731cc36b8299cbb3254421f27a.zip | |
FUSE: add configurable in memory chunk cache size
Diffstat (limited to 'weed/command/mount.go')
| -rw-r--r-- | weed/command/mount.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/command/mount.go b/weed/command/mount.go index d4a4ba746..adf384a6f 100644 --- a/weed/command/mount.go +++ b/weed/command/mount.go @@ -9,6 +9,7 @@ type MountOptions struct { replication *string ttlSec *int chunkSizeLimitMB *int + chunkCacheCountLimit *int64 dataCenter *string allowOthers *bool umaskString *string @@ -32,6 +33,7 @@ func init() { mountOptions.replication = cmdMount.Flag.String("replication", "", "replication(e.g. 000, 001) to create to files. If empty, let filer decide.") mountOptions.ttlSec = cmdMount.Flag.Int("ttl", 0, "file ttl in seconds") mountOptions.chunkSizeLimitMB = cmdMount.Flag.Int("chunkSizeLimitMB", 4, "local write buffer size, also chunk large files") + mountOptions.chunkCacheCountLimit = cmdMount.Flag.Int64("chunkCacheCountLimit", 1000, "number of file chunks to cache in memory") mountOptions.dataCenter = cmdMount.Flag.String("dataCenter", "", "prefer to write to the data center") mountOptions.allowOthers = cmdMount.Flag.Bool("allowOthers", true, "allows other users to access the file system") mountOptions.umaskString = cmdMount.Flag.String("umask", "022", "octal umask, e.g., 022, 0111") |
