EMQX版本: 5.7.0
部署方式:三台机器集群
问题:emqx正常运行过程中,日志在2024-08-17T21:08:18.088670+08:00后突然不打印,后续在2024-08-17T22:44:44.056417+08:00又恢复打印,这是期间,设备大面积的无法连接到emqx,这是什么原因?
日志:
2024-08-17T21:07:19.235634+08:00 [warning] msg: log_events_throttled_during_last_period, period: 1 minutes, 0 seconds, dropped: #{dropped_msg_due_to_mqueue_is_full => 1}
2024-08-17T21:07:21.706929+08:00 [warning] clientid: test, msg: dropped_msg_due_to_mqueue_is_full, peername: x.x.x.x:62992, topic: $SYS/brokers/emqx@x.x.x.x/clients/test/disconnected, queue: #{len => 1000,dropped => 1,store_qos0 => true,max_len => 1000}, payload: <<“{"ipaddress":"x.x.x.x","disconnected_at":1723892842679,"sockport":1883,"connected_at":1723892842406,"proto_ver":4,"proto_name":"MQTT","clientid":"test","username":"undefined","ts":1723892842679,"protocol":"mqtt","reason":"tcp_closed"}”>>
2024-08-17T21:08:18.088670+08:00 [warning] msg: log_events_throttled_during_last_period, period: 1 minutes, 0 seconds, dropped: #{dropped_msg_due_to_mqueue_is_full => 1}
2024-08-17T22:44:44.056417+08:00 [warning] clientid: CENSYS, msg: dropped_msg_due_to_mqueue_is_full, peername: x.x.x.x:48992, topic: y/y/y, queue: #{len => 1000,dropped => 1,store_qos0 => true,max_len => 1000}, payload: <<“{"softversion":"3.1.5","imei":"861553057227304","iccid":"898604B72622C0253497""rssi":11”…>>
2024-08-17T22:45:18.185670+08:00 [warning] msg: log_events_throttled_during_last_period, period: 1 minutes, 0 seconds, dropped: #{dropped_msg_due_to_mqueue_is_full => 39}
你好,这条日志 dropped_msg_due_to_mqueue_is_ful
由于大量打印触发了 EMQX 内部的日志限流功能,所以隐藏了大量的重复日志打印以节省资源。
另外这个和设备无法连接的 EMQX 应该不是一个问题。建议可以使用日志追踪 (Trace) | EMQX文档
来查一下其中一个无法链接到 EMQX 的客户端的DEBUG日志,看看具体的原因