Reputation: 25
I'm experiencing random data loss in my Redis cluster setup. Here's a detailed breakdown of the scenario:
environment.clusterMode
? new Redis.Cluster(
[
{
host: environment.redisCluster.clusterHost,
port: parseInt(environment.redisCluster.clusterPort),
},
],
{
redisOptions: {
username: environment.redisCluster.clusterUsername,
password: environment.redisCluster.clusterPassword,
},
maxRedirections: 300,
retryDelayOnFailover: 300,
},
)
: new Redis({
host: environment.redisHost,
port: parseInt(environment.redisPort),
})
Any insights or suggestions would be greatly appreciated!
Upvotes: 0
Views: 40