RabbitMQ坠毁并保持挂起状态

时间:2017-06-26 04:16:53

标签: erlang rabbitmq

其中一个RabbitMQ节点发生故障,但仍处于挂起状态,没有让其他节点成为活动节点。有一个VIP应用程序连接到Rabbit,以防其中一个节点关闭VIP切换到另一个节点,但这不会发生,因为第一个节点发生故障,自行挂起。

以下是那段时间的日志。
[然后挂起的活动节点]

=CRASH REPORT==== 11-Jun-2017::05:15:09 ===
  crasher:
    initial call: rabbit_disk_monitor:init/1
    pid: <0.253.0>
    registered_name: rabbit_disk_monitor
    exception exit: {eagain,[{erlang,open_port,
                                     [{spawn,"/bin/sh -s unix:cmd 2>&1"},
                                      [stream]],
                                     []},
                             {os,start_port_srv_handle,1,
                                 [{file,"os.erl"},{line,313}]},
                             {os,start_port_srv_loop,0,
                                 [{file,"os.erl"},{line,329}]}]}
      in function  gen_server:terminate/7 (gen_server.erl, line 826)
    ancestors: [rabbit_disk_monitor_sup,rabbit_sup,<0.243.0>]
    messages: []
    links: [<0.252.0>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 2036096302
  neighbours:

[应该接管的其他节点]

=CRASH REPORT==== 11-Jun-2017::05:15:09 ===
  crasher:
    initial call: rabbit_disk_monitor:init/1
    pid: <0.253.0>
    registered_name: rabbit_disk_monitor
    exception exit: {eagain,[{erlang,open_port,
                                     [{spawn,"/bin/sh -s unix:cmd 2>&1"},
                                      [stream]],
                                     []},
                             {os,start_port_srv_handle,1,
                                 [{file,"os.erl"},{line,313}]},
                             {os,start_port_srv_loop,0,
                                 [{file,"os.erl"},{line,329}]}]}
      in function  gen_server:terminate/7 (gen_server.erl, line 826)
    ancestors: [rabbit_disk_monitor_sup,rabbit_sup,<0.243.0>]
    messages: []
    links: [<0.252.0>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 2036096302
  neighbours:

可能,使用延迟消息插件和mnesia导致了这个吗?

1 个答案:

答案 0 :(得分:1)

eagain表示资源暂时不可用

很可能你用完了文件描述符。

检查您当前的文件描述配置并尝试增加它

查看此链接以获取更多详细信息: