aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-04-04 23:14:32 -0700
committerChris Lu <chris.lu@gmail.com>2019-04-04 23:14:32 -0700
commit4f714cef22cc738d550a338c8009a76db8d55cfc (patch)
tree563574c3a68131c6b4483ab06ca6c9fc864df1f5
parentc94823f52c7dbcbc2f9ffc887bcafe0f29ed572d (diff)
downloadseaweedfs-4f714cef22cc738d550a338c8009a76db8d55cfc.tar.xz
seaweedfs-4f714cef22cc738d550a338c8009a76db8d55cfc.zip
default weed filer.copy and weed upload chunk size to 32MB
-rw-r--r--weed/command/filer_copy.go2
-rw-r--r--weed/command/upload.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go
index dd763974c..6750617db 100644
--- a/weed/command/filer_copy.go
+++ b/weed/command/filer_copy.go
@@ -47,7 +47,7 @@ func init() {
copy.replication = cmdCopy.Flag.String("replication", "", "replication type")
copy.collection = cmdCopy.Flag.String("collection", "", "optional collection name")
copy.ttl = cmdCopy.Flag.String("ttl", "", "time to live, e.g.: 1m, 1h, 1d, 1M, 1y")
- copy.maxMB = cmdCopy.Flag.Int("maxMB", 0, "split files larger than the limit")
+ copy.maxMB = cmdCopy.Flag.Int("maxMB", 32, "split files larger than the limit")
copy.filerGrpcPort = cmdCopy.Flag.Int("filer.port.grpc", 0, "filer grpc server listen port, default to filer port + 10000")
}
diff --git a/weed/command/upload.go b/weed/command/upload.go
index 80fc635c1..1271725ba 100644
--- a/weed/command/upload.go
+++ b/weed/command/upload.go
@@ -37,7 +37,7 @@ func init() {
upload.collection = cmdUpload.Flag.String("collection", "", "optional collection name")
upload.dataCenter = cmdUpload.Flag.String("dataCenter", "", "optional data center name")
upload.ttl = cmdUpload.Flag.String("ttl", "", "time to live, e.g.: 1m, 1h, 1d, 1M, 1y")
- upload.maxMB = cmdUpload.Flag.Int("maxMB", 0, "split files larger than the limit")
+ upload.maxMB = cmdUpload.Flag.Int("maxMB", 32, "split files larger than the limit")
}
var cmdUpload = &Command{