现象:

公司某个项目一天的日志量很大,在查询一天的日志时,出现gateway timeout的问题,目前的排查方向

kibana做了代理,可能是nginx的代理那边设置的连接时间较短,查询时间较长,出现连接超时,这种情况,设置nginx的配置即可

#nginx没有设置代理,以下参数是以秒为单位
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;

#nginx设置代理,更改代理配置
proxy_connect_timeout 300s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;

参考链接:https://www.cnblogs.com/alex-hrg/articles/9376178.html

现象:

同样是查询某一天的数据,kibana出现request timeout after 30000ms的问题

 

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐