#117 2021.06.18 启智社区页面经常出现502错误

Closed
created 2 years ago by lewis · 0 comments
lewis commented 2 years ago
一、现象 页面访问经常失败,出现502错误;后台服务一直自动重启 二、问题排查 1、查看日志,发现:Repository Indexer Initialization Timed-Out after: 30s 2、查看仓库索引文件,达到2.1g 三、问题解决 1、关闭仓库索引功能:REPO_INDEXER_ENABLED=false 四、问题分析 1、开启了仓库文件索引功能,即服务启动时会去读取仓库索引文件 2、未设置索引读取超时时间,系统默认为30秒 3、仓库索引文件已达到2.1g,读取时间超过了30秒,因此服务启动失败,自动重启 五、后续优化 1、打开仓库索引功能并且将读取时间设置长一些(300秒) 2、即使读取失败也不要影响服务启动
lewis added the
enhancement
label 2 years ago
avadesian closed this issue 2 years ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.