-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MOVED error in Redis Storage config & Elasticache #129
Comments
Using the -c param on redis-cli command line client sorts it out. It follows the MOVED redirect from the cluster.
Can we configure resty-auto-ssl to connect with "-c"? or perhaps detect the MOVED response and reconnect to the appropriate server? |
Did you have any luck resolving this? I wasn't even able to connect using a direct shard endpoint ( Edit: Looking back over, I assume this is because Elasticache is a Redis cluster and #39 confirms this isn't supported, though openresty/lua-resty-redis#102 (comment) points to a client that does handle it so perhaps that could be used instead? Is there a way to use Redis without a cluster in AWS without manually running it via EC2 in the interim? |
I'm looking into using this storage adapter: https://github.com/steve0511/resty-redis-cluster Would be great if lua-resty-auto-ssl supported it natively. Another quick solution is connecting directly to the node that is the primary read/write. Could do some hackish work arounds to detect which one it is and keep it up-to-date. Might be able to handle the MOVED response directly in the lua scripts with the current adapter?? I think using the redis-cluster adapter is more elegant. However, I'm in a bit of the same boat, no experience programming in Lua. |
I wonder if a solution has been found for this problem, or a workaround configuration for elasticache? Will it work if I create a Redis store with Number of replicas=0? Or...what's the best workaround that avoids Redis entirely? Shared EFS or EBS mount? |
Any updates on this? I've stumbled into the issue of needing a way to support a redis cluster storage backend as well. |
I was able to adapt the existing redis storage adapter to work with resty-redis-cluster. Seems to work on my local, haven't used it out in the wild or with aws elasticache redis clusters yet. |
Is lua-resty-auto-ssl compatible with aws redis elasticache?
It's all working fine with local storage, trying to trouble shoot getting a redis elasticache cluster working. Connecting with the cluster Configuration Endpoint.
The text was updated successfully, but these errors were encountered: