[WIP] added initial redis cluster transport support code#1021
[WIP] added initial redis cluster transport support code#1021auvipy wants to merge 3 commits intocelery:masterfrom auvipy:redcls
Conversation
georgepsarakis
left a comment
There was a problem hiding this comment.
I noticed that this is still work in progress, but I see several similarities and common classes with the Redis transport.
For example:
So apart from connection / connection pool related classes, and the differences in URL connection parameters in order to support Redis Cluster, I think it would be nice, if we could import all common functionality from the Redis transport and possibly override whenever necessary.
kombu/transport/redis_cluster.py
Outdated
|
|
||
| return hosts, password, path | ||
|
|
||
| def _connparams(self, _r210_options=( |
There was a problem hiding this comment.
This tuple should probably be moved to a constant?
|
I've got a weird error when using It works fine when using |
|
Seems that |
|
thanks for testing and feedback. I will check and try to push a fix ASAP. keep in mind its work in progress right now |
|
I managed to trim down the code, inherit most stuff from What works so far:
Thank you for your PR very much. Otherwise I won't even know where to get started. 👍 |
|
@iwinux thanks for trying this. If you don't mind could you push your improvements in my branch? as we both are working with it, why should duplicate the effort? lets polish it together? does that sound ok? we will get the credit for this. |
|
That sounds great. I'll send you a pull request :) |
|
amazing! thanks! |
|
The pull request to this pull request is here: https://github.com/auvipy/kombu/pull/2 I've tried to simplify it further but got stuck here. I'm not sure how to implement a new transport properly - useful information is buried deep in existing code, obscured by event polling / callbacks, backend specifics and error handling etc. Also, would it be a good idea to refactor |
|
guys, i hope you didn't give up with that change :) |
|
this is on list, plz donate for celery |
|
is this still active? |
can you test this on local machine? |
I want to test it on my machine, but I find it didn't work: package path error、class name error and so on. After that I tried to fix these simple errors, it occurs that "ERROR sending 'cluster slots' command to redis server" . So, is it still active? |
|
is this still active? |
|
I removed my personal fork so this need copy-paste if someone wants to try & contribute |
|
Has anyone fixed this issue File "/usr/local/lib/python3.6/site-packages/celery/worker/worker.py", line 205, in start |
|
is this still active ? would be really nice to have. |
|
@dligthart In my experience, the celery team is stretched pretty thin and @auvipy here is suggesting someone jump in and contribute to the project if they want this done. Also, contributors seem to be more hesitant to get into the redis backend, as it needs more work. |
|
i might revisit it in near future If no one take this over |
|
Is there a way to financially contribute to such a feature? |
you can reach me out at: auvipy@gmail.com |
|
any news on this one ;) ? |
|
i would love to see this implemented, thanks for your work so far :) |
|
@auvipy I see this FR added milestone 5.1.0 and 6.0. Is it implemented somewhere else? |
this will be moved to somewhere else for now |
|
Is this in progress or being tracked somewhere else in this repo? Thanks |
|
@auvipy Is the work still ongoing? Celery is very important to our company, and we have found that it does not support Redis cluster. We want to support it on Kombu, does this issue still accept PR? |
|
Yes it does |
@zs-neo hello, my project just need Celery work in redis cluster. Can we have a conversation?Thanks。 |
|
kombu/kombu/transport/redis_cluster.py Lines 152 to 154 in 63108c2 Is priority queue not supported for redis cluster transport? |
|
Hello, can the MR be merged for next release? |
|
that PR is scheduled for v5.6 |
nevermind, I'm following along now in the other PR |
working on new tests