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.

Does ioredis support Azure cache cluster mode?

See original GitHub issue

We are using Azure Cache in cluster mode,and we have confirmed that there is no configure issue.

Code:

const redisClient = new Redis.Cluster([
    {
        port: 6379,
        host: 'xxxxxx.redis.cache.windows.net'
    }
], {
    redisOptions: {
       password: 'xxxxx'
   }
});

and then got lots of error when run above code:

Reids occurs an error when connecting to a node ReplyError: ERR This instance has cluster support disabled
Redis init occurred error: ClusterAllFailedError: Failed to refresh slots cache.
Redis a node is disconnected

node: 10.15.0 ioredis: 4.9.5

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JeffreyCAcommented, Jun 12, 2020
0reactions
shivanshcommented, Jun 13, 2020

@JeffreyCA This works, thanks a lot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Connecting to an Azure Redis Cluster using node.js ioredis ...
Okay I've managed to connect to Azure Redis Cluster using a non-tls connection: new Redis.Cluster(['host.redis.cache.windows.net', 3679], ...
Read more >
Configure Redis clustering - Premium Azure Cache for Redis
Clustering is enabled New Azure Cache for Redis on the left during cache creation. To create a premium cache, sign in to the...
Read more >
Use JavaScript with Redis on Azure - Microsoft Learn
To create or move your Redis database to Azure, you need an Azure Cache for Redis resource.
Read more >
Quickstart: Use Azure Cache for Redis in Node.js
In this quickstart, you incorporate Azure Cache for Redis into a Node.js app to have access to a secure, dedicated cache that is...
Read more >
Best practices using client libraries - Azure Cache for Redis
Azure Cache for Redis is based on the popular open-source in-memory data ... configuration for cluster mode that you can modify as needed:....
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