相关疑难解决方法(0)

芹菜错过了心跳(on_node_lost)

我刚刚升级到芹菜3.1,现在我看到这是我的原木::

on_node_lost - INFO - missed heartbeat from celery@queue_name for every queue/worker in my cluster.
Run Code Online (Sandbox Code Playgroud)

根据文档BROKER_HEARTBEAT默认关闭,我还没有配置它.

我应该明确设置BROKER_HEARTBEAT=0还是其他我应该检查的东西?

python django celery

13
推荐指数
2
解决办法
1万
查看次数

对芹菜工作者禁用八卦,混杂和心跳有什么后果?

禁用八卦,混杂和心跳对我的芹菜工人有什么影响?

为了减少发送到CloudAMQP的消息数量,使其不超出免费计划的范围,我决定遵循以下建议。因此,我使用了选项--without-gossip --without-mingle --without-heartbeat。从那时起,我一直在所有芹菜项目中默认使用这些选项,但是我不确定是否有我不知道的副作用。

请注意:

  • 我们现在移到Redis代理,并且对发送到代理的邮件数量没有太多限制
  • 我们有多个运行多个芹菜工人队列的实例

python worker redis celery cloudamqp

10
推荐指数
2
解决办法
291
查看次数

芹菜心跳不工作

我在芹菜设置中设置了心跳:

BROKER_HEARTBEAT = 10
Run Code Online (Sandbox Code Playgroud)

我还在 RabbitMQ 配置中设置了这个配置值:

'heartbeat' => '10',
Run Code Online (Sandbox Code Playgroud)

但不知何故心跳仍然被禁用:

ubuntu@sync1:~$ sudo rabbitmqctl list_connections name timeout
Listing connections ...
some_address:37781 -> other_address:5672    0
some_address:37782 -> other_address:5672    0
...done.
Run Code Online (Sandbox Code Playgroud)

任何想法我做错了什么?

更新:

所以现在我得到:

ubuntu@sync1:/etc/puppet$ sudo rabbitmqctl list_connections name timeout
Listing connections ...
some_address:41281 -> other_address:5672    10
some_address:41282 -> other_address:5672    10
some_address:41562 -> other_address:5672    0
some_address:41563 -> other_address:5672    0
some_address:41564 -> other_address:5672    0
some_address:41565 -> other_address:5672    0
some_address:41566 -> other_address:5672    0
some_address:41567 -> other_address:5672    0
some_address:41568 -> other_address:5672    0
...done.
Run Code Online (Sandbox Code Playgroud)

我有3台服务器:

  • RabbitMQ …

python django rabbitmq celery

4
推荐指数
1
解决办法
1万
查看次数

标签 统计

celery ×3

python ×3

django ×2

cloudamqp ×1

rabbitmq ×1

redis ×1

worker ×1