aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2025-03-28 11:27:39 -0700
committerGitHub <noreply@github.com>2025-03-28 11:27:39 -0700
commit669a3917af5afafbe12586e8ff2007980d0ab77d (patch)
tree21bd246fae4994d13d11f024eeee3dd1619d0f01
parent9d8b975ff99938149a45d39b6afedf8d132fdf49 (diff)
downloadseaweedfs-669a3917af5afafbe12586e8ff2007980d0ab77d.tar.xz
seaweedfs-669a3917af5afafbe12586e8ff2007980d0ab77d.zip
add lua redis store to ensure atomicity (#6671)
-rw-r--r--weed/command/scaffold/filer.toml35
1 files changed, 35 insertions, 0 deletions
diff --git a/weed/command/scaffold/filer.toml b/weed/command/scaffold/filer.toml
index 236e64e09..a85f4c257 100644
--- a/weed/command/scaffold/filer.toml
+++ b/weed/command/scaffold/filer.toml
@@ -200,6 +200,41 @@ routeByLatency = false
# This changes the data layout. Only add new directories. Removing/Updating will cause data loss.
superLargeDirectories = []
+# The following lua redis stores uses lua to ensure atomicity
+[redis_lua]
+enabled = false
+address = "localhost:6379"
+password = ""
+database = 0
+# This changes the data layout. Only add new directories. Removing/Updating will cause data loss.
+superLargeDirectories = []
+
+[redis_lua_sentinel]
+enabled = false
+addresses = ["172.22.12.7:26379","172.22.12.8:26379","172.22.12.9:26379"]
+masterName = "master"
+username = ""
+password = ""
+database = 0
+
+[redis_lua_cluster]
+enabled = false
+addresses = [
+ "localhost:30001",
+ "localhost:30002",
+ "localhost:30003",
+ "localhost:30004",
+ "localhost:30005",
+ "localhost:30006",
+]
+password = ""
+# allows reads from slave servers or the master, but all writes still go to the master
+readOnly = false
+# automatically use the closest Redis server for reads
+routeByLatency = false
+# This changes the data layout. Only add new directories. Removing/Updating will cause data loss.
+superLargeDirectories = []
+
[etcd]
enabled = false
servers = "localhost:2379"