Redis

The Redis health checker is a custom health checker (with envoy.health_checkers.redis as name) which checks Redis upstream hosts. It sends a Redis PING command and expect a PONG response. The upstream Redis server can respond with anything other than PONG to cause an immediate active health check failure. Optionally, Envoy can perform EXISTS on a user-specified key. If the key does not exist it is considered a passing health check. This allows the user to mark a Redis instance for maintenance by setting the specified key to any value and waiting for traffic to drain.

An example setting for custom_health_check as a Redis health checker is shown below:

  1. custom_health_check:
  2. name: envoy.health_checkers.redis
  3. typed_config:
  4. "@type": type.googleapis.com/envoy.config.filter.network.redis_proxy.v2.RedisProxy
  5. key: foo