aboutsummaryrefslogtreecommitdiff
path: root/weed/command/scaffold.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2020-04-01 16:48:58 -0700
committerGitHub <noreply@github.com>2020-04-01 16:48:58 -0700
commitc446438ca5360b8e479e77dd0da32a80bd5644d6 (patch)
tree9f984e23068124d2e37f465728fe82426f50c9aa /weed/command/scaffold.go
parentd61bb60450e8fabc5c5961874fe2e69afa0200ec (diff)
parenteae3f27c8021ef1903419de43c68d2dc62a09953 (diff)
downloadseaweedfs-c446438ca5360b8e479e77dd0da32a80bd5644d6.tar.xz
seaweedfs-c446438ca5360b8e479e77dd0da32a80bd5644d6.zip
Merge pull request #1255 from levenlabs/ignore
Added treat_replication_as_minimums master toml option
Diffstat (limited to 'weed/command/scaffold.go')
-rw-r--r--weed/command/scaffold.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/weed/command/scaffold.go b/weed/command/scaffold.go
index 9f119a638..e391c23ea 100644
--- a/weed/command/scaffold.go
+++ b/weed/command/scaffold.go
@@ -394,5 +394,13 @@ copy_2 = 6 # create 2 x 6 = 12 actual volumes
copy_3 = 3 # create 3 x 3 = 9 actual volumes
copy_other = 1 # create n x 1 = n actual volumes
+# configuration flags for replication
+[master.replication]
+# any replication counts should be considered minimums. If you specify 010 and
+# have 3 different racks, that's still considered writable. Writes will still
+# try to replicate to all available volumes. You should only use this option
+# if you are doing your own replication or periodic sync of volumes.
+treat_replication_as_minimums = false
+
`
)