issue to connect to elasticache
See original GitHub issueHi,
I am running clustr against an AWS ElastiCache cluster (5.0 version). I have one master node and two slaves. Iam using the cluster configuration endpoint to connect to the cluster.
var client = new RedisClustr({
servers: [
{
host: 'xxxxx.jwkwkt.0001.euw1.cache.amazonaws.com'
}
]
});
It is fine to run write task, but when it run read methods like llen, get, then it hangs there.
client.llen(vkey, function (err, sum) { // it is stopped at this stage console.log(“sum…”+sum); client.set(key, JSON.stringify(i), ‘EX’, 60); // it can be run if it is not inside of llen method. });
I also tried elasticache with cluster enabled to have 3 shards and 3 replica for each. It got same issue to run read method.
Same code works when it is not cluster.
Can you guide me please?
Issue Analytics
- State:
- Created 5 years ago
- Comments:9
Top Results From Across the Web
Troubleshoot connecting to an ElastiCache for Redis cluster
Verify that the cluster is ready · Verify that the cluster is healthy · Verify network-level connectivity between the cluster and the client...
Read more >Cannot Connect To AWS Elasticache Redis Cluster From ...
I recently created a Redis cluster on AWS elasticache and am having trouble connecting via redis-cli from my local machine.
Read more >Elastic BeanStalk can't connect to ElastiCache Redis
I'm having issues connecting from Elastic BeanStalk to ElastiCache Redis. When I SSH into the EBS instance and try to use redis-cli to...
Read more >ssh - Connect remotely to ElastiCache - Redis - Server Fault
The reason you are not able to connect to Elasticache nodes is that the DNS name or the endpoint only resolves to ......
Read more >How to Connect to AWS ElastiCache Redis in Spring Boot App
Let's say you want to test some stuff on local Redis, and prepare for the AWS ElastiCache Redis. There are several problems you...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If the
fullReady
event is a requirement, why not add that check to the wrapper?Hi @wip0 @aravindgopall, you should be able to avoid this issue when connecting to an ElastiCache replication group by waiting for the
fullReady
event before running commands.fullReady
is emitted when redis-clustr has a healthy connection to all the nodes in the cluster, rather than just the configuration endpoint.