SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
default redis reads options
Chris Lua9b1ee18afda
diff --git a/weed/command/scaffold.go b/weed/command/scaffold.goindex 3ef7ab914a..a76466ed6d 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 = falsediff --git a/weed/filer2/redis/redis_cluster_store.go b/weed/filer2/redis/redis_cluster_store.goindex 0915be219a..f1ad4b35c4 100644--- a/weed/filer2/redis/redis_cluster_store.go+++ b/weed/filer2/redis/redis_cluster_store.go@@ -20,6 +20,9 @@ func (store *RedisClusterStore) GetName() string {func (store *RedisClusterStore) Initialize(configuration util.Configuration) (err error) {+ configuration.SetDefault("useReadOnly", true)+ configuration.SetDefault("routeByLatency", true)+return store.initialize(configuration.GetStringSlice("addresses"),configuration.GetString("password"),