aboutsummaryrefslogtreecommitdiff
path: root/weed/command/mount.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-07-14 13:36:28 -0700
committerChris Lu <chris.lu@gmail.com>2018-07-14 13:36:28 -0700
commit842dab07b4e0cdf31e534b40afce5c64c19d646e (patch)
tree0c9e7d7a3df3542bdd636b081f9c5d04257052fb /weed/command/mount.go
parenta51aa4c5868d4c5165b35a3fda05419e1345bf97 (diff)
downloadseaweedfs-842dab07b4e0cdf31e534b40afce5c64c19d646e.tar.xz
seaweedfs-842dab07b4e0cdf31e534b40afce5c64c19d646e.zip
weed mount can request to prioritize to write to a data center
Diffstat (limited to 'weed/command/mount.go')
-rw-r--r--weed/command/mount.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/command/mount.go b/weed/command/mount.go
index a4ee03ac5..6a7856546 100644
--- a/weed/command/mount.go
+++ b/weed/command/mount.go
@@ -8,6 +8,7 @@ type MountOptions struct {
replication *string
ttlSec *int
chunkSizeLimitMB *int
+ dataCenter *string
}
var (
@@ -23,6 +24,7 @@ func init() {
mountOptions.replication = cmdMount.Flag.String("replication", "000", "replication to create to files")
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.dataCenter = cmdMount.Flag.String("dataCenter", "", "prefer to write to the data center")
}
var cmdMount = &Command{