aboutsummaryrefslogtreecommitdiff
path: root/weed/command/scaffold.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/command/scaffold.go')
-rw-r--r--weed/command/scaffold.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/weed/command/scaffold.go b/weed/command/scaffold.go
index 3ef7ab914..a76466ed6 100644
--- a/weed/command/scaffold.go
+++ b/weed/command/scaffold.go
@@ -136,8 +136,10 @@ addresses = [
"localhost:30006",
]
password = ""
-readOnly = false
-routeByLatency = false
+// allows reads from slave servers or the master, but all writes still go to the master
+readOnly = true
+// automatically use the closest Redis server for reads
+routeByLatency = true
[etcd]
enabled = false