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.
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/
To turn on Redis cluster mode, you need to enable it as follows:
trinoLb:
persistence:
redis:
clusterMode: true
endpoint: redis://:[email protected]:6379/