redis2-nginx-module icon indicating copy to clipboard operation
redis2-nginx-module copied to clipboard

support redis3 cluster how?

Open alick2011 opened this issue 9 years ago • 7 comments

test message: "MOVED 12182 127.0.0.1:6979"

alick2011 avatar Jan 26 '16 05:01 alick2011

I'm using Redis Cluster also. How may I configure it. Does it knows how to proxies itself.

Roycohen avatar Jan 28 '16 10:01 Roycohen

These clients don't have support for Cluster redirection or plentitude of other things that need to be implemented for full Redis cluster support:

  • redis-nginx-module
  • redis2-nginx-module
  • lua-resty-redis

Redis Cluster is not some magical thing that happens automatically. A lot of Redis cluster support actually needs to be done on client. Please check these also:

  • https://github.com/openresty/lua-resty-redis/issues/43
  • https://github.com/xetorthio/jedis/issues/990#issuecomment-103393965

Bad thing about Redis cluster support is that probably all the clients end up doing it differently. You are welcomed to contribute cluster support for any of the OpenResty libs.

bungle avatar Jan 28 '16 11:01 bungle

Also check other options like Codis and Twemproxy. Redis Cluster doesn't support all the Redis features, like pipelines for example.

bungle avatar Jan 28 '16 11:01 bungle

Hello,

This module still not having clustering support?. We have an high load webpage and I think that redis single nodes are not enough.

Best Regards

i2dcarrasco avatar Jan 17 '20 09:01 i2dcarrasco

Hi! I am also wondering if it's not supported yet? Thanks @bungle

vitobotta avatar Jun 06 '20 09:06 vitobotta

When can we get cluster support @bungle ?

DilLip-Chowdary-Codes avatar Jan 02 '23 06:01 DilLip-Chowdary-Codes

There is Redis cluster client for Lua (which can be used with OpenResty): https://github.com/kong/resty-redis-cluster https://github.com/steve0511/resty-redis-cluster

And there is one for Sentinels: https://github.com/ledgetech/lua-resty-redis-connector

bungle avatar Jan 17 '23 10:01 bungle