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.

issue to connect to elasticache

See original GitHub issue

Hi,

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:open
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

3reactions
larryboymicommented, Sep 16, 2019

If the fullReady event is a requirement, why not add that check to the wrapper?

2reactions
simontaborcommented, Apr 26, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

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