Is it good to use checkSentinelsList = false when you are using cluser IP service to connect Redis ? #6772
Unanswered
royatanu94
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
@mrniko Any Suggestions please? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it good to use checkSentinelsList = false ?
As I am connecting Radisson with cluster ip service which internally holds 3 sentinel nodes, I cannot explicitly provide each sentinel node address.
I have provided
SENTINEL_ADDRESSES as rediss://sentinel.redis-ptdev2-ns.svc.cluster.local:26379 which is address of clusterip service.
If I do not set checkSentinelsList = false then i will get error
org.redisson.client.RedisConnectionException: SENTINEL SENTINELS command returns less than 2 nodes or connection can't be established to some of them! At least two sentinels should be defined in Redis configuration. Set checkSentinelsList = false to avoid this check. at org.redisson.connection.SentinelConnectionManager.doConnect(SentinelConnectionManager.java:193) at org.redisson.connection.MasterSlaveConnectionManager.connect(MasterSlaveConnectionManager.java:188) at org.redisson.connection.ConnectionManager.create(ConnectionManager.java:98) at org.redisson.Redisson.<init>(Redisson.java:76)@mrniko Any Suggestions please?
Beta Was this translation helpful? Give feedback.
All reactions