http auth 异常

EMQX:5.0.14
Ubuntu 20.04 LTS

{“time”:1697629020260361,“tag”:“AUTHN”,“response”:{“error”:“{resource_error,#{msg => "resource is blocked",reason => blocked}}”},“resource”:“emqx_authn_http:9”,“request”:{“path_query”:“/auth/mqtt?clientid=Mua%40b45583e989b34a9398e2a2586c70f476%40Flutter”,“mody”:“{"username":"mua_579778","password":"[password]"}”,“method”:“post”,“headers”:{“keep-alive”:“timeout=30, max=1000”,“content-type”:“application/json”,“connection”:“keep-alive”,“cache-control”:“no-cache”,“accept”:“application/json”},“base_url”:“http://10.0.4.8:8083/auth/mqtt?clientid=${clientid}“},“provider”:“emqx_authn_http”,“pid”:”<0.21615.23>”,“peername”:“180.98.128.38:56137”,“msg”:“http_response”,“line”:192,“level”:“debug”,“is_trace”:“false”,“clientid”:“Mua@b45583e989b34a9398e2a2586c70f476@Flutter”,“mfa”:“emqx_authn_http:authenticate/2”}

http认证服务无法正常使用,不会进行请求认证,请问这是到达什么瓶颈了吗?

试过 5.3.0 吗?看是否存在相同的问题呢?

还没有,今天会考虑准备升级

1 个赞

{“time”:1697787289163610,“level”:“debug”,“msg”:“http_response”,“mfa”:“emqx_authn_http:authenticate/2(214)”,“tag”:“AUTHN”,“response”:{“error”:“{recoverable_error,timeout}”},“resource”:“emqx_authn_http:176390”,“request”:{“path_query”:“/auth/mqtt?clientid=Mua%4057D5DB2DF64F4FC28186BDC1923EE804%40Flutter”,“method”:“post”,“headers”:{“keep-alive”:“timeout=30,max=1000”,“content-type”:“application/json”,“connection”:“keep-alive”,“cache-control”:“no-cache”,“accept”:“application/json”},“body”:“{"username":"mua_587588","password":"[password]"}”,“base_url”:“http://10.0.4.8:8083/auth/mqtt?clientid=${clientid}“},“provider”:“emqx_authn_http”,“pid”:”<0.16378.493>”,“peername”:“120.242.102.65:17357”,“clientid”:“Mua@57D5DB2DF64F4FC28186BDC1923EE804@Flutter”}

现在升级了,还是会出现认证服务异常,没有请求到我们自己的认证接口,而且dashboard里面的认证速率异常高,与我们自己的监控接口请求不符。

从日志看是请求超时了…有可能是你们的 HTTP 服务或中间网关并发扛不住了。

你们这边预估大概是在多少认证的 TPS?从 Dashboard 看到的成功和失败的比例是?从你的 HTTP 服务看到的速率是?

另外,如果可以的话,可以提供下全量的 emqx 的日志