How to connect to azure managed redis with server port instated of specifying node ports

Tech Support 0 Reputation points
2025-04-08T17:48:10.31+00:00

Hello,

We are trying to connect to a azure managed redis instance via a java application with redisson library.

We are able to connect to the cluster by explicitly mentioning the cluster node ports but as mentioned in you documentation the node ports are dynamic and can change any time.

So the question is how do we connect to the server with its standard port 10000 without providing the the individual node ports in the configuration.
Also if we choose to provide node ports the question is when does azure update the ports for the nodes is it just during scaling or the service restart or it can happen anytime ?

This is how our current cluster configuration files looks:

clusterServersConfig:

nodeAddresses:

- "redis://test-managed-redis.westus2.redis.azure.net:8502"

- "redis://test-managed-redis.westus2.redis.azure.net:8503"

dnsMonitoringInterval: 10000

idleConnectionTimeout: 1000

readMode: "MASTER"

checkSlotsCoverage: false

timeout: 15000

retryAttempts: 3

retryInterval: 2000

pingConnectionInterval: 5000

` password: "

Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
291 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ravibanger 0 Reputation points
    2025-04-15T04:30:08.2533333+00:00

    Hello Pravallika Kothaveeranna Gari and Sai Raghunadh M

    The original question of connecting to managed redis with 10000 port was resolved. That you could have seen with my follow up answer above. But the follow up question was about being not able to connect with 3.45.0 version but was able to connect with 3.37.0 version.

    Also you are saying that Azure Managed Redis we should not use with Redisson with Redis cluster and are having connectivity issues. Is the issue similar with Azure Cache also? (We assume that Azure Managed Redis and Azure Cache for Redis are 2 different product offerings)


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.