Going for a cluster

27 views
Skip to first unread message

Oscar Besga

unread,
Dec 3, 2021, 8:40:21 AM12/3/21
to Jedis
Hi all !

I'm planning to migrate from a redis-sentinel servers to a clustered one.
Our keys have the format  
pool:charge:{id.XXXXXX} 
so I do not expect problems for this side.

But one operations rely on a complete SCAN for all the keys with the pattern
 pool:charge:{id.*}
and I think this will not work in a cluster

Here I found some code that might work
(spanish)

Basically, iterate for every node doing the SCAN operation there and aggregating results.

What do you think of this code ?

Tks !


Reply all
Reply to author
Forward
0 new messages