redis-store icon indicating copy to clipboard operation
redis-store copied to clipboard

Utilizing redis WAIT functionality

Open Hatched-Kyle opened this issue 5 years ago • 4 comments

Is is possible to utilize the redis WAIT command to help guarantee strong consistency across all nodes?

https://redis.io/commands/wait

Hatched-Kyle avatar Apr 06 '21 20:04 Hatched-Kyle

I suppose it would be. Were you having an issue with consistency across your replicas?

tubbo avatar Apr 07 '21 18:04 tubbo

Yeah we're noticing request coming in with expired session data. Even up to 15 seconds after we have updated that specific session. Our redis cluster consists of 4 nodes each with 1 replica.

It almost seems like the session write didn't succeed from the previous request but were not seeing anything in our logs. This is happening ~70 times a day.

Is there a flag I need to set to get more logging info?

Hatched-Kyle avatar Apr 07 '21 23:04 Hatched-Kyle

Well if anything i'd want this to be included in DistributedStore, since that's the class that handles distributed deployments of redis, and i think it handles clusters as well. There aren't any flags you can set in Redis::Store for debug logging, you'll just have to add logs in the code if you need them.

tubbo avatar May 27 '21 20:05 tubbo

@Hatched-Kyle are you potentially having the same issue as https://github.com/redis-store/redis-rack/issues/70?

tubbo avatar Nov 07 '22 03:11 tubbo