steve0511 / resty-redis-cluster

Openresty lua client for redis cluster.
Apache License 2.0
376 stars 134 forks source link

rediscluster.lua:276: init_slots(): failed to create lock in initialization slot cache: dictionary not found #106

Closed matianhe3 closed 10 months ago

matianhe3 commented 1 year ago

I want use redis in http{} module and stream {} module. when i add lua_shared_dict redis_cluster_slot_locks 100k only in http {}, it can works, only in stream {}, it also works. but both in http {} and stream {} , it's show

the shared memory zone "redis_cluster_slot_locks" is already declared for a different use in

now way, i use

http { lua_shared_dict http_locks 100k; } 
stream { lua_shared_dict stream_locks 100k; } 

and change config dict_name in different situation to achieve it.

Is there other good way to sovle it ?