Skip to content

Transient connection failures on Azure Redis instance #1149

@MatanShabtay

Description

@MatanShabtay

Hi,

We've been using StackExchange.Redis version 1.2.6 NuGet to communicate with our Azure instance for the last year. As we suffered from a lot of transient connection failures, we recently decided to upgrade the StackExchange.Redis NuGet version to 2.0.601 as it promised to be provide more network stabillity.

However, we are now getting a new type of transient errors, some of the errors I've collected are:

  1. StackExchange.Redis.RedisConnectionException: UnableToConnect
  2. StackExchange.Redis.RedisConnectionException: Failed to write ---> StackExchange.Redis.RedisConnectionException: No connection is available to service this operation: SET
    3.StackExchange.Redis.RedisConnectionException: SocketFailure on redis.server.dns

Our connection string contains the following configuration:

  1. abortConnect=false
  2. ssl=true

Our Cloud Service communicates with 2 different Azure Redis instances (each one different purposes) and both of them have the same issues.
Both Redis servers are not heavily utilized.

Can someone advise how can we overcome this transient errors except adding retry logic ?
Does anyone else suffers from the same issues?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions