docs: add faq of start-limit-hit when restart taosd by systemctl

This commit is contained in:
kailixu 2025-02-12 11:16:04 +08:00
parent 1011b24816
commit b13fb9e287
1 changed files with 11 additions and 1 deletions

View File

@ -311,4 +311,14 @@ TDinsight插件中展示的数据是通过taosKeeper和taosAdapter服务收集
直接查子表更快。超级表带 TAG 过滤查询子查数据是为满足查询方便性,同时可对多个子表中数据进行过滤,如果目的是追求性能并已明确查询子表,直接从子表查性能更高
### 35 如何查看数据压缩率指标?
TDengine 目前只提供以表为统计单位的压缩率,数据库及整体还未提供,查看命令是在客户端 taos-CLI 中执行 `SHOW TABLE DISTRIBUTED table_name;` 命令table_name 为要查看压缩率的表,可以为超级表、普通表及子表,详细可 [查看此处](https://docs.taosdata.com/reference/taos-sql/show/#show-table-distributed)
TDengine 目前只提供以表为统计单位的压缩率,数据库及整体还未提供,查看命令是在客户端 taos-CLI 中执行 `SHOW TABLE DISTRIBUTED table_name;` 命令table_name 为要查看压缩率的表,可以为超级表、普通表及子表,详细可 [查看此处](https://docs.taosdata.com/reference/taos-sql/show/#show-table-distributed)
### 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 之前的版本StartLimitInterval 为 60 秒。若在 60 秒内无法完成 3 次重启(例如,因从 WAL预写式日志中恢复大量数据导致启动时间较长则下一个 60 秒周期内的重启会重新计数,导致系统持续不断地重启 taosd 服务。为避免无限重启问题,将 StartLimitInterval 调整为 900 秒。
问题解决:
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 参数限制。