I setup a Redis Cluster (ver 3.2.0) (not Sentinel) with 4 Master (each have a Slave) and a Virtual IP random point to one of 4 Master server, with IPs:
VIP: 10.0.0.10:6379 (connect to M1, M2, M3, M4)
M1: 10.0.0.1:6379 - S1: 10.0.0.5:6378
M2: 10.0.0.2:6379 - S2: 10.0.0.6:6378
M3: 10.0.0.3:6379 - S3: 10.0.0.7:6378
M4: 10.0.0.4:6379 - S4: 10.0.0.8:6378
My client use ServiceStack to connect to my cluster via VIP: 10.0.0.10:6379, but I got the error:
An exception of type 'ServiceStack.Redis.RedisResponseException' occurred in ServiceStack.Redis.dll but was not handled in user code
Additional information: MOVED 2872 10.0.0.3:6379
My current string:
<add key ="REDIS_MANAGER" value="redsAuthEnt@10.0.0.10:6379?connectTimeout=10000"/>
I think this issue because my ServiceStack string connected as Standalone Redis not Redis Cluster. It the same as we have to use "-c" with redis-cli command line.
So please help me string connect to Redis Cluster using ServiceStack client or any other solution to use Redis Cluster.
Many Thanks!