I am trying to connect Discourse with Redis cache cluster. I have multiple nodes in my redis cluster. I get following error in log.
“CROSSSLOT Keys in request don’t hash to the same slot (Redis::CommandError)”
As per Redis guidelines:
When in cluster mode, Redis do not support multi-key operations where keys falls to the different key slots.
“Redis Cluster implements all the single key commands available in the non-distributed version of Redis. Commands performing complex multi-key operations like Set type unions or intersections are implemented as well as long as the keys all belong to the same node.”
I can see many of the redis operations in Discourse involves multi key operations. Find one such example as below. Does this mean that Discourse won’t be able to connect to redis in cluster mode? Are we limited to host Discourse with only one instance of redis in non cluster mode?
Any help would be greatly appreciated.