如何用redis sentinel配置气流celery 执行器?

puruo6ea  于 2021-06-09  发布在  Redis
关注(0)|答案(1)|浏览(405)

redis sentinel设置完成。
为了将celery 后端指向redis sentinel,我需要做哪些更改?我用redis做celery 遗嘱执行人的经纪人。

ivqmmu1c

ivqmmu1c1#

在celery 文档的usingredis页面的configuration部分有一个示例。
从那一页:

app.conf.broker_url = 'sentinel://localhost:26379;sentinel://localhost:26380;sentinel://localhost:26381'
app.conf.broker_transport_options = { 'master_name': "cluster1" }

相关问题