Skip to content
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

support redis cluster #459

Merged
merged 4 commits into from
Oct 8, 2019
Merged

support redis cluster #459

merged 4 commits into from
Oct 8, 2019

Conversation

WingGao
Copy link
Contributor

@WingGao WingGao commented Sep 2, 2019

Let redis support cluster mode, both in broker and backend.
I haven't delete the original redis files, just add the new one by change the redisgo to go-redis

#config
broker: 'redis://host1:port1,host2:port2,host3:port3'
result_backend: 'redis://host1:port1,host2:port2,host3:port3'
...

Also fix this #145

@RichardKnop RichardKnop merged commit edf30ef into RichardKnop:master Oct 8, 2019
@charleswhchan
Copy link
Contributor

@WingGao : Can you please clarify the purpose of DelayedTasksKey for me?
What is the default if not specified in RedisConfig?

Thanks.

@WingGao
Copy link
Contributor Author

WingGao commented Oct 17, 2019

The default value of DelayedTasksKey is delayed_tasks, it's here https://github.com/RichardKnop/machinery/blob/master/v1/brokers/redis/redis.go#L21 .
I made it to be configurable so that you can run multiple machinery instances for different projects in one redis db.

@charleswhchan
Copy link
Contributor

Thanks @WingGao

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants