No reachable node in cluster redis.clients.jedis.exceptions.JedisNoReachableClusterNodeException

1,958 views
Skip to first unread message

Brahim Oubrik

unread,
Jun 12, 2017, 1:03:45 PM6/12/17
to Jedis
Hi, 
I use :
redis_version:3.2.1
jedisCluster 2.9.0
i have a cluster of workers( scale dynamically) who connect to redis cluster. same time i have erreur :  No reachable node in cluster redis.clients.jedis.exceptions.JedisNoReachableClusterNodeException: No reachable node in cluster at redis.clients.jedis.JedisSlotBasedConnectionHandler.getConnection(JedisSlotBasedConnectionHandler.java:57) at redis.clients.jedis.JedisSlotBasedConnectionHandler.getConnectionFromSlot(JedisSlotBasedConnectionHandler.java:74) at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:116) at redis.clients.jedis.JedisClusterCommand.run(JedisClusterCommand.java:31) at redis.clients.jedis.JedisCluster.getSet(JedisCluster.java:284)

these my config of pool connection for jedisCluster : 


GenericObjectPoolConfig config = new GenericObjectPoolConfig();
config.setMaxIdle21);
config.setLifo(true);
config.setTestOnBorrow(true);
config.setTestOnCreate(true);
config.setTestOnReturn(false);
config.setBlockWhenExhausted(true);
config.setJmxNameBase("jedis");
//config.setMinIdle(Math.max(1, (int) (poolSize / 10))); // keep 10% hot always
config.setMinIdle(10);
config.setMaxTotal(21); // the number of Jedis connections to create
config.setTestWhileIdle(false);
config.setSoftMinEvictableIdleTimeMillis(3000L);
config.setNumTestsPerEvictionRun(5);
config.setTimeBetweenEvictionRunsMillis(5000L);

each worker have 20 thread.


Thanks! 
Reply all
Reply to author
Forward
0 new messages