in opensips cachedb_redis module, i found a little problem, there is set the cachedb_redis slots to 4095 (0x0FFF) in cachedb_redis_utils.c in line:
92: return crc16(key->s,key->len) & 0x0FFF;
But if the cluster has different total slots, like Salvatore do now : http://redis.io/topics/cluster-spec
this calculation will fail.
I made this little patch who "detects" the number off asigned slots and set them.
I tested for cluster with 4095 slot and other cluster with 16383 slots and it work ok.
Log in to post a comment.