feat: Allow cache reading from replicas

This commit is contained in:
Sam Toxopeus
2026-07-23 13:03:57 +02:00
parent 1c98c70f14
commit ad7596ff85
4 changed files with 62 additions and 28 deletions
+9 -2
View File
@@ -444,7 +444,11 @@ make run
- RedisCacheHost
- string
- default: "redis:6379"
- hostname and port for the Redis service
- hostname and port for the Redis write host (primary)
- RedisCacheReadHosts
- []string
- default: []
- List of Redis replica hostnames (host:port) to use for read operations. Reads are distributed round-robin across replicas. Falls back to RedisCacheHost when empty.
- RedisCachePassword
- string
- default: ""
@@ -640,7 +644,10 @@ http:
forwardedHeadersCustomName: X-Custom-Header
remediationHeadersCustomName: cs-remediation
redisCacheEnabled: false
redisCacheHost: "redis:6379"
redisCacheHost: "redis-primary:6379"
redisCacheReadHosts:
- "redis-replica-1:6379"
- "redis-replica-2:6379"
redisCachePassword: password
redisCacheDatabase: "5"
redisCacheUnreachableBlock: true