diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-01-09 22:53:37 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-01-09 22:53:37 -0800 |
| commit | d3d3f2fb9b2be9393fd84c89d1b25cb5cbbd2396 (patch) | |
| tree | e8cfb47f15ba848eaf0a24fa282c39ed5e4824b5 /weed/command/mount.go | |
| parent | e9ccc0a6c5428128ce5b128ba43543205dbbd12f (diff) | |
| download | seaweedfs-d3d3f2fb9b2be9393fd84c89d1b25cb5cbbd2396.tar.xz seaweedfs-d3d3f2fb9b2be9393fd84c89d1b25cb5cbbd2396.zip | |
mount: default to 128 concurrent writers
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 f325cb0a5..fa75919aa 100644 --- a/weed/command/mount.go +++ b/weed/command/mount.go @@ -43,7 +43,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", 2, "local write buffer size, also chunk large files") - mountOptions.concurrentWriters = cmdMount.Flag.Int("concurrentWriters", 0, "limit concurrent goroutine writers if not 0") + mountOptions.concurrentWriters = cmdMount.Flag.Int("concurrentWriters", 128, "limit concurrent goroutine writers if not 0") 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") |
