我刚刚升级到芹菜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还是其他我应该检查的东西?
禁用八卦,混杂和心跳对我的芹菜工人有什么影响?
为了减少发送到CloudAMQP的消息数量,使其不超出免费计划的范围,我决定遵循以下建议。因此,我使用了选项--without-gossip --without-mingle --without-heartbeat。从那时起,我一直在所有芹菜项目中默认使用这些选项,但是我不确定是否有我不知道的副作用。
请注意:
我在芹菜设置中设置了心跳:
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台服务器: