You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bifromq.apache.org by "ZHANGSHUNLIN (via GitHub)" <gi...@apache.org> on 2025/08/14 03:12:18 UTC

[I] Health Probe from Load Balancer Causes Repeated Warning Logs [bifromq]

ZHANGSHUNLIN opened a new issue, #167:
URL: https://github.com/apache/bifromq/issues/167

   When integrating with a cloud provider's load balancing service, enabling TCP health checks may result in immediate connection resets. This can continuously trigger warning logs.
   
   `2025-08-14 11:05:29.127  WARN 3185045 [mqtt-worker-elg] --- .bifromq.mqtt.handler.MQTTPreludeHandler [MQTTPreludeHandler.java:209] ctx: ChannelHandlerContext(MqttPreludeHandler, [id: 0x0f40b966, L:/192.168.1.1:1883 - R:/172.16.16.41:1826]), cause:
   io.netty.channel.unix.Errors$NativeIoException: recvAddress(..) failed: Connection reset by peer
   2025-08-14 11:05:29.383  WARN 3185045 [mqtt-worker-elg-1] --- .bifromq.mqtt.handler.MQTTPreludeHandler [MQTTPreludeHandler.java:209] ctx: ChannelHandlerContext(MqttPreludeHandler, [id: 0x683b3479, L:/192.168.1.1:1883 - R:/172.16.16.41:2463]), cause:
   io.netty.channel.unix.Errors$NativeIoException: recvAddress(..) failed: Connection reset by peer
   2025-08-14 11:05:29.829  WARN 3185045 [mqtt-worker-elg] --- .bifromq.mqtt.handler.MQTTPreludeHandler [MQTTPreludeHandler.java:209] ctx: ChannelHandlerContext(MqttPreludeHandler, [id: 0x9135415f, L:/192.168.1.1:1883 - R:/172.16.9.162:1870]), cause:
   io.netty.channel.unix.Errors$NativeIoException: recvAddress(..) failed: Connection reset by peer
   2025-08-14 11:05:30.780  WARN 3185045 [mqtt-worker-elg-1] --- .bifromq.mqtt.handler.MQTTPreludeHandler [MQTTPreludeHandler.java:209] ctx: ChannelHandlerContext(MqttPreludeHandler, [id: 0x8fa58d4d, L:/192.168.1.1:1883 - R:/172.16.9.162:2149]), cause:
   io.netty.channel.unix.Errors$NativeIoException: recvAddress(..) failed: Connection reset by peer
   2025-08-14 11:05:34.042  WARN 3185045 [mqtt-worker-elg] --- .bifromq.mqtt.handler.MQTTPreludeHandler [MQTTPreludeHandler.java:209] ctx: ChannelHandlerContext(MqttPreludeHandler, [id: 0xc1e94d71, L:/192.168.1.1:1883 - R:/172.16.16.41:1781]), cause:
   io.netty.channel.unix.Errors$NativeIoException: recvAddress(..) failed: Connection reset by peer
   2025-08-14 11:05:34.129  WARN 3185045 [mqtt-worker-elg-1] --- .bifromq.mqtt.handler.MQTTPreludeHandler [MQTTPreludeHandler.java:209] ctx: ChannelHandlerContext(MqttPreludeHandler, [id: 0x6c79ec1d, L:/192.168.1.1:1883 - R:/172.16.16.41:1805]), cause:
   io.netty.channel.unix.Errors$NativeIoException: recvAddress(..) failed: Connection reset by peer`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@bifromq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Health Probe from Load Balancer Causes Repeated Warning Logs [bifromq]

Posted by "Gujiawei-Edinburgh (via GitHub)" <gi...@apache.org>.
Gujiawei-Edinburgh commented on issue #167:
URL: https://github.com/apache/bifromq/issues/167#issuecomment-3186662757

   I think from the log, the LB checks the TCP handshake and then reset the connection. And the MQTT server expects the MQTT protocol related data, so there is a warning. Maybe http based health check can be enabled, like list service http interface.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@bifromq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Health Probe from Load Balancer Causes Repeated Warning Logs [bifromq]

Posted by "popduke (via GitHub)" <gi...@apache.org>.
popduke closed issue #167: Health Probe from Load Balancer Causes Repeated Warning Logs
URL: https://github.com/apache/bifromq/issues/167


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@bifromq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Health Probe from Load Balancer Causes Repeated Warning Logs [bifromq]

Posted by "popduke (via GitHub)" <gi...@apache.org>.
popduke commented on issue #167:
URL: https://github.com/apache/bifromq/issues/167#issuecomment-3186871128

   In prod deployments, the HTTP API may not be enabled in every MQTT server process, so probing the MQTT port is acceptable in load balancer scenarios. I think the warning log from MQTTPreludeHandler should be downgraded to debug when handling premature connections, since we emit a ChannelError event at the same time (which is intended for use in risk management scenarios).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@bifromq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org