diff options
| author | chrislu <chris.lu@gmail.com> | 2024-09-10 10:30:19 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-09-10 10:30:19 -0700 |
| commit | d660d5c7d47343419c2ecc50e0d6f2977673d5d0 (patch) | |
| tree | b64df3192be1d4c420aae296bf650e1d70e7c4ca /weed/command/mount.go | |
| parent | f23015ac5ba04f3b5b9f2efbadf4919f76066e79 (diff) | |
| download | seaweedfs-d660d5c7d47343419c2ecc50e0d6f2977673d5d0.tar.xz seaweedfs-d660d5c7d47343419c2ecc50e0d6f2977673d5d0.zip | |
increasing default cache size
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 bdc0638c9..594c2833e 100644 --- a/weed/command/mount.go +++ b/weed/command/mount.go @@ -57,7 +57,7 @@ func init() { mountOptions.chunkSizeLimitMB = cmdMount.Flag.Int("chunkSizeLimitMB", 2, "local write buffer size, also chunk large files") mountOptions.concurrentWriters = cmdMount.Flag.Int("concurrentWriters", 32, "limit concurrent goroutine writers") mountOptions.cacheDirForRead = cmdMount.Flag.String("cacheDir", os.TempDir(), "local cache directory for file chunks and meta data") - mountOptions.cacheSizeMBForRead = cmdMount.Flag.Int64("cacheCapacityMB", 0, "file chunk read cache capacity in MB") + mountOptions.cacheSizeMBForRead = cmdMount.Flag.Int64("cacheCapacityMB", 128, "file chunk read cache capacity in MB") mountOptions.cacheDirForWrite = cmdMount.Flag.String("cacheDirWrite", "", "buffer writes mostly for large files") 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") |
