环境信息
你好,按照此博客示例进行搭建<EMQ X+TDengine 搭建 MQTT 物联网可视化平台 >
服务器: Ubuntu20.04 docker环境部署
TDengine: 2.1.2.0
EMQX: 4.3.3
问题描述
按照博客中 mock.js 进行模拟数据推送,在EMQX 配置相关规则转换成sql后,使用 http://127.0.0.1:6041/rest/sql 进行数据插入,频率5s,出现部分成功,部分失败问题;
当mock.js 中模拟emqx 模拟客户端数设置为 5时,emqx 日志没有报错;
当模拟客户端数大于6时。报错概率增大;
当回退EMQX 版本到4.2.3 后模拟客户端数量设置为100 也没有出现相关错误。
4.3.3版本错误日志如下:
2021-06-30T16:09:41.931559+08:00 [error] mock_client_9@192.168.180.155:53754 [WebHook Action] HTTP request error: {closed,"The connection was lost."}
2021-06-30T16:09:41.931218+08:00 [warning] mock_client_1@192.168.180.155:53738 [WebHook Action] HTTP request failed with status code: 507
2021-06-30T16:09:41.932013+08:00 [warning] mock_client_4@192.168.180.155:53744 [WebHook Action] HTTP request failed with status code: 507
2021-06-30T16:09:41.932060+08:00 [error] mock_client_6@192.168.180.155:53748 [WebHook Action] HTTP request error: {closed,"The connection was lost."}
2021-06-30T16:09:41.932033+08:00 [error] mock_client_8@192.168.180.155:53752 [WebHook Action] HTTP request error: {closed,"The connection was lost."}
2021-06-30T16:09:41.935464+08:00 [warning] mock_client_6@192.168.180.155:53748 [WebHook Action] HTTP request failed with status code: 507
2021-06-30T16:09:41.935460+08:00 [error] mock_client_8@192.168.180.155:53752 [WebHook Action] HTTP request error: {closed,"The connection was lost."}
2021-06-30T16:09:47.049316+08:00 [error] mock_client_8@192.168.180.155:53752 [WebHook Action] HTTP request error: {closed,"The connection was lost."}
2021-06-30T16:09:47.049349+08:00 [error] mock_client_6@192.168.180.155:53748 [WebHook Action] HTTP request error: {closed,"The connection was lost."}
2021-06-30T16:09:47.049398+08:00 [warning] mock_client_4@192.168.180.155:53744 [WebHook Action] HTTP request failed with status code: 507
2021-06-30T16:09:47.163105+08:00 [warning] mock_client_6@192.168.180.155:53748 [WebHook Action] HTTP request failed with status code: 507
2021-06-30T16:09:47.163169+08:00 [error] mock_client_4@192.168.180.155:53744 [WebHook Action] HTTP request error: {closed,"The connection was lost."}
2021-06-30T16:09:51.949099+08:00 [warning] mock_client_8@192.168.180.155:53752 [WebHook Action] HTTP request failed with status code: 507
2021-06-30T16:09:51.949181+08:00 [error] mock_client_6@192.168.180.155:53748 [WebHook Action] HTTP request error: {closed,"The connection was lost."}
2021-06-30T16:09:51.950261+08:00 [warning] mock_client_5@192.168.180.155:53746 [WebHook Action] HTTP request failed with status code: 507
2021-06-30T16:09:51.950279+08:00 [error] mock_client_9@192.168.180.155:53754 [WebHook Action] HTTP request error: {closed,"The connection was lost."}
2021-06-30T16:09:57.055779+08:00 [error] mock_client_8@192.168.180.155:53752 [WebHook Action] HTTP request error: {closed,"The connection was lost."}
2021-06-30T16:09:57.055789+08:00 [error] mock_client_6@192.168.180.155:53748 [WebHook Action] HTTP request error: {closed,"The connection was lost."}
2021-06-30T16:09:57.055723+08:00 [warning] mock_client_4@192.168.180.155:53744 [WebHook Action] HTTP request failed with status code: 507
2021-06-30T16:09:57.058228+08:00 [error] mock_client_7@192.168.180.155:53750 [WebHook Action] HTTP request error: {closed,"The connection was lost."}
2021-06-30T16:09:57.058443+08:00 [warning] mock_client_1@192.168.180.155:53738 [WebHook Action] HTTP request failed with status code: 507
2021-06-30T16:09:57.058597+08:00 [warning] mock_client_5@192.168.180.155:53746 [WebHook Action] HTTP request failed with status code: 507
2021-06-30T16:09:57.058734+08:00 [error] mock_client_9@192.168.180.155:53754 [WebHook Action] HTTP request error: {closed,"The connection was lost."}
2021-06-30T16:09:57.167098+08:00 [warning] mock_client_6@192.168.180.155:53748 [WebHook Action] HTTP request failed with status code: 507
2021-06-30T16:09:57.167303+08:00 [error] mock_client_4@192.168.180.155:53744 [WebHook Action] HTTP request error: {closed,"The connection was lost."}
2021-06-30T16:34:15.217833+08:00 [error] mock_client_6@192.168.180.155:53806 [WebHook Action] HTTP request error: {closed,"The connection was lost."}
2021-06-30T16:34:15.217759+08:00 [warning] mock_client_4@192.168.180.155:53802 [WebHook Action] HTTP request failed with status code: 507
2021-06-30T16:34:25.227209+08:00 [warning] mock_client_6@192.168.180.155:53806 [WebHook Action] HTTP request failed with status code: 507
2021-06-30T16:34:25.227492+08:00 [error] mock_client_4@192.168.180.155:53802 [WebHook Action] HTTP request error: {closed,"The connection was lost."}
2021-06-30T16:34:30.671415+08:00 [error] mock_client_4@192.168.180.155:53802 [WebHook Action] HTTP request error: {closed,"The connection was lost."}
2021-06-30T16:34:30.671532+08:00 [warning] mock_client_6@192.168.180.155:53806 [WebHook Action] HTTP request failed with status code: 507