diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-10-24 20:08:26 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-10-24 20:08:26 -0700 |
| commit | b7b1eb51b12309a12b1c16df87162bb0dbe5337b (patch) | |
| tree | ee19ae2afc2b09d67b74bd3ecd6a108f8d73e7bc /weed/command/mount.go | |
| parent | 79690b9cd8933d398b49f40275379bca0d929d3e (diff) | |
| download | seaweedfs-b7b1eb51b12309a12b1c16df87162bb0dbe5337b.tar.xz seaweedfs-b7b1eb51b12309a12b1c16df87162bb0dbe5337b.zip | |
default to 2 for better performance in common computer hardware
Diffstat (limited to 'weed/command/mount.go')
| -rw-r--r-- | weed/command/mount.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/mount.go b/weed/command/mount.go index f9700679d..7fdb21254 100644 --- a/weed/command/mount.go +++ b/weed/command/mount.go @@ -41,7 +41,7 @@ func init() { mountOptions.collection = cmdMount.Flag.String("collection", "", "collection to create the files") 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", 16, "local write buffer size, also chunk large files") + mountOptions.chunkSizeLimitMB = cmdMount.Flag.Int("chunkSizeLimitMB", 2, "local write buffer size, also chunk large files") mountOptions.cacheDir = cmdMount.Flag.String("cacheDir", os.TempDir(), "local cache directory for file chunks and meta data") mountOptions.cacheSizeMB = cmdMount.Flag.Int64("cacheCapacityMB", 1000, "local file chunk cache capacity in MB (0 will disable cache)") mountOptions.dataCenter = cmdMount.Flag.String("dataCenter", "", "prefer to write to the data center") |
