Celery + RabbitMQ陷入困境:寻找邻居

时间:2014-11-11 12:27:26

标签: rabbitmq celery django-celery

我试图让我的系统在新机器上运行时遇到了奇怪的问题。

OS:

Ubuntu 14.04.1 LTS(GNU / Linux 3.13.0-39-generic x86_64)

软件包:

芹菜== 3.1.13

Django的芹菜== 3.0.23

librabbitmq == 1.5.2

经纪人:

RabbitMQ“3.2.4”

重启后Celery进程卡住了:

[2014-11-10 18:32:55,792: INFO/MainProcess] Connected to amqp://user:**@172.16.10.6:5672/vhost
[2014-11-10 18:32:55,804: INFO/MainProcess] mingle: searching for neighbors

试图在其他地方找到解决方案。 Here我找到了增加RabbitMQ可用磁盘空间的建议。我检查了docs并更改了rabbitmq.config文件:

{disk_free_limit, {mem_relative, 1.0}}

现在RabbitMQ应该有6GB可用,但它并没有将Celery推入就绪状态。我还尝试在

中配置(如有人建议的)开放文件描述符的限制
/etc/default/rabbitmq-server

没有任何影响。当前RabbitMQ状态:

    [{pid,4131},
 {running_applications,
     [{rabbitmq_management,"RabbitMQ Management Console","3.2.4"},
      {rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.2.4"},
      {webmachine,"webmachine","1.10.3-rmq3.2.4-gite9359c7"},
      {mochiweb,"MochiMedia Web Server","2.7.0-rmq3.2.4-git680dba8"},
      {rabbitmq_management_agent,"RabbitMQ Management Agent","3.2.4"},
      {rabbit,"RabbitMQ","3.2.4"},
      {os_mon,"CPO  CXC 138 46","2.2.14"},
      {inets,"INETS  CXC 138 49","5.9.7"},
      {mnesia,"MNESIA  CXC 138 12","4.11"},
      {amqp_client,"RabbitMQ AMQP Client","3.2.4"},
      {xmerl,"XML parser","1.3.5"},
      {sasl,"SASL  CXC 138 11","2.3.4"},
      {stdlib,"ERTS  CXC 138 10","1.19.4"},
      {kernel,"ERTS  CXC 138 10","2.16.4"}]},
 {os,{unix,linux}},
 {erlang_version,
     "Erlang R16B03 (erts-5.10.4) [source] [64-bit] [smp:4:4] [async-threads:30] [kernel-poll:true]\n"},
 {memory,
     [{total,46342000},
      {connection_procs,290304},
      {queue_procs,62864},
      {plugins,458136},
      {other_proc,13673776},
      {mnesia,76376},
      {mgmt_db,127808},
      {msg_index,34384},
      {other_ets,1100432},
      {binary,5282744},
      {code,19974306},
      {atom,703377},
      {other_system,4557493}]},
 {vm_memory_high_watermark,0.4},
 {vm_memory_limit,2503614464},
 {disk_free_limit,6259036160},
 {disk_free,2779140096},
 {file_descriptors,
     [{total_limit,924},{total_used,13},{sockets_limit,829},{sockets_used,9}]},
 {processes,[{limit,1048576},{used,270}]},
 {run_queue,0},
 {uptime,4561}]

另一件事:当我使用Supervisor停止Celery进程时,不记录热关闭(实际上 - 没有记录任何内容)。

你可以帮忙吗?

1 个答案:

答案 0 :(得分:0)

我似乎遇到了同样的问题。在这里查看我自己的问题答案:

celeryd with RabbitMQ hangs on "mingle: searching for neighbors", but plain celery works

长话短说:

sudo apt-get remove librabbitmq1

为我工作。