错误报告
环境
重现此问题的步骤
-
nginx配置3台mqtt,请求nginx需要优化吗,感觉是连接数不够用还是,目前每台大概27000左右的连接数
stream {
upstream mqtt-tcp {
server 192.168.1.1:1883 weight=5;
server 192.168.4.2:1883 weight=10;
server 192.168.4.3:1883 weight=10;
}
}
错误日志:
2023-03-23T07:05:18.313198+00:00 [error] msg: unexpected_sock_close, mfa: emqx_channel:handle_info/2, line: 1266, peername: 192.168.4.192:46614, clientid: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.ss.zPHcIrFhFKfp4N-QmF5wCVHcfhbLd8V9PBVE8z5HWrE, reason: protocol_error
预期行为
实际行为
功能请求
描述你需要的功能
为什么你需要这个功能
其他
nginx错误日志:
2023/03/23 15:50:22 [error] 4960#4960: *229697311 recv() failed (104: Connection reset by peer) while proxying and reading from upstream, client: 10.0.11.149, server: 0.0.0.0:1883, upstream: “192.168.4.2:1883”, bytes from/to client:4584/4, bytes from/to upstream:4/4584
我们某个clientId为什么mqtt一直包这个错误,后台查找是未连接状态,我主动连接还是不行,一段时间才可以,这个跟什么设置有关系,会拦截单个用户?
2.168.4.188:52888, clientid: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.ss.IqIT2578mLZZc4pYXB40l6xVYdziKgP0U3zwDBpPGC0, reason: einval
是把我禁用了吗,我怎么发布不了话题了,emqx下面