Follow redis redirects by default (#26043)
#22791 This will prevent the occasional redirect from breaking live queries. Customers can still disable the redirects by setting `redis.cluster_follow_redirections` to `false`.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
- Enabled redis cluster follow redierctions by default
|
||||
@@ -327,7 +327,7 @@ cluster is unstable and reorganizing the data. With this configuration option
|
||||
set to true, those (typically short and transient) redirection errors can be
|
||||
handled transparently instead of ending in an error.
|
||||
|
||||
- Default value: false
|
||||
- Default value: true
|
||||
- Environment variable: `FLEET_REDIS_CLUSTER_FOLLOW_REDIRECTIONS`
|
||||
- Config file format:
|
||||
```yaml
|
||||
|
||||
@@ -1006,7 +1006,7 @@ func (man Manager) addConfigs() {
|
||||
man.addConfigDuration("redis.connect_timeout", 5*time.Second, "Timeout at connection time")
|
||||
man.addConfigDuration("redis.keep_alive", 10*time.Second, "Interval between keep alive probes")
|
||||
man.addConfigInt("redis.connect_retry_attempts", 0, "Number of attempts to retry a failed connection")
|
||||
man.addConfigBool("redis.cluster_follow_redirections", false, "Automatically follow Redis Cluster redirections")
|
||||
man.addConfigBool("redis.cluster_follow_redirections", true, "Automatically follow Redis Cluster redirections")
|
||||
man.addConfigBool("redis.cluster_read_from_replica", false, "Prefer reading from a replica when possible (for Redis Cluster)")
|
||||
man.addConfigString("redis.tls_cert", "", "Redis TLS client certificate path")
|
||||
man.addConfigString("redis.tls_key", "", "Redis TLS client key path")
|
||||
|
||||
Reference in New Issue
Block a user