diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-07-14 13:36:28 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-07-14 13:36:28 -0700 |
| commit | 842dab07b4e0cdf31e534b40afce5c64c19d646e (patch) | |
| tree | 0c9e7d7a3df3542bdd636b081f9c5d04257052fb /weed/command | |
| parent | a51aa4c5868d4c5165b35a3fda05419e1345bf97 (diff) | |
| download | seaweedfs-842dab07b4e0cdf31e534b40afce5c64c19d646e.tar.xz seaweedfs-842dab07b4e0cdf31e534b40afce5c64c19d646e.zip | |
weed mount can request to prioritize to write to a data center
Diffstat (limited to 'weed/command')
| -rw-r--r-- | weed/command/mount.go | 2 |
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{ |
