我使用Celery(3.1.25)和RabbitMQ(3.6.5)作为经纪人。它们在AWS环境中运行。我积极地使用芹菜工人 - 我在那里创建新的服务器并运行新的芹菜工人,然后在一段时间后我只是用AWS API杀死服务器。似乎进程有一些时间关闭并向代理发送“EXIT”信号。但是后来整个服务器变得不可用,因为AWS终止它。
然后RabbitMQ崩溃并重新启动,所有活动连接都会丢失。
我在日志中看到以下内容:
=CRASH REPORT==== 22-Nov-2016::18:04:33 ===
crasher:
initial call: rabbit_reader:init/4
pid: <0.25989.133>
registered_name: []
exception error: no match of right hand side value {error,nxdomain}
in function rabbit_nodes:cluster_name_default/0 (src/rabbit_nodes.erl, line 215)
in call from rabbit_nodes:cluster_name/0 (src/rabbit_nodes.erl, line 210)
in call from rabbit_reader:server_properties/1 (src/rabbit_reader.erl, line 281)
in call from rabbit_reader:start_connection/3 (src/rabbit_reader.erl, line 1091)
in call from rabbit_reader:handle_input/3 (src/rabbit_reader.erl, line 1041)
in call from rabbit_reader:recvloop/4 (src/rabbit_reader.erl, line 446)
in call from rabbit_reader:run/1 (src/rabbit_reader.erl, line 428)
in call from rabbit_reader:start_connection/4 (src/rabbit_reader.erl, line 386)
ancestors: [<0.25987.133>,<0.4726.0>,<0.4725.0>,<0.4724.0>,rabbit_sup,
<0.117.0>]
messages: [{'EXIT',#Port<0.213814>,normal}]
links: [<0.25987.133>]
dictionary: [{process_name,
{rabbit_reader,
<<"172.31.9.14:51372 -> 172.31.11.84:5672">>}}]
trap_exit: true
status: running
heap_size: 1598
stack_size: 27
reductions: 1224
neighbours:
当我得到它 - 它试图解析发件人的名字/ IP但没有成功而失败。
我应该怎么做以防止他崩溃?