有没有办法让 celeryd 从不同代理的队列中读取?

发布于 2024-11-18 11:59:46 字数 301 浏览 3 评论 0原文

我有两组运行 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

皓月长歌 2024-11-25 11:59:46

使用两名不同的 celery 工人,每个经纪人一名。

Use two different celery workers, one for each broker.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文