Open new-biee opened 3 months ago
Hey @new-biee ,
Cannot connect Redis Sentinel at redis://127.0.0.1:26380: java.util.concurrent.CompletionException: io.lettuce.core.RedisConnectionException: Connection closed prematurely
This message indicates there are connectivity issues with the current setup you are using.
Are you able to connect to Redis with some other client, such as redis-cli
or Redis Insight
?
If you can't establish a connection successfully with another client then the issue is not in Lettuce, but in your environment.
I configured Redis Sentinel using docker-compose and used spring boot to connect to redis sentinel
Docker-compose
slave.conf
master.conf
application.yml
RedisConfig
log.txt
Please help me!