.. _envoy_api_file_envoy/config/cluster/redis/redis_cluster.proto: Redis Cluster Configuration =========================== .. _extension_envoy.clusters.redis: This extension may be referenced by the qualified name *envoy.clusters.redis* .. note:: This extension is not hardened and should only be used in deployments where both the downstream and upstream are trusted. This cluster adds support for `Redis Cluster `_, as part of :ref:`Envoy's support for Redis Cluster `. Redis Cluster is an extension of Redis which supports sharding and high availability (where a shard that loses its master fails over to a replica, and designates it as the new master). However, as there is no unified frontend or proxy service in front of Redis Cluster, the client (in this case Envoy) must locally maintain the state of the Redis Cluster, specifically the topology. A random node in the cluster is queried for the topology using the `CLUSTER SLOTS command `_. This result is then stored locally, and updated at user-configured intervals. Additionally, if :ref:`enable_redirection` is true, then moved and ask redirection errors from upstream servers will trigger a topology refresh when they exceed a user-configured error threshold. Example: .. code-block:: yaml name: name connect_timeout: 0.25s dns_lookup_family: V4_ONLY hosts: - socket_address: address: foo.bar.com port_value: 22120 cluster_type: name: envoy.clusters.redis typed_config: "@type": type.googleapis.com/google.protobuf.Struct value: cluster_refresh_rate: 30s cluster_refresh_timeout: 0.5s redirect_refresh_interval: 10s redirect_refresh_threshold: 10 .. _envoy_api_msg_config.cluster.redis.RedisClusterConfig: config.cluster.redis.RedisClusterConfig --------------------------------------- `[config.cluster.redis.RedisClusterConfig proto] `_ .. code-block:: json { "cluster_refresh_rate": "{...}", "cluster_refresh_timeout": "{...}", "redirect_refresh_interval": "{...}", "redirect_refresh_threshold": "{...}", "failure_refresh_threshold": "...", "host_degraded_refresh_threshold": "..." } .. _envoy_api_field_config.cluster.redis.RedisClusterConfig.cluster_refresh_rate: cluster_refresh_rate (`Duration `_) Interval between successive topology refresh requests. If not set, this defaults to 5s. .. _envoy_api_field_config.cluster.redis.RedisClusterConfig.cluster_refresh_timeout: cluster_refresh_timeout (`Duration `_) Timeout for topology refresh request. If not set, this defaults to 3s. .. _envoy_api_field_config.cluster.redis.RedisClusterConfig.redirect_refresh_interval: redirect_refresh_interval (`Duration `_) The minimum interval that must pass after triggering a topology refresh request before a new request can possibly be triggered again. Any errors received during one of these time intervals are ignored. If not set, this defaults to 5s. .. _envoy_api_field_config.cluster.redis.RedisClusterConfig.redirect_refresh_threshold: redirect_refresh_threshold (`UInt32Value `_) The number of redirection errors that must be received before triggering a topology refresh request. If not set, this defaults to 5. If this is set to 0, topology refresh after redirect is disabled. .. _envoy_api_field_config.cluster.redis.RedisClusterConfig.failure_refresh_threshold: failure_refresh_threshold (`uint32 `_) The number of failures that must be received before triggering a topology refresh request. If not set, this defaults to 0, which disables the topology refresh due to failure. .. _envoy_api_field_config.cluster.redis.RedisClusterConfig.host_degraded_refresh_threshold: host_degraded_refresh_threshold (`uint32 `_) The number of hosts became degraded or unhealthy before triggering a topology refresh request. If not set, this defaults to 0, which disables the topology refresh due to degraded or unhealthy host.