-
Notifications
You must be signed in to change notification settings - Fork 48
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
Add support for Redis Cluster #250
Conversation
hey there - how would this be tested? Are there directives you can add to tox.ini to run redis in this mode? |
Hi, I tested using one redis cluster i had laying around and it was working. EDIT: I see that it is not the first time :p #135 |
if you can get it into the tox file then we can just test on CI |
To make it work, I need to update |
Made a PR to |
wow, thanks for that effort. the pifpaf project seems kind of dead lately so hopefully someone can accept that PR. otherwise we might have to go without CI testing here for now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, this is sqla-tester setting up my work on behalf of zzzeek to try to get revision 6875e4e of this pull request into gerrit so we can run tests and reviews and stuff
New Gerrit review created for change 6875e4e: https://gerrit.sqlalchemy.org/c/sqlalchemy/dogpile.cache/+/5033 |
Seems like I have a few formatting issue to fix. I will take care of it soon |
OK, can you also add a changelog file? see a commit like 074cb77 to see an example of what this file looks like. this would be |
Will do! |
I wrote a changelog, it is a bit dry but I didn't know what more to say, and I also check the generated doc + run tox. Everything seems fine :) . Hopefully |
oh is that what he did huh. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, this is sqla-tester setting up my work on behalf of zzzeek to try to get revision d112f02 of this pull request into gerrit so we can run tests and reviews and stuff
Patchset d112f02 added to existing Gerrit review https://gerrit.sqlalchemy.org/c/sqlalchemy/dogpile.cache/+/5033 |
either way, this is a totally new backend that wont break anything, it's only a few lines of startup code, and im sure you're using it on your end so it's not too controversial to just merge it |
seem we could spin up a docker image with a redis cluster https://github.com/Grokzen/docker-redis-cluster |
If you want to test locally, you should be able to spawn a working redis cluster with the pifpaf fork I made : https://github.com/maeln/pifpaf Using the command :
|
any news on this? |
Hello! Sadly, no news on the pifpaf side of things :/ . I don't know if there is any other way forward if we want to merge it |
well we'd just merge it. you've tested this on your end in a real program right? also @CaselIT we might need to find an alternative to pifpaf, maybe home roll |
zifzaf? 😨 are there no alternative? |
Also not sure what's the state of pifpaf, but it seems it's still active, meaning there were commits to it recently (last month)
would this be an option mike? |
I would assume everyone has shell scripts that run containers these days |
Michael Bayer (zzzeek) wrote: We can't get a CI run as pifpaf does not support the backend, however this is a totally new add that does not affect any existing code so we can just merge this. View this in Gerrit at https://gerrit.sqlalchemy.org/c/sqlalchemy/dogpile.cache/+/5033 |
Gerrit review https://gerrit.sqlalchemy.org/c/sqlalchemy/dogpile.cache/+/5033 has been merged. Congratulations! :) |
Hi! Sorry for the delay, life got in the way ... @zzzeek Yes, I tested it in a real product using a simple local setup (spawning manually 3 redis server in cluster mode) and the Scaleway redis cluster managed service. I also tested on a more synthetic setup and so far everything was working great. Thank you for the merge :) . Things are a bit complicated for me these days, but when it settles down, I will try to go back to the pif paf PR to see if I can get it to be merged |
Hello!
This PR aim to add the support for Redis Cluster: https://redis.io/docs/management/scaling/
This is different than Redis Sentinel, which is already supported.
Since this is a bit more complicated to use than a normal redis instance, I try to put more complete example in the documentation.
Redis Cluster is supported since version 4.1 of redis-py, so it should be pretty stable.
Open to feedback :)