amqp channel timeout

139 views
Skip to first unread message

ilya...@gmail.com

unread,
Apr 21, 2022, 5:44:48 AM4/21/22
to rabbitmq-users
Hi,
During a mass reconnection of clients to one of the brokers, a lot of similar entries appeared in the logs:
    supervisor: {<0.21420.6007>,amqp_connection_type_sup}
    errorContext: child_terminated
    reason: {{badmatch,
                 {error,{timeout,'rabbit@RabbitMQ'}}},
             [{amqp_channels_manager,handle_open_channel,4,
                  [{file,"src/amqp_channels_manager.erl"},{line,107}]},
              {gen_server,try_handle_call,4,
                  [{file,"gen_server.erl"},{line,721}]},
              {gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,750}]},
              {proc_lib,init_p_do_apply,3,
                  [{file,"proc_lib.erl"},{line,226}]}]}
    offender: [{pid,<0.23957.1546>},
               {id,channels_manager},
               {mfargs,
                   {amqp_channels_manager,start_link,
                       [<0.2547.5132>,
                        <<"11.11.11.11:45944 -> 10.10.10.10:15674">>,
                        <0.9526.2634>]}},
               {restart_type,transient},
               {shutdown,30000},
               {child_type,worker}]
     supervisor: {<0.21420.6007>,amqp_connection_type_sup}
     errorContext: shutdown
     reason: reached_max_restart_intensity
     offender: [{pid,<0.23957.1546>},
                {id,channels_manager},
                {mfargs,
                    {amqp_channels_manager,start_link,
                        [<0.2547.5132>,
                         <<"11.11.11.11:45944 -> 10.10.10.10:15674">>,
                         <0.9526.2634>]}},
                {restart_type,transient},
                {shutdown,30000},
                {child_type,worker}]

Rabbitmq - 3.9.13
Erlang - 24.2.1

Is this related to the overall load on the server when reconnecting like this? Should I change any settings?

Thanks -
Ilya

Luke Bakken

unread,
Apr 21, 2022, 10:00:53 AM4/21/22
to rabbitmq-users
Hello  Ilya,

Yes this does appear to be a timeout within RabbitMQ due to excessive load. There aren't any settings that would affect it.

If it's common to have these reconnection events I suggest adding a random delay to the reconnection logic in your applications to reduce the chance that they all hit the server at exactly the same time.

Thanks,
Luke

ilya...@gmail.com

unread,
Apr 21, 2022, 10:54:53 AM4/21/22
to rabbitmq-users
Hello Luke,

Thanks for help.

четверг, 21 апреля 2022 г. в 17:00:53 UTC+3, luker...@gmail.com:
Reply all
Reply to author
Forward
0 new messages