question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RedisHealthIndicator failed,when add a slaver to redis cluster

See original GitHub issue

Hi,I use spring-boot-starter-data-redis to connect redis cluster. When I use command redis-trib.rb add-node --slave 127.0.0.1:7006 127.0.0.1:7000 add a slave, RedisHealthIndicator check health failed:

2017-08-11 14:58:02,899 WARN  [http-nio-10020-exec-3] org.springframework.boot.actuate.health.RedisHealthIndicator - Health check failed
java.lang.IllegalArgumentException: Node 127.0.0.1:7006 is unknown to cluster
	at org.springframework.data.redis.connection.jedis.JedisClusterConnection$JedisClusterNodeResourceProvider.getResourceForSpecificNode(JedisClusterConnection.java:4133)
	at org.springframework.data.redis.connection.jedis.JedisClusterConnection$JedisClusterNodeResourceProvider.getResourceForSpecificNode(JedisClusterConnection.java:4107)
	at org.springframework.data.redis.connection.ClusterCommandExecutor.executeCommandOnSingleNode(ClusterCommandExecutor.java:145)
	at org.springframework.data.redis.connection.ClusterCommandExecutor.executeCommandOnSingleNode(ClusterCommandExecutor.java:128)
	at org.springframework.data.redis.connection.ClusterCommandExecutor.executeCommandOnArbitraryNode(ClusterCommandExecutor.java:116)
	at org.springframework.data.redis.connection.jedis.JedisClusterConnection.clusterGetClusterInfo(JedisClusterConnection.java:3955)

application.properties:

spring.redis.cluster.nodes=localhost:7000,localhost:7001,localhost:7002
spring.redis.pool.max-wait=-1
spring.redis.pool.min-idle=8
spring.redis.pool.max-idle=100
spring.redis.pool.max-active=1000

redis cluster status

C:\redis-cluster>redis-trib.rb check 127.0.0.1:7000
>>> Performing Cluster Check (using node 127.0.0.1:7000)
M: 8950ba4f601b268a3b1a3ce2d29eeb455e05fa09 127.0.0.1:7000
   slots:0-5460 (5461 slots) master
   2 additional replica(s)
M: 9dfec9c2dc07756e96a299f7ac8f1b2324c7ad42 127.0.0.1:7001
   slots:5461-10922 (5462 slots) master
   1 additional replica(s)
S: 6c4366629841e68839b1a6c143a0cadc04c92530 127.0.0.1:7003
   slots: (0 slots) slave
   replicates 8950ba4f601b268a3b1a3ce2d29eeb455e05fa09
S: 5bfc4589811c7ee30fce574c07538dfc915f8526 127.0.0.1:7004
   slots: (0 slots) slave
   replicates 9dfec9c2dc07756e96a299f7ac8f1b2324c7ad42
M: e6ac116ccb06dba47ebb1477c2f5dfdd1b2349f5 127.0.0.1:7002
   slots:10923-16383 (5461 slots) master
   1 additional replica(s)
S: 49c8248fef51b9c22ad58868410ce3347f2eedf4 127.0.0.1:7006
   slots: (0 slots) slave
   replicates 8950ba4f601b268a3b1a3ce2d29eeb455e05fa09
S: a4bed00362d785fa46b9680a2c0a8e5aa5cdf136 127.0.0.1:7005
   slots: (0 slots) slave
   replicates e6ac116ccb06dba47ebb1477c2f5dfdd1b2349f5
[OK] All nodes agree about slots configuration.
>>> Check for open slots...
>>> Check slots coverage...
[OK] All 16384 slots covered.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
wilkinsonacommented, Aug 11, 2017

They use JIRA.

1reaction
rudcommented, Jun 17, 2019

Link to the JIRA issue, for completeness: https://jira.spring.io/browse/DATAREDIS-679

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot add values to Redis cluster - The cluster is down
I have 4 nodes, 3 are master and 1 of them is a slave. I am trying to add a ...
Read more >
Redis Cluster Introduction - Complete Guide to Redis
If a slave node is not reachable then it stops accepting requests from clients. cluster-slave-validity-factor : If a master is disconnected from the...
Read more >
Redis cluster tutorial
Redis Cluster master-slave model. In order to remain available when a subset of nodes are failing or are not able to communicate with...
Read more >
Redis cluster with cross replication | There is no magic here
Each instance is isolated because it serves a particular subset of keys in a master or slave role. The emphasis on the role...
Read more >
Redis cluster tutorial
However when the cluster is created (or at a latter time) we add a slave node ... However note that if nodes B...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found