Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2204

Caused by: io.lettuce.core.RedisCommandExecutionException: MOVED 8731 172.19.122.164:6379

$
0
0

We have a spring-boot application which is deployed to tomcat contained in EC2 instance in AWS.In local I have redis setup. And in my application.yml my redis configuration look like this:

redis:  enabled: true  clusterNodes: localhost:6379  properties:    lockExpiryMillis: 3000    lockRetryAttempts: 3    lockRetryWaitMillis: 50

We were configuring it in java as shown below:

       {           RedisStandaloneConfiguration config = new RedisStandaloneConfiguration(clusterNodes.get(0).split(":")[0]);           return new LettuceConnectionFactory(config);       }       RedisClusterConfiguration config = new RedisClusterConfiguration(clusterNodes);

while my cluster load balancer url in QA is something like below:

aq************amazonaws.com:6379 which actually hides all the redis cluster.

I tested with this configuration in local......with QA url as well.

But getting the exception continously

Caused by: io.lettuce.core.RedisCommandExecutionException: MOVED 8731 172.19.122.164:6379

Note:The versions and properties are fine, since it is working in local without any exception


Viewing all articles
Browse latest Browse all 2204

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>