diff --git a/changes/22791-redis-default-follow-redirect b/changes/22791-redis-default-follow-redirect new file mode 100644 index 0000000000..0a4a6b1a47 --- /dev/null +++ b/changes/22791-redis-default-follow-redirect @@ -0,0 +1 @@ +- Enabled redis cluster follow redierctions by default diff --git a/docs/Configuration/fleet-server-configuration.md b/docs/Configuration/fleet-server-configuration.md index e37cebc2fe..47a371bf0b 100644 --- a/docs/Configuration/fleet-server-configuration.md +++ b/docs/Configuration/fleet-server-configuration.md @@ -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 diff --git a/server/config/config.go b/server/config/config.go index 42cd7e1faa..bac17f1264 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -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")