有没有办法让 celeryd 从不同代理的队列中读取?
我有两组运行 celery 的应用程序以及它们之间的中继:
APPS_A <---->继电器<----> APPS_B
中继是一个中继,在 APPS_A 和 APPS_B 之间传递消息。目前,中继在同一 RabbitMQ 节点中的两个不同交换机上有队列。外部力量施加的要求看起来会迫使我在中继的每一侧都有不同的物理 RabbitMQ 节点。
我想要一个 celeryd 工人作为中继。我可以配置 celeryd 来执行此操作吗?或者我是否坚持使用一个工作实例从 A 转发到 B,而另一个工作实例从 B 转发到 A?
I have two sets of applications running celery and a relay between them:
APPS_A <----> RELAY <----> APPS_B
The relay is, well, a relay, passing messages between APPS_A and APPS_B. Right now, the relay has queues on two different exchanges in the same RabbitMQ node. Requirements imposed by outside forces look like they will force me to have different physical RabbitMQ nodes on each side of the relay.
I'd like to have a single celeryd worker acting as the relay. Can I configure celeryd to do this? Or am I stuck with one worker instance to foward from A to B and another to forward from B to A?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用两名不同的 celery 工人,每个经纪人一名。
Use two different celery workers, one for each broker.