Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.05 KB

redis.md

File metadata and controls

31 lines (22 loc) · 1.05 KB

Redis persistence

The Redis persistence currently supports either a single-instance Redis instance or a Redis Cluster as a distributed key-value store.

The Redis persistence is the most tested implementation and is currently the recommended choice for production systems.

Configuration

You only need to provide the endpoint the Redis cluster is available at. Authentication is supported by providing the password in the endpoint (the username is set to an empty string).

The following configuration connects to the Redis cluster running at trino-lb-redis-cluster.trino-lb.svc.cluster.local on Port 6379 secured with the password redis.

trinoLb:
  persistence:
    redis:
      endpoint: redis://:[email protected]:6379/

Redis clusters

To turn on Redis cluster mode, you need to enable it as follows:

trinoLb:
  persistence:
    redis:
      clusterMode: true
      endpoint: redis://:[email protected]:6379/