A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/azure/azure-cache-for-redis/cache-troubleshoot-connectivity below:

Troubleshoot connectivity - Azure Cache for Redis

This article explains how to troubleshoot common issues with connecting your client application to Azure Cache for Redis. Connectivity issues might be caused by intermittent conditions, or by incorrect cache configuration. This article is divided into intermittent issues and cache configuration issues.

Intermittent connectivity issues

Cache configuration connectivity issues

Test connectivity

You can test connectivity by using the Redis command line tool redis-cli. For more information on Redis CLI, see Use the Redis command-line tool with Azure Cache for Redis.

If redis-cli is unable to connect, you can test connectivity by using PSPING in Azure PowerShell.

psping -q <cachename>:<port>

If the number of sent packets is equal to the number of received packets, there's no drop in connectivity.

Intermittent connectivity issues

Your client application might have intermittent connectivity issues caused by spikes in the number of connections or by events such as patching.

Kubernetes hosted applications

If your client application is hosted on Kubernetes, check whether the cluster nodes or the pod running the client application are under memory, CPU, or network pressure. A pod running the client application can be affected by other pods running on the same node and might throttle Redis connections or IO operations.

If you're using Istio or any other service mesh, make sure that your service mesh proxy reserves ports 13000-13019 or 15000-15019. Clients use these ports to communicate with nodes in a clustered Azure Redis cache, and could cause connectivity issues on those ports.

Linux-based client application

Using optimistic TCP settings in Linux might cause connectivity issues for client applications. For more information, see TCP settings for Linux-hosted client applications and Connection stalls lasting for 15 minutes.

Number of connected clients

Check if the Max aggregate for the Connected Clients metric is close to or higher than the maximum number of allowed connections for your cache size. For more information on sizing per client connections, see Azure Cache for Redis performance.

Server maintenance

Your cache might undergo planned or unplanned server maintenance that negatively affects your application during the maintenance window. You can verify this issue by checking the Errors (Type: Failover) metric on your cache in the Azure portal. To minimize the effects of failovers, see Connection resilience.

Connectivity configuration issues

If your application can't connect to your Azure Redis cache at all, some cache configuration might not be set up correctly. The following sections offer suggestions on how to make sure your cache is configured correctly.

Firewall rules

If you have a firewall configured for your Azure Redis cache, ensure that your client IP address is added to the firewall rules. To check the firewall rules, select Firewall under Settings in the left navigation menu for your cache page.

Third-party firewall or external proxy

If you use a third-party firewall or proxy in your network, make sure it allows the Azure Cache for Redis endpoint *.redis.cache.windows.net and the ports 6379 and 6380. You might need to allow more ports when you use a clustered cache or geo-replication.

Private endpoint configuration

In the Azure portal, check your private endpoint configuration by selecting Private Endpoint under Settings in the left navigation menu for your cache.

Public IP address change

If you configure any networking or security resource to use your cache's public IP address, check to see whether your cache's public IP address changed. For more information, see Rely on hostname not public IP address.

Virtual network configuration

Check your virtual network configuration as follows:

For more information, see Configure virtual network support for a Premium Azure Cache for Redis instance.

Geo-replication using VNet injection with Premium caches

Geo-replication between caches in the same virtual network is supported. Geo-replication between caches in different virtual networks is supported with the following caveats:

To configure your virtual network effectively and avoid geo-replication issues, you must configure both the inbound and outbound ports correctly. For more information on avoiding the most common virtual network misconfiguration issues, see Geo-replication peer port requirements.

While it's possible to use virtual network injection with Premium caches, it's preferable to use Azure Private Link. For more information, see:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4