docs: update format of start-limit-hit in 01-faq.md

This commit is contained in:
Kaili Xu 2025-02-12 13:05:34 +08:00 committed by GitHub
parent 4590a899e6
commit 748e1058de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -315,10 +315,10 @@ TDengine 目前只提供以表为统计单位的压缩率,数据库及整体
### 36 短时间内,通过 systemd 重启 taosd 超过一定次数后重启失败报错start-limit-hit。
问题描述:
自 TDengine 3.3.5.1 版本起taosd.service 的 systemd 配置文件中StartLimitInterval 参数从 60 秒调整为 900 秒。若在 900 秒内 taosd 服务重启达到 3 次,后续通过 systemd 启动 taosd 服务时会失败,执行 systemctl status taosd.service 显示错误Failed with result 'start-limit-hit'。
自 TDengine 3.3.5.1 版本起taosd.service 的 systemd 配置文件中StartLimitInterval 参数从 60 秒调整为 900 秒。若在 900 秒内 taosd 服务重启达到 3 次,后续通过 systemd 启动 taosd 服务时会失败,执行 `systemctl status taosd.service` 显示错误Failed with result 'start-limit-hit'。
问题原因:
TDengine 3.3.5.1 之前的版本StartLimitInterval 为 60 秒。若在 60 秒内无法完成 3 次重启(例如,因从 WAL预写式日志中恢复大量数据导致启动时间较长则下一个 60 秒周期内的重启会重新计数,导致系统持续不断地重启 taosd 服务。为避免无限重启问题,将 StartLimitInterval 由 60 秒调整为 900 秒。因此,在使用 systemd 短时间内多次启动 taosd 时遇到 start-limit-hit 错误的机率增多。
问题解决:
1通过 systemd 重启 taosd 服务:推荐方法是先执行命令 systemctl reset-failed taosd.service 重置失败计数器,然后再通过 systemctl restart taosd.service 重启;若需长期调整,可手动修改 /etc/systemd/system/taosd.service 文件,将 StartLimitInterval 调小或将 StartLimitBurst 调大(注:重新安装 taosd 会重置该参数,需要重新修改),执行 systemctl daemon-reload 重新加载配置然后再重启。2也可以不通过 systemd 而是通过 taosd 命令直接重启 taosd 服务,此时不受 StartLimitInterval 和 StartLimitBurst 参数限制。
1通过 systemd 重启 taosd 服务:推荐方法是先执行命令 `systemctl reset-failed taosd.service` 重置失败计数器,然后再通过 `systemctl restart taosd.service` 重启;若需长期调整,可手动修改 /etc/systemd/system/taosd.service 文件,将 StartLimitInterval 调小或将 StartLimitBurst 调大(注:重新安装 taosd 会重置该参数,需要重新修改),执行 `systemctl daemon-reload` 重新加载配置然后再重启。2也可以不通过 systemd 而是通过 taosd 命令直接重启 taosd 服务,此时不受 StartLimitInterval 和 StartLimitBurst 参数限制。