Failover for Redis Enterprise with Active-geo-Replication

Giden, Burcu 0 Reputation points
2025-03-01T10:30:50.79+00:00

using terraform I have created two redis enterprise clusters in paired regions ( West and northEurope).

xx-redis-primary in WestEurope

xx-redis-secondary in NorthEurope

And linked them together using active geo-replication... /Groupnickame xxRedisGeoGroup

now I want to trigger manual failover..

Scenario: WestEurope is unavailable

step1) Force Unlink

az redisenterprise database force-unlink \
--unlink-ids "/subscriptions/<subscriptionid>/resourceGroups/<resourcegroupname>/providers/Microsoft.Cache/redisEnterprise/
--resource-group <resourcegroupname> \
--cluster-name 

or

Invoke-AzRedisEnterpriseCacheForceDatabaseUnlink -ResourceGroupName <resourcegroupname> -ClusterName "xx-redis-primary" -Id @("/subscriptions/<subscriptionid>/resourceGroups/<resourcegroupname>/providers/Microsoft.Cache/redisEnterprise/xx-redis-secondary/databases/default")

with this step I am able to unlink west europe and north europe... what happens actually in that case? the only active one is the north europe? or both are still active however no replication in between? what is the behaviour in this case?

Step2) re-Link them

once the westeurope is available again how can I link them again.. using az redisterprise database create? if so it isnt working...or I dont understand the syntax

az redisenterprise database create \
--cluster-name xx-redis-primary
--resource-group <resourcegroupname>
--group-nickname xxRedisGeoGroup
--linked-databases "resource= \
subscriptions/<subscriptionid>/resourceGroups/<resourcegroupname>/providers/Microsoft.Cache/redisEnterprise/xx-redis-primary/databases/default.force-link" \
--linked-databases "resource= \
subscriptions/<subscriptionid>/resourceGroups/<resourcegroupname>/providers/Microsoft.Cache/redisEnterprise/xx-redis-secondary/databases/default.force-link" \
--client-protocol Encrypted \  
--clustering-policy EnterpriseCluster \
--eviction-policy AllKeysLRU \
--port 10000

or

Invoke-AzRedisEnterpriseCacheForceDatabaseLinkToReplicationGroup  -ClusterName "xx-redis-primary"  -ResourceGroupName "resourcegroupname"  -DatabaseName "default"  -GroupNickname "xxRedisGeoGroup"  -LinkedDatabase @(@{ResourceId="/subscriptions/subscriptionid/resourceGroups/resourcegroupname/providers/Microsoft.Cache/redisEnterprise/xx-redis-primary/databases/default"}, @{ResourceId="/subscriptions/
subscriptionid/resourceGroups/resourcegroupname

however it doesnt function...

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

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.